From 87d2234d5c8ed3a1681e7e030d17aaab8b7366f2 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 31 Jul 2026 12:30:25 -0700 Subject: [PATCH] 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! --- scripts/create_compdb.py | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/scripts/create_compdb.py b/scripts/create_compdb.py index 452a2247a96c..e718e7c012b2 100755 --- a/scripts/create_compdb.py +++ b/scripts/create_compdb.py @@ -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", }