mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 08:44:41 +01:00
Fix the clang-tidy naming settings. (#219)
The term "constant" in this setting seems to actually mean anything that is `const` qualified. For Carbon code, anything that should actually use `CamelCase` should also use `constexpr` which has its own naming setting and is correct. With this setting change and making a test variable `constexpr`, clang-tidy is happy with all the names.
This commit is contained in:
@@ -116,7 +116,7 @@ TEST_F(LexerTest, HandlesIntegerLiteral) {
|
||||
}
|
||||
|
||||
TEST_F(LexerTest, HandlesGarbageCharacters) {
|
||||
const char GarbageText[] = "$$💩-$\n$\0$12$";
|
||||
constexpr char GarbageText[] = "$$💩-$\n$\0$12$";
|
||||
auto buffer = Lex(llvm::StringRef(GarbageText, sizeof(GarbageText) - 1));
|
||||
EXPECT_TRUE(buffer.HasErrors());
|
||||
EXPECT_THAT(
|
||||
|
||||
Reference in New Issue
Block a user