Add support for autocompleting values of -std= by including
LangStandards.def. This patch relies on D36782, and is using two-stage
code generation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang/include/clang/Driver/Options.td | ||
---|---|---|
2254 ↗ | (On Diff #111471) | const char* Values -> const char *Values |
2254–2258 ↗ | (On Diff #111471) | I think Raphael suggested indenting embedded code with at least 2 spaces. I think you want to indent it with 4 spaces so that it looks better. |
llvm/utils/TableGen/OptParserEmitter.cpp | ||
314 ↗ | (On Diff #111471) | Why do you have to change this? The previous code looks nicer. |
llvm/utils/TableGen/OptParserEmitter.cpp | ||
---|---|---|
314 ↗ | (On Diff #111471) | Because I got an error that ValuesWereAdded are defined several times. |
llvm/utils/TableGen/OptParserEmitter.cpp | ||
---|---|---|
314 ↗ | (On Diff #111471) | Okay, but I think at least you want to move the definition into the scope that line 310 defines, so that the scope of the variable ends at the code that line 322 emits. |