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:
Richard Smith
2026-07-31 19:30:25 +00:00
committed by GitHub
parent 9bcee64b32
commit 87d2234d5c
+18 -18
View File
@@ -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",
}