We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4590c90 commit 038b489Copy full SHA for 038b489
clang-tools-extra/clangd/SystemIncludeExtractor.cpp
@@ -136,6 +136,16 @@ struct DriverArgs {
136
}
137
138
139
+ // Downgrade objective-c++-header (used in clangd's fallback flags for .h
140
+ // files) to c++-header, as some drivers may fail to run the extraction
141
+ // command if it contains `-xobjective-c++-header` and objective-c++ support
142
+ // is not installed.
143
+ // In practice, we don't see different include paths for the two on
144
+ // clang+mac, which is the most common objectve-c compiler.
145
+ if (Lang == "objective-c++-header") {
146
+ Lang = "c++-header";
147
+ }
148
+
149
// If language is not explicit in the flags, infer from the file.
150
// This is important as we want to cache each language separately.
151
if (Lang.empty()) {
0 commit comments