From a9231af7dd54378c0ab85c86f751e042e7664d56 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Fri, 12 May 2017 19:01:02 +0000 Subject: [PATCH] [include-fixer] Don't throw exception when parsing unknown arguments in vim script. llvm-svn: 302934 --- .../include-fixer/find-all-symbols/tool/run-find-all-symbols.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py b/clang-tools-extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py index 461d959..105e966 100755 --- a/clang-tools-extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py +++ b/clang-tools-extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py @@ -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' -- 2.7.4