diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-12-03 17:05:59 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-12-03 17:05:59 +0000 |
commit | 5f498834881dd4c36eadf903359b81ce63f731c9 (patch) | |
tree | a3603d5cddad0da3d2e1c20cdf97d133ddaaa150 /clang/lib/Lex/Preprocessor.cpp | |
parent | cdeb800152471d36ea2c424ca78228de619c52ef (diff) | |
download | bcm5719-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.cpp | 2 |
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; |