diff --git a/compiledb/parser.py b/compiledb/parser.py index 9f4c550..15d8794 100755 --- a/compiledb/parser.py +++ b/compiledb/parser.py @@ -26,8 +26,8 @@ from compiledb.utils import run_cmd # Internal variables used to parse build log entries -cc_compile_regex = re.compile(r"^.*-?g?cc-?[0-9.]*$|^.*-?clang-?[0-9.]*$") -cpp_compile_regex = re.compile(r"^.*-?[gc]\+\+-?[0-9.]*$|^.*-?clang\+\+-?[0-9.]*$") +cc_compile_regex = re.compile(r"^.*-?[gq]?cc-?[0-9.]*$|^.*-?clang-?[0-9.]*$") +cpp_compile_regex = re.compile(r"^.*-?[gcq]\+\+-?[0-9.]*$|^.*-?clang\+\+-?[0-9.]*$") file_regex = re.compile(r"^.+\.c$|^.+\.cc$|^.+\.cpp$|^.+\.cxx$|^.+\.s$", re.IGNORECASE) compiler_wrappers = {"ccache", "icecc", "sccache"}