Skip to content

Commit 4ccafab

Browse files
committed
[clangd] Change field name to prevent shadowing
1 parent 12dcb89 commit 4ccafab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/clangd/CodeComplete.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ struct SemaCompleteInput {
10231023
PathRef FileName;
10241024
const tooling::CompileCommand &Command;
10251025
const PreambleData &Preamble;
1026-
const PreamblePatch &PreamblePatch;
1026+
const PreamblePatch &Patch;
10271027
llvm::StringRef Contents;
10281028
size_t Offset;
10291029
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS;
@@ -1096,7 +1096,7 @@ bool semaCodeComplete(std::unique_ptr<CodeCompleteConsumer> Consumer,
10961096
PreambleBounds PreambleRegion =
10971097
ComputePreambleBounds(*CI->getLangOpts(), ContentsBuffer.get(), 0);
10981098
bool CompletingInPreamble = PreambleRegion.Size > Input.Offset;
1099-
Input.PreamblePatch.apply(*CI);
1099+
Input.Patch.apply(*CI);
11001100
// NOTE: we must call BeginSourceFile after prepareCompilerInstance. Otherwise
11011101
// the remapped buffers do not get freed.
11021102
auto Clang = prepareCompilerInstance(

0 commit comments

Comments
 (0)