From: Michael Liao Date: Sat, 13 Jul 2019 19:49:39 +0000 (+0000) Subject: Remove extra ';' to silent compiler warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47e55d20c4f679770465e02a07f02fbc06adbc17;p=clang Remove extra ';' to silent compiler warning. - Plus extra style formatting. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366010 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 73407afb49..1324abb04a 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -11082,7 +11082,8 @@ bool Sema::DeduceVariableDeclarationType(VarDecl *VDecl, bool DirectInit, return VDecl->isInvalidDecl(); } -void Sema::checkNonTrivialCUnionInInitializer(const Expr *Init, SourceLocation Loc) { +void Sema::checkNonTrivialCUnionInInitializer(const Expr *Init, + SourceLocation Loc) { if (auto *CE = dyn_cast(Init)) Init = CE->getSubExpr(); @@ -11113,7 +11114,7 @@ void Sema::checkNonTrivialCUnionInInitializer(const Expr *Init, SourceLocation L if (InitType.hasNonTrivialToPrimitiveCopyCUnion()) checkNonTrivialCUnion(InitType, Loc, NTCUC_CopyInit, NTCUK_Copy); } -}; +} namespace {