[clang-tools-extra] r302934 - [include-fixer] Don't throw exception when parsing unknown arguments in
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Fri May 12 12:01:03 PDT 2017
Author: hokein
Date: Fri May 12 14:01:02 2017
New Revision: 302934
URL: http://llvm.org/viewvc/llvm-project?rev=302934&view=rev
Log:
[include-fixer] Don't throw exception when parsing unknown arguments in
vim script.
Modified:
clang-tools-extra/trunk/include-fixer/find-all-symbols/tool/run-find-all-symbols.py
Modified: clang-tools-extra/trunk/include-fixer/find-all-symbols/tool/run-find-all-symbols.py
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/include-fixer/find-all-symbols/tool/run-find-all-symbols.py?rev=302934&r1=302933&r2=302934&view=diff
==============================================================================
--- clang-tools-extra/trunk/include-fixer/find-all-symbols/tool/run-find-all-symbols.py (original)
+++ clang-tools-extra/trunk/include-fixer/find-all-symbols/tool/run-find-all-symbols.py Fri May 12 14:01:02 2017
@@ -75,7 +75,7 @@ def main():
help='path used to read a compilation database.')
parser.add_argument('-saving-path', default='./find_all_symbols_db.yaml',
help='result saving path')
- args = parser.parse_args()
+ args, _ = parser.parse_known_args()
db_path = 'compile_commands.json'
More information about the cfe-commits
mailing list