From 4ec473f8712d8539cd39076a7e390cf8b2affb78 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 3 Jul 2006 05:16:05 +0000 Subject: Add support to track the real top-level file. llvm-svn: 38630 --- clang/Lex/Lexer.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/Lex/Lexer.cpp') diff --git a/clang/Lex/Lexer.cpp b/clang/Lex/Lexer.cpp index 51d4c73190a..208f25ac60d 100644 --- a/clang/Lex/Lexer.cpp +++ b/clang/Lex/Lexer.cpp @@ -43,6 +43,7 @@ Lexer::Lexer(const SourceBuffer *File, unsigned fileid, Preprocessor &pp, BufferEnd(BufEnd ? BufEnd : File->getBufferEnd()), InputFile(File), CurFileID(fileid), PP(pp), Features(PP.getLangOptions()) { Is_PragmaLexer = false; + IsMainFile = false; InitCharacterInfo(); assert(BufferEnd[0] == 0 && -- cgit v1.2.3