[clang] [clang-tools-extra] [clangd] Add InsertReplaceEdit for code completion (PR #187623)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 19 19:49:31 PDT 2026
================
@@ -1382,14 +1382,17 @@ void loadMainFilePreambleMacros(const Preprocessor &PP,
bool semaCodeComplete(std::unique_ptr<CodeCompleteConsumer> Consumer,
const clang::CodeCompleteOptions &Options,
const SemaCompleteInput &Input,
- IncludeStructure *Includes = nullptr) {
+ IncludeStructure *Includes = nullptr,
+ std::unique_ptr<CompilerInvocation> CI = nullptr) {
----------------
argothiel wrote:
LangOpts are required before this function call in the codeCompleteComment path. Thus, adding the possiblity to call semaCodeComplete with an already calculated CI, to avoid double work.
https://github.com/llvm/llvm-project/pull/187623
More information about the cfe-commits
mailing list