summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-02 03:43:38 +0000
committerAlp Toker <alp@nuanti.com>2014-05-02 03:43:38 +0000
commit9663780e3573a5cbd5b631bf5ccd691563c98e24 (patch)
treec970705470988c9d54e75b0999edeaf1f7df8a39 /clang/lib/Frontend
parent1ae02f68bea80c5114b808455b922667339f4c90 (diff)
downloadbcm5719-llvm-9663780e3573a5cbd5b631bf5ccd691563c98e24.tar.gz
bcm5719-llvm-9663780e3573a5cbd5b631bf5ccd691563c98e24.zip
Reformat code following Preprocessor constructor updates
Landing this separately to make the previous commits easy to follow at home. llvm-svn: 207826
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/ASTUnit.cpp11
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp6
2 files changed, 7 insertions, 10 deletions
diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp
index 6437c3e8b24..85945713426 100644
--- a/clang/lib/Frontend/ASTUnit.cpp
+++ b/clang/lib/Frontend/ASTUnit.cpp
@@ -716,12 +716,11 @@ ASTUnit *ASTUnit::LoadFromASTFile(const std::string &Filename,
HeaderSearch &HeaderInfo = *AST->HeaderInfo.get();
unsigned Counter;
- AST->PP = new Preprocessor(PPOpts,
- AST->getDiagnostics(), AST->ASTFileLangOpts,
- AST->getSourceManager(), HeaderInfo,
- *AST,
- /*IILookup=*/0,
- /*OwnsHeaderSearch=*/false);
+ AST->PP =
+ new Preprocessor(PPOpts, AST->getDiagnostics(), AST->ASTFileLangOpts,
+ AST->getSourceManager(), HeaderInfo, *AST,
+ /*IILookup=*/0,
+ /*OwnsHeaderSearch=*/false);
Preprocessor &PP = *AST->PP;
AST->Ctx = new ASTContext(AST->ASTFileLangOpts,
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index d20c1a417e8..e9672c44266 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -239,11 +239,9 @@ void CompilerInstance::createPreprocessor(TranslationUnitKind TUKind) {
getDiagnostics(),
getLangOpts(),
&getTarget());
- PP = new Preprocessor(&getPreprocessorOpts(),
- getDiagnostics(), getLangOpts(),
+ PP = new Preprocessor(&getPreprocessorOpts(), getDiagnostics(), getLangOpts(),
getSourceManager(), *HeaderInfo, *this, PTHMgr,
- /*OwnsHeaderSearch=*/true,
- TUKind);
+ /*OwnsHeaderSearch=*/true, TUKind);
PP->Initialize(getTarget());
// Note that this is different then passing PTHMgr to Preprocessor's ctor.
OpenPOWER on IntegriCloud