diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-12-04 23:16:21 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-12-04 23:16:21 +0000 |
commit | 5dc60fe57af8c07f8b71d12d8ee5072912cd6f65 (patch) | |
tree | d97d50d83e066328faa155354d5c70219fe4f988 /clang/lib/Lex/PreprocessorLexer.cpp | |
parent | 4bf869c87e39a2e1b302868c7d9be7cc25d8e43f (diff) | |
download | bcm5719-llvm-5dc60fe57af8c07f8b71d12d8ee5072912cd6f65.tar.gz bcm5719-llvm-5dc60fe57af8c07f8b71d12d8ee5072912cd6f65.zip |
[Lex] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 319714
Diffstat (limited to 'clang/lib/Lex/PreprocessorLexer.cpp')
-rw-r--r-- | clang/lib/Lex/PreprocessorLexer.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/lib/Lex/PreprocessorLexer.cpp b/clang/lib/Lex/PreprocessorLexer.cpp index 33ccbc0cfc9..2e85f46f52c 100644 --- a/clang/lib/Lex/PreprocessorLexer.cpp +++ b/clang/lib/Lex/PreprocessorLexer.cpp @@ -1,4 +1,4 @@ -//===--- PreprocessorLexer.cpp - C Language Family Lexer ------------------===// +//===- PreprocessorLexer.cpp - C Language Family Lexer --------------------===// // // The LLVM Compiler Infrastructure // @@ -15,14 +15,15 @@ #include "clang/Basic/SourceManager.h" #include "clang/Lex/LexDiagnostic.h" #include "clang/Lex/Preprocessor.h" +#include "clang/Lex/Token.h" +#include <cassert> + using namespace clang; -void PreprocessorLexer::anchor() { } +void PreprocessorLexer::anchor() {} PreprocessorLexer::PreprocessorLexer(Preprocessor *pp, FileID fid) - : PP(pp), FID(fid), InitialNumSLocEntries(0), - ParsingPreprocessorDirective(false), - ParsingFilename(false), LexingRawMode(false) { + : PP(pp), FID(fid) { if (pp) InitialNumSLocEntries = pp->getSourceManager().local_sloc_entry_size(); } |