We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For the following snippet:
#if __has_attribute(capability) #define LOCKABLE(name) __attribute__((capability(name))) #endif #if __has_attribute(unlock_function) #define UNLOCK_FUNCTION(...) __attribute__((unlock_function(__VA_ARGS__))) #endif struct LOCKABLE("M") M { void unlock() UNLOCK_FUNCTION(); }; class L { public: void f() UNLOCK_FUNCTION(this->mutex_) { this->mutex_.unlock(); } private: M mutex_; };
#67780 changed the behavior where it would insert extra spaces around the arrow in the annotation, so the following:
void f() UNLOCK_FUNCTION(this->mutex_) { this->mutex_.unlock(); }
becomes:
void f() UNLOCK_FUNCTION(this -> mutex_) { this->mutex_.unlock(); }
The text was updated successfully, but these errors were encountered:
@llvm/issue-subscribers-clang-format
Author: Petr Hosek (petrhosek)
#if __has_attribute(capability) #define LOCKABLE(name) __attribute__((capability(name))) #endif #if __has_attribute(unlock_function) #define UNLOCK_FUNCTION(...) __attribute__((unlock_function(__VA_ARGS__))) #endif struct LOCKABLE("M") M { void unlock() UNLOCK_FUNCTION(); }; class L { public: void f() UNLOCK_FUNCTION(this->mutex_) { this->mutex_.unlock(); } private: M mutex_; };
void f() UNLOCK_FUNCTION(this->mutex_) { this->mutex_.unlock(); }
void f() UNLOCK_FUNCTION(this -> mutex_) { this->mutex_.unlock(); }
Sorry, something went wrong.
[clang-format] Fix a bug in annotating TrailingReturnArrow
25e0a84
Skip TrailingAnnotation when looking for TrailingReturnArrow. Fixes llvm#69234.
[clang-format] Fix a bug in annotating TrailingReturnArrow (#69249)
0ae998c
Skip TrailingAnnotation when looking for TrailingReturnArrow. Fixes #69234.
owenca
Successfully merging a pull request may close this issue.
For the following snippet:
#67780 changed the behavior where it would insert extra spaces around the arrow in the annotation, so the following:
becomes:
The text was updated successfully, but these errors were encountered: