diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-12-02 06:49:09 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-12-02 06:49:09 +0000 |
| commit | 53ad6b94b0fdce48638434e9b280544e7f983285 (patch) | |
| tree | 94b8c0b90dd05bb727bb0c0345884938523944a9 /clang/lib/Frontend | |
| parent | c468025ac992eff8cd7158708b6cefd31c306c34 (diff) | |
| download | bcm5719-llvm-53ad6b94b0fdce48638434e9b280544e7f983285.tar.gz bcm5719-llvm-53ad6b94b0fdce48638434e9b280544e7f983285.zip | |
Extend the source manager with the ability to override the contents of
files with the contents of an arbitrary memory buffer. Use this new
functionality to drastically clean up the way in which we handle file
truncation for code-completion: all of the truncation/completion logic
is now encapsulated in the preprocessor where it belongs
(<rdar://problem/7434737>).
llvm-svn: 90300
Diffstat (limited to 'clang/lib/Frontend')
| -rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 1083d5ef1c0..2d58beead8b 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -287,7 +287,7 @@ CompilerInstance::createCodeCompletionConsumer(Preprocessor &PP, } // Truncate the named file at the given line/column. - PP.getSourceManager().truncateFileAt(Entry, Line, Column); + PP.SetCodeCompletionPoint(Entry, Line, Column); // Set up the creation routine for code-completion. if (UseDebugPrinter) |

