[clang-tools-extra] [clangd] Add `HeaderInsertion` yaml config option (PR #128503)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 15 23:27:21 PDT 2025
================
@@ -341,6 +341,14 @@ struct Fragment {
/// Delimiters: empty pair of delimiters "()" or "<>"
/// FullPlaceholders: full name of both type and parameter
std::optional<Located<std::string>> ArgumentLists;
+ /// Add #include directives when accepting code completions. Config
+ /// equivalent of the CLI option '--header-insertion'
+ /// Valid values are enum Config::HeaderInsertionPolicy values:
+ /// "IWYU": Include what you use. Insert the owning header for top-level
+ /// symbols, unless the header is already directly included or the
+ /// symbol is forward-declared
+ /// "NeverInsert": Never insert headers
----------------
MythreyaK wrote:
Whoops, my mistake! Do I make a new PR or push a new amend-ed commit to the existing branch?
https://github.com/llvm/llvm-project/pull/128503
More information about the cfe-commits
mailing list