Skip to content

Instantly share code, notes, and snippets.

View yamaguchi1024's full-sized avatar
🐈

Yuka Ikarashi yamaguchi1024

🐈
View GitHub Profile
diff --git a/clang/include/clang/Driver/Driver.h b/clang/include/clang/Driver/Driver.h
index 1009754..4fb92fb 100644
--- a/clang/include/clang/Driver/Driver.h
+++ b/clang/include/clang/Driver/Driver.h
@@ -398,6 +398,10 @@ public:
/// PrintActions - Print the list of actions.
void PrintActions(const Compilation &C) const;
+ std::vector<std::string> findOptions(StringRef Prefix) const;
+ /// PrintAutocomplete - Print the autocompletion for clang.
diff --git a/clang/include/clang/Driver/Driver.h b/clang/include/clang/Driver/Driver.h
index 1009754..4fb92fb 100644
--- a/clang/include/clang/Driver/Driver.h
+++ b/clang/include/clang/Driver/Driver.h
@@ -398,6 +398,10 @@ public:
/// PrintActions - Print the list of actions.
void PrintActions(const Compilation &C) const;
+ std::vector<std::string> findOptions(StringRef Prefix) const;
+ /// PrintAutocomplete - Print the autocompletion for clang.
diff --git a/bash_completion b/bash_completion
old mode 100644
new mode 100755
diff --git a/completions/Makefile.am b/completions/Makefile.am
index eb2cf16..406f00b 100644
--- a/completions/Makefile.am
+++ b/completions/Makefile.am
@@ -66,6 +66,7 @@ bashcomp_DATA = 2to3 \
cppcheck \
crontab \
diff --git a/clang/include/clang/Driver/Driver.h b/clang/include/clang/Driver/Driver.h
index 1009754..4fb92fb 100644
--- a/clang/include/clang/Driver/Driver.h
+++ b/clang/include/clang/Driver/Driver.h
@@ -398,6 +398,10 @@ public:
/// PrintActions - Print the list of actions.
void PrintActions(const Compilation &C) const;
+ std::vector<std::string> findOptions(StringRef Prefix) const;
+ /// PrintAutocomplete - Print the autocompletion for clang.
diff --git a/clang/include/clang/Driver/Driver.h b/clang/include/clang/Driver/Driver.h
index 1009754..7aa3095 100644
--- a/clang/include/clang/Driver/Driver.h
+++ b/clang/include/clang/Driver/Driver.h
@@ -398,6 +398,11 @@ public:
/// PrintActions - Print the list of actions.
void PrintActions(const Compilation &C) const;
+ std::vector<std::string> findstd(StringRef Cur) const;
+ std::vector<std::string> findOptions(StringRef Prefix) const;
diff --git a/clang/include/clang/Driver/Driver.h b/clang/include/clang/Driver/Driver.h
index 1009754..4fb92fb 100644
--- a/clang/include/clang/Driver/Driver.h
+++ b/clang/include/clang/Driver/Driver.h
@@ -398,6 +398,10 @@ public:
/// PrintActions - Print the list of actions.
void PrintActions(const Compilation &C) const;
+ std::vector<std::string> findOptions(StringRef Prefix) const;
+ /// PrintAutocomplete - Print the autocompletion for clang.
diff --git a/clang/include/clang/Driver/Driver.h b/clang/include/clang/Driver/Driver.h
index 1009754..a856046 100644
--- a/clang/include/clang/Driver/Driver.h
+++ b/clang/include/clang/Driver/Driver.h
@@ -398,6 +398,9 @@ public:
/// PrintActions - Print the list of actions.
void PrintActions(const Compilation &C) const;
+ /// PrintAutocomplete - Print the autocompletion for clang.
+ void PrintAutocomplete(StringRef Cur) const;
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index deec33b..3000d90 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -469,6 +469,8 @@ def arch__errors__fatal : Flag<["-"], "arch_errors_fatal">;
def arch : Separate<["-"], "arch">, Flags<[DriverOption]>;
def arch__only : Separate<["-"], "arch_only">;
def a : Joined<["-"], "a">;
+def autocomplete : Joined<["-","--"], "autocomplete=">, Flags<[DriverOption]>, Group<Action_Group>,
+ HelpText<"This is a flag for clang-autocompletion">;
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index deec33b..3000d90 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -469,6 +469,8 @@ def arch__errors__fatal : Flag<["-"], "arch_errors_fatal">;
def arch : Separate<["-"], "arch">, Flags<[DriverOption]>;
def arch__only : Separate<["-"], "arch_only">;
def a : Joined<["-"], "a">;
+def autocomplete : Joined<["-","--"], "autocomplete=">, Flags<[DriverOption]>, Group<Action_Group>,
+ HelpText<"This is a flag for clang-autocompletion">;
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index deec33b..3000d90 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -469,6 +469,8 @@ def arch__errors__fatal : Flag<["-"], "arch_errors_fatal">;
def arch : Separate<["-"], "arch">, Flags<[DriverOption]>;
def arch__only : Separate<["-"], "arch_only">;
def a : Joined<["-"], "a">;
+def autocomplete : Joined<["-","--"], "autocomplete=">, Flags<[DriverOption]>, Group<Action_Group>,
+ HelpText<"This is a flag for clang-autocompletion">;