If C++17 mode is enabled and the assert doesn't have a string literal, we can emit a static assert with no message in favour of one with an empty message.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/test/clang-tidy/checkers/misc-static-assert.cpp | ||
---|---|---|
41–43 | This seems to be a shortfall in check_clang_tidy.py. It will pass CHECK-MESSAGES-CXX(11|17) as a prefix to file check even though it knows it wasn't in the source file. This causes filecheck to fail. |
This seems to be a shortfall in check_clang_tidy.py. It will pass CHECK-MESSAGES-CXX(11|17) as a prefix to file check even though it knows it wasn't in the source file. This causes filecheck to fail.
Duplicating the CHECK-MESSAGE for each is just a work around.