From 01eb3f0bb68b68de43d85c490c24c0e43474956d Mon Sep 17 00:00:00 2001 From: eyenseo Date: Tue, 12 Jan 2016 13:01:57 +0100 Subject: [PATCH] Fix missing CMake options If the current directory contains a 'compile_commands.json' file the loop is left early. --- clangcomplete.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clangcomplete.py b/clangcomplete.py index 7430f03..31924d0 100644 --- a/clangcomplete.py +++ b/clangcomplete.py @@ -101,8 +101,7 @@ def accumulate_options(path): for f in filenames: if f.endswith('compile_commands.json'): flags.extend(merge_flags(parse_compile_commands(root, f), flags)) - return split_flags(flags); - if f.endswith('flags.make'): + if f.endswith('flags.make'): flags.extend(merge_flags(parse_flags(os.path.join(root, f)), flags)) return split_flags(flags)