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 | 076f444bf68da15b58f215ab97251cbe898304e9 (patch) | |
| tree | 3570b7bd21786e15eae227c1f131ed6d9240eb13 /lib/Lex/PreprocessorLexer.cpp | |
| parent | 10af36fbec2ea78e72017cfffe2678235b149682 (diff) | |
| download | clang-076f444bf68da15b58f215ab97251cbe898304e9.tar.gz | |
[Lex] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PreprocessorLexer.cpp')
| -rw-r--r-- | lib/Lex/PreprocessorLexer.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/Lex/PreprocessorLexer.cpp b/lib/Lex/PreprocessorLexer.cpp index 33ccbc0cfc..2e85f46f52 100644 --- a/lib/Lex/PreprocessorLexer.cpp +++ b/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(); } |
