Skip to content

Commit 67a5679

Browse files
committed
Fix BuiltinHeader comment to better fit
1 parent 103a684 commit 67a5679

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

clang-tools-extra/clangd/ConfigFragment.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,12 @@ struct Fragment {
171171
/// - std::nullopt: do not use a compilation database, just default flags.
172172
std::optional<Located<std::string>> CompilationDatabase;
173173

174-
/// Controls whether Clangd should include its own built-in headers (like
175-
/// stddef.h), or use only the QueryDriver's built-in headers. Use the
174+
/// Controls whether Clangd should use its own built-in system headers (like
175+
/// stddef.h), or use the system headers from the query driver. Use the
176176
/// option value 'Clangd' (default) to indicate Clangd's headers, and use
177-
/// 'QueryDriver' to indicate QueryDriver's headers.
177+
/// 'QueryDriver' to indicate QueryDriver's headers. `Clangd` is the
178+
/// fallback if no query driver is supplied or if the query driver regex
179+
/// string fails to match the compiler used in the CDB.
178180
std::optional<Located<std::string>> BuiltinHeaders;
179181
};
180182
CompileFlagsBlock CompileFlags;

0 commit comments

Comments
 (0)