mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 07:21:04 +01:00
Fix create_compdb.py. (#7598)
pathlib's suffix includes a `.`, so make sure we include one when validating the suffix. Otherwise, most files are missing from the database!
This commit is contained in:
+18
-18
@@ -39,24 +39,24 @@ from typing import Any, Dict
|
||||
import scripts_utils
|
||||
|
||||
_CPP_EXTENSIONS = {
|
||||
"c",
|
||||
"cc",
|
||||
"cpp",
|
||||
"cxx",
|
||||
"c++",
|
||||
"C",
|
||||
"h",
|
||||
"hpp",
|
||||
"hxx",
|
||||
"h++",
|
||||
"hh",
|
||||
"H",
|
||||
"inc",
|
||||
"def",
|
||||
"ipp",
|
||||
"s",
|
||||
"S",
|
||||
"asm",
|
||||
".c",
|
||||
".cc",
|
||||
".cpp",
|
||||
".cxx",
|
||||
".c++",
|
||||
".C",
|
||||
".h",
|
||||
".hpp",
|
||||
".hxx",
|
||||
".h++",
|
||||
".hh",
|
||||
".H",
|
||||
".inc",
|
||||
".def",
|
||||
".ipp",
|
||||
".s",
|
||||
".S",
|
||||
".asm",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user