about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2020-05-02 00:47:13 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-05-02 00:48:30 +0000
commit071d7956e68585772df45293542e1e397c28ac8a (patch)
treeaaa3228b950cfc3dd6b25a7ddcb48336e21bd10f
parentff50d96b19373baaceeb49ccce5d9db218f2c4db (diff)
downloadzsh-071d7956e68585772df45293542e1e397c28ac8a.tar.gz
zsh-071d7956e68585772df45293542e1e397c28ac8a.tar.xz
zsh-071d7956e68585772df45293542e1e397c28ac8a.zip
45752/0001: _gcc: Add .cpp and .hpp to the ignored extensions list.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_gcc2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 66ea195d3..8c7ab6a28 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-05-02  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* 45752/0001: Completion/Unix/Command/_gcc: Add .cpp and .hpp
+	to the ignored extensions list.
+
 2020-04-27  Benjamin Esham  <benjamin@esham.io>
 
 	* github #56: Doc/Zsh/mod_zutil.yo: typo: Add a single quote
diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc
index 9ec09200e..4e81247d4 100644
--- a/Completion/Unix/Command/_gcc
+++ b/Completion/Unix/Command/_gcc
@@ -390,7 +390,7 @@ languages=(
 # generic options (from --help)
 args+=(
   '-###[print commands to run this compilation]'
-  '-o:output file:_files -g "^*.(c|h|cc|C|cxx)(-.)"'
+  '-o:output file:_files -g "^*.(c|h|cc|C|cxx|cpp|hpp)(-.)"'
   '-x[Specify the language of the following input files]:input file language:('"$languages"')'
   '+e-:virtual function definitions in classes:((0\:only\ interface 1\:generate\ code))'
   '-d-:dump:->dump'