clang-tools 22.0.0git
clang::clangd::config::Fragment::CompletionBlock Struct Reference

Describes code completion preferences. More...

#include <ConfigFragment.h>

Public Attributes

std::optional< Located< bool > > AllScopes
 Whether code completion should include suggestions from scopes that are not visible.
std::optional< Located< std::string > > ArgumentLists
 How to present the argument list between '()' and '<>': valid values are enum Config::ArgumentListsPolicy values: None: Nothing at all OpenDelimiter: only opening delimiter "(" or "<" Delimiters: empty pair of delimiters "()" or "<>" FullPlaceholders: full name of both type and parameter.
std::optional< Located< std::string > > HeaderInsertion
 Add #include directives when accepting code completions.
std::optional< Located< std::string > > CodePatterns
 Will suggest code patterns & snippets.

Detailed Description

Describes code completion preferences.

Definition at line 333 of file ConfigFragment.h.

Member Data Documentation

◆ AllScopes

std::optional<Located<bool> > clang::clangd::config::Fragment::CompletionBlock::AllScopes

Whether code completion should include suggestions from scopes that are not visible.

The required scope prefix will be inserted.

Definition at line 336 of file ConfigFragment.h.

◆ ArgumentLists

std::optional<Located<std::string> > clang::clangd::config::Fragment::CompletionBlock::ArgumentLists

How to present the argument list between '()' and '<>': valid values are enum Config::ArgumentListsPolicy values: None: Nothing at all OpenDelimiter: only opening delimiter "(" or "<" Delimiters: empty pair of delimiters "()" or "<>" FullPlaceholders: full name of both type and parameter.

Definition at line 343 of file ConfigFragment.h.

◆ CodePatterns

std::optional<Located<std::string> > clang::clangd::config::Fragment::CompletionBlock::CodePatterns

Will suggest code patterns & snippets.

Values are Config::CodePatternsPolicy: All => enable all code patterns and snippets suggestion None => disable all code patterns and snippets suggestion

Definition at line 356 of file ConfigFragment.h.

◆ HeaderInsertion

std::optional<Located<std::string> > clang::clangd::config::Fragment::CompletionBlock::HeaderInsertion

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 "Never": Never insert headers

Definition at line 351 of file ConfigFragment.h.


The documentation for this struct was generated from the following file: