Skip to content

Commit e8dc837

Browse files
committed
build: add /FI flag to PCH sanitization for MSVC force includes
1 parent b11fe93 commit e8dc837

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/run-clang-tidy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def sanitize_compile_command(entry: dict) -> dict:
6666
r'/Yu[^\s]*', # MSVC: Use precompiled header
6767
r'/Yc[^\s]*', # MSVC: Create precompiled header
6868
r'/Fp[^\s]*', # MSVC: Precompiled header file path
69+
r'/FI[^\s]*', # MSVC: Force include file (used for PCH)
6970
r'-Xclang -include-pch [^\s]+', # Clang PCH
7071
r'-include-pch [^\s]+',
7172
]

0 commit comments

Comments
 (0)