We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fefa36a commit 7b70c2eCopy full SHA for 7b70c2e
clang-tools-extra/pseudo/gen/Main.cpp
@@ -70,7 +70,7 @@ namespace {
70
// keyword: `INT` becomes `INT`;
71
// terminal: `IDENTIFIER` becomes `IDENTIFIER`;
72
std::string mangleSymbol(SymbolID SID, const Grammar &G) {
73
- static std::string *TokNames = new std::string[]{
+ static auto &TokNames = *new std::vector<std::string>{
74
#define TOK(X) llvm::StringRef(#X).upper(),
75
#define KEYWORD(Keyword, Condition) llvm::StringRef(#Keyword).upper(),
76
#include "clang/Basic/TokenKinds.def"
0 commit comments