We have a C test that now gets a warning about a C++1z extension, which seems inappropriate.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Sema/SemaDecl.cpp | ||
---|---|---|
6189–6191 ↗ | (On Diff #63137) | I'd suggest sorting this condition higher. It doesn't make much sense to mention block scopes when inline variables are prohibited in all contexts in C. |
lib/Sema/SemaDecl.cpp | ||
---|---|---|
6189–6191 ↗ | (On Diff #63137) | Right... for some reason the word 'block' in the comment made me think it was an Objective-C thing. The C-language check is first now. |
Comment Actions
Reorder the checks. I didn't see any tests for the adjacent (C++) diagnostics so I added some.