diff options
author | Erik Verbruggen <erikjv@me.com> | 2017-07-05 09:44:07 +0000 |
---|---|---|
committer | Erik Verbruggen <erikjv@me.com> | 2017-07-05 09:44:07 +0000 |
commit | 0fc70de55d536d0366cb6ee19fbfd23c7d3578a4 (patch) | |
tree | bb432d3e6ca16dd5ca6486e9e585fca27f1e36b7 /lib/Lex/PPLexerChange.cpp | |
parent | c5dd58546ce4d20cd71cc26cb790e7f91c8f908f (diff) |
Fix invalid warnings for header guards in preambles
Fixes https://bugs.llvm.org/show_bug.cgi?id=33574
Differential Revision: https://reviews.llvm.org/D34882
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307134 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | lib/Lex/PPLexerChange.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp index 1c0cd56368..5a589d6a17 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/lib/Lex/PPLexerChange.cpp @@ -46,12 +46,6 @@ bool Preprocessor::isInPrimaryFile() const { }); } -bool Preprocessor::isInMainFile() const { - if (IsFileLexer()) - return IncludeMacroStack.size() == 0; - return true; -} - /// getCurrentLexer - Return the current file lexer being lexed from. Note /// that this ignores any potentially active macro expansions and _Pragma /// expansions going on at the time. |