mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 08:24:12 +00:00
[Bash-autocompletion] Add support for -std=
Summary: Add support for autocompleting values of -std= by including LangStandards.def. This patch relies on D36782, and is using two-stage code generation. Reviewers: v.g.vassilev, teemperor, ruiu Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D36820 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311971 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20e39f8d14
commit
3b1f2041f7
@ -308,11 +308,11 @@ void EmitOptParser(RecordKeeper &Records, raw_ostream &OS) {
|
||||
if (isa<UnsetInit>(R.getValueInit("ValuesCode")))
|
||||
continue;
|
||||
OS << "{\n";
|
||||
OS << "bool ValuesWereAdded;\n";
|
||||
OS << R.getValueAsString("ValuesCode");
|
||||
OS << "\n";
|
||||
for (const std::string &Pref : R.getValueAsListOfStrings("Prefixes")) {
|
||||
OS << "bool ValuesWereAdded = ";
|
||||
OS << "Opt.addValues(";
|
||||
OS << "ValuesWereAdded = Opt.addValues(";
|
||||
std::string S = (Pref + R.getValueAsString("Name")).str();
|
||||
write_cstring(OS, S);
|
||||
OS << ", Values);\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user