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
version 17.0.1 correctly formats this:
// --dump-config has // AttributeMacros: // - _COLD #define _COLD __attribute__((cold)) class C { public: __attribute__((cold)) C() : Base(obj->func()) {} // OK _COLD C() : Base(obj->func()) {} // OK C() : Base(obj->func()) {} // OK };
whereas 18.1 and HEAD (d99cfa0) incorrectly think -> is introducing a trailing return type when the constructor has an attribute attached to it:
->
// --dump-config has // AttributeMacros: // - _COLD #define _COLD __attribute__((cold)) class C { public: __attribute__((cold)) C() : Base(obj -> func()) {} // WRONG _COLD C() : Base(obj -> func()) {} // WRONG C() : Base(obj->func()) {} // OK };
The text was updated successfully, but these errors were encountered:
[clang-format] Fix a regression in annotating TrailingReturnArrow
5ba6a0a
Fixes llvm#86559.
[clang-format] Fix a regression in annotating TrailingReturnArrow (#8…
a7f4576
…6624) Fixes #86559.
[clang-format] Fix a regression in annotating TrailingReturnArrow (ll…
76bfa59
…vm#86624) Fixes llvm#86559. (cherry picked from commit a7f4576)
51ff7f3
owenca
Successfully merging a pull request may close this issue.
version 17.0.1 correctly formats this:
whereas 18.1 and HEAD (d99cfa0) incorrectly think
->
is introducing a trailing return type when the constructor has an attribute attached to it:The text was updated successfully, but these errors were encountered: