[PATCH] D146323: inline stmt attribute diagnosing in templates
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 20 12:37:27 PDT 2023
aaron.ballman added inline comments.
================
Comment at: clang/test/Sema/attr-alwaysinline.cpp:48
+ if constexpr (D>0) {
+ // expected-warning at +6{{statement attribute 'always_inline' has higher precedence than function attribute 'noinline'}}
+ // expected-note@#NO_DEP{{conflicting attribute is here}}
----------------
Why is this not included in the `3` for: `// expected-warning at +4 3{{statement attribute 'always_inline' has higher precedence than function attribute 'noinline'}}`
It's pretty unfortunate just how often this diagnostic triggers for the same line of code. This seems rather chatty, can you help me understand what's going on?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146323/new/
https://reviews.llvm.org/D146323
More information about the cfe-commits
mailing list