-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partygood first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contributequality-of-implementation
Description
See this test case:
llvm-project/clang/test/SemaCXX/vector-bool.cpp
Lines 88 to 91 in 565a9ac
| eight_bools.y = false; // expected-error@88 {{illegal vector component name ''y''}} | |
| &eight_bools.z; // expected-error@89 {{illegal vector component name ''z''}} | |
| foo(eight_bools.w); // expected-error@90 {{illegal vector component name ''w''}} | |
| foo(eight_bools.wyx); // expected-error@91 {{illegal vector component name ''wyx''}} |
The double single-quotes are incorrect and usually coming from the diagnostic text containing the quotes directly, while passing a NamedDecl to the diagnostics engine adds single-quotes again.
Metadata
Metadata
Assignees
Labels
clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partygood first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contributequality-of-implementation