summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-12-03 17:05:59 +0000
committerDouglas Gregor <dgregor@apple.com>2009-12-03 17:05:59 +0000
commit5f498834881dd4c36eadf903359b81ce63f731c9 (patch)
treea3603d5cddad0da3d2e1c20cdf97d133ddaaa150 /clang/lib/Lex/Preprocessor.cpp
parentcdeb800152471d36ea2c424ca78228de619c52ef (diff)
downloadbcm5719-llvm-5f498834881dd4c36eadf903359b81ce63f731c9.tar.gz
bcm5719-llvm-5f498834881dd4c36eadf903359b81ce63f731c9.zip
Minor cleanup to the code-completion-point logic suggested by Chris.
llvm-svn: 90459
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index c7578204944..229826af5dd 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -240,7 +240,7 @@ bool Preprocessor::SetCodeCompletionPoint(const FileEntry *File,
return false;
}
-bool Preprocessor::isCodeCompletionFile(SourceLocation FileLoc) {
+bool Preprocessor::isCodeCompletionFile(SourceLocation FileLoc) const {
return CodeCompletionFile && FileLoc.isFileID() &&
SourceMgr.getFileEntryForID(SourceMgr.getFileID(FileLoc))
== CodeCompletionFile;
OpenPOWER on IntegriCloud