Skip to content

Commit 1fd592d

Browse files
committed
git-clang-format
1 parent 6927794 commit 1fd592d

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

clang/lib/Frontend/PrecompiledPreamble.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ llvm::ErrorOr<PrecompiledPreamble> PrecompiledPreamble::Build(
454454
PreprocessorOpts.GeneratePreamble = true;
455455

456456
// Create the compiler instance to use for building the precompiled preamble.
457-
auto Clang = std::make_unique<CompilerInstance>(
458-
std::move(PreambleInvocation), std::move(PCHContainerOps));
457+
auto Clang = std::make_unique<CompilerInstance>(std::move(PreambleInvocation),
458+
std::move(PCHContainerOps));
459459

460460
// Recover resources if we crash before exiting this method.
461461
llvm::CrashRecoveryContextCleanupRegistrar<CompilerInstance> CICleanup(

clang/lib/Frontend/Rewrite/FrontendActions.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ class RewriteIncludesAction::RewriteImportsListener : public ASTReaderListener {
242242
(*OS) << '\n';
243243

244244
// Rewrite the contents of the module in a separate compiler instance.
245-
CompilerInstance Instance(std::make_shared<CompilerInvocation>(CI.getInvocation()),
246-
CI.getPCHContainerOperations(),
247-
&CI.getModuleCache());
245+
CompilerInstance Instance(
246+
std::make_shared<CompilerInvocation>(CI.getInvocation()),
247+
CI.getPCHContainerOperations(), &CI.getModuleCache());
248248
Instance.createDiagnostics(
249249
CI.getVirtualFileSystem(),
250250
new ForwardingDiagnosticConsumer(CI.getDiagnosticClient()),

clang/tools/driver/cc1_main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) {
242242
diag::Severity::Remark, {});
243243

244244
auto Invocation = std::make_shared<CompilerInvocation>();
245-
bool Success = CompilerInvocation::CreateFromArgs(*Invocation,
246-
Argv, Diags, Argv0);
245+
bool Success =
246+
CompilerInvocation::CreateFromArgs(*Invocation, Argv, Diags, Argv0);
247247

248248
auto Clang = std::make_unique<CompilerInstance>(std::move(Invocation),
249249
std::move(PCHOps));

clang/unittests/AST/ExternalASTSourceTest.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ class TestFrontendAction : public ASTFrontendAction {
4444
IntrusiveRefCntPtr<ExternalASTSource> Source;
4545
};
4646

47-
bool testExternalASTSource(ExternalASTSource *Source,
48-
StringRef FileContents) {
47+
bool testExternalASTSource(ExternalASTSource *Source, StringRef FileContents) {
4948

5049
auto Invocation = std::make_shared<CompilerInvocation>();
5150
Invocation->getPreprocessorOpts().addRemappedFile(
@@ -64,7 +63,6 @@ bool testExternalASTSource(ExternalASTSource *Source,
6463
return Compiler.ExecuteAction(Action);
6564
}
6665

67-
6866
// Ensure that a failed name lookup into an external source only occurs once.
6967
TEST(ExternalASTSourceTest, FailedLookupOccursOnce) {
7068
struct TestSource : ExternalASTSource {

0 commit comments

Comments
 (0)