This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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">; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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">; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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">; |