From 076f444bf68da15b58f215ab97251cbe898304e9 Mon Sep 17 00:00:00 2001 From: Eugene Zelenko Date: Mon, 4 Dec 2017 23:16:21 +0000 Subject: [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 --- lib/Lex/PreprocessorLexer.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/Lex/PreprocessorLexer.cpp') 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 + 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(); } -- cgit v1.2.1