From 9d9c9f29ce17f5e6bd911d1a6b96d3a252e3129d Mon Sep 17 00:00:00 2001 From: YIMINGXU Date: Fri, 29 Oct 2021 16:07:42 +0800 Subject: [PATCH] support parser ccache-clang-11++ --- compiledb/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiledb/parser.py b/compiledb/parser.py index 9f4c550..d0c129e 100755 --- a/compiledb/parser.py +++ b/compiledb/parser.py @@ -27,7 +27,7 @@ # 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.]*$") +cpp_compile_regex = re.compile(r"^.*-?[gc]\+\+-?[0-9.]*$|^.*-?clang\+\+-?[0-9.]*|^.*-?clang-?[0-9.]*\+\+$") file_regex = re.compile(r"^.+\.c$|^.+\.cc$|^.+\.cpp$|^.+\.cxx$|^.+\.s$", re.IGNORECASE) compiler_wrappers = {"ccache", "icecc", "sccache"}