Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compiledb/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def __init__(self, name="gcc"):
# Supported languages by the compiler
self._languages = {
"c": {
"extensions": ["c"]
"extensions": ["c", "m"]
},
"c++": {
"extensions": ["cpp", "cc", "cx", "cxx"],
"extensions": ["cpp", "cc", "cx", "cxx", "mm"],
},
}

Expand Down
2 changes: 1 addition & 1 deletion compiledb/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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$|^.+\.m$|^.+\.mm$|^.+\.cpp$|^.+\.cxx$|^.+\.s$", re.IGNORECASE)
compiler_wrappers = {"ccache", "icecc", "sccache"}

# Leverage `make --print-directory` option
Expand Down