summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-09-22 21:11:38 +0000
committerDouglas Gregor <dgregor@apple.com>2009-09-22 21:11:38 +0000
commitea9b03e6e23408325145ca089e4d7d6386b65a2d (patch)
treea43f3c51bb90111c9d4a879c5efd9d7bf78755e5 /clang/lib/Lex/Preprocessor.cpp
parent320a1c40831272686dca85e03e603b65345eb95c (diff)
downloadbcm5719-llvm-ea9b03e6e23408325145ca089e4d7d6386b65a2d.tar.gz
bcm5719-llvm-ea9b03e6e23408325145ca089e4d7d6386b65a2d.zip
Replace the -code-completion-dump option with
-code-completion-at=filename:line:column which performs code completion at the specified location by truncating the file at that position and enabling code completion. This approach makes it possible to run multiple tests from a single test file, and gives a more natural command-line interface. llvm-svn: 82571
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index 4e522cbb8a4..bfa090a09e8 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -71,7 +71,6 @@ Preprocessor::Preprocessor(Diagnostic &diags, const LangOptions &opts,
// Macro expansion is enabled.
DisableMacroExpansion = false;
InMacroArgs = false;
- IsMainFileEofCodeCompletion = false;
NumCachedTokenLexers = 0;
CachedLexPos = 0;
@@ -369,13 +368,6 @@ void Preprocessor::EnterMainSourceFile() {
// Enter the main file source buffer.
EnterSourceFile(MainFileID, 0);
- if (IsMainFileEofCodeCompletion) {
- // Tell our newly-created lexer that it should treat its end-of-file as
- // a code-completion token.
- IsMainFileEofCodeCompletion = false;
- static_cast<Lexer *>(getCurrentFileLexer())->SetEofIsCodeCompletion();
- }
-
// Tell the header info that the main file was entered. If the file is later
// #imported, it won't be re-entered.
if (const FileEntry *FE = SourceMgr.getFileEntryForID(MainFileID))
OpenPOWER on IntegriCloud