[Static Analyzer] Add handling of the -nostdlibinc option to ccc-analyzer (#88017)

Compiler options recognizable to ccc-analyzer are stored in maps. An
option missing in the map will be dropped by ccc-analyzer. This causes a
build error in one of our projects that only happens in scan-build but
not regular build, because ccc-analyzer do not recognize `-nostdlibinc`.

This commit adds the option to the map.

rdar://126082053
This commit is contained in:
Ziqing Luo 2024-04-09 13:09:52 -07:00 committed by GitHub
parent 4bc4c7baed
commit 63934821d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -361,6 +361,7 @@ sub Analyze {
my %CompileOptionMap = (
'-nostdinc' => 0,
'-nostdlibinc' => 0,
'-include' => 1,
'-idirafter' => 1,
'-imacros' => 1,