From 8c2888fb1414103307ced0cdfe9551dfe36b24c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B8rn=20Ludvigsen?= Date: Mon, 9 Nov 2020 21:06:26 +0100 Subject: [PATCH] Adds support for .c++ file extension --- compiledb/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiledb/parser.py b/compiledb/parser.py index 9f4c550..02ff5d3 100755 --- a/compiledb/parser.py +++ b/compiledb/parser.py @@ -28,7 +28,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.]*$") -file_regex = re.compile(r"^.+\.c$|^.+\.cc$|^.+\.cpp$|^.+\.cxx$|^.+\.s$", re.IGNORECASE) +file_regex = re.compile(r"^.+\.c$|^.+\.cc$|^.+\.cpp$|^.+\.cxx$|^.+\.c\+\+$|^.+\.s$", re.IGNORECASE) compiler_wrappers = {"ccache", "icecc", "sccache"} # Leverage `make --print-directory` option