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 d9cb76b commit bd74186Copy full SHA for bd74186
clang-tools-extra/clangd/SystemIncludeExtractor.cpp
@@ -133,6 +133,16 @@ struct DriverArgs {
133
}
134
135
136
+ // Downgrade objective-c++-header (used in clangd's fallback flags for .h
137
+ // files) to c++-header, as some drivers may fail to run the extraction
138
+ // command if it contains `-xobjective-c++-header` and objective-c++ support
139
+ // is not installed.
140
+ // In practice, we don't see different include paths for the two on
141
+ // clang+mac, which is the most common objectve-c compiler.
142
+ if (Lang == "objective-c++-header") {
143
+ Lang = "c++-header";
144
+ }
145
+
146
// If language is not explicit in the flags, infer from the file.
147
// This is important as we want to cache each language separately.
148
if (Lang.empty()) {
0 commit comments