[clang-tools-extra] r302934 - [include-fixer] Don't throw exception when parsing unknown arguments in

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Fri May 12 13:29:53 PDT 2017


On Fri, May 12, 2017 at 9:01 PM, Haojian Wu via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
> 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.

run-find-all-symbols.py is never being called from vim.

>
> 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'
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


More information about the cfe-commits mailing list