-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Open
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"good first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contribute
Description
Last week, we added the scaffolding for clang to explain why a standard type trait is not satisfied - when used either in a static_assert
or as atomic constraint, in Sema::DiagnoseTypeTraitDetails
(#141238)
https://gcc.godbolt.org/z/xb7PcxzTx
So far, this has only been done for std::is_trivially_relocatable
.
There are plenty of type traits that could benefit from additional diagnostics
https://eel.is/c++draft/type.traits#meta.type.synop
I figure adding support for more type traits (one at a time!) could be a good first issue, and it's always nice to improve our diagnostics.
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"good first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contribute