diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2014-07-08 23:54:25 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2014-07-08 23:54:25 +0000 |
| commit | 9709ebfaf0d9b6fb4a59c6edf6edd286ed63c2b2 (patch) | |
| tree | 3a1b2515082c28e39c6885a16f8d92d78dcb8258 /clang/lib | |
| parent | 843c4cb4014262e8cbd1280a983a5fcbe7bafbdb (diff) | |
| download | bcm5719-llvm-9709ebfaf0d9b6fb4a59c6edf6edd286ed63c2b2.tar.gz bcm5719-llvm-9709ebfaf0d9b6fb4a59c6edf6edd286ed63c2b2.zip | |
rewrap to 80 cols, no behavior change
llvm-svn: 212578
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 3 | ||||
| -rw-r--r-- | clang/lib/Sema/SemaType.cpp | 10 |
2 files changed, 7 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index c147034ed50..a33724a2970 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -6652,7 +6652,8 @@ bool InitializationSequence::Diagnose(Sema &S, Args.back()->getLocEnd()); if (Failure == FK_ListConstructorOverloadFailed) { - assert(Args.size() == 1 && "List construction from other than 1 argument."); + assert(Args.size() == 1 && + "List construction from other than 1 argument."); InitListExpr *InitList = cast<InitListExpr>(Args[0]); Args = MultiExprArg(InitList->getInits(), InitList->getNumInits()); } diff --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp index ff48ebc53fd..be1191c1e8e 100644 --- a/clang/lib/Sema/SemaType.cpp +++ b/clang/lib/Sema/SemaType.cpp @@ -2395,9 +2395,9 @@ static void warnAboutAmbiguousFunction(Sema &S, Declarator &D, } if (FTI.NumParams > 0) { - // For a declaration with parameters, eg. "T var(T());", suggest adding parens - // around the first parameter to turn the declaration into a variable - // declaration. + // For a declaration with parameters, eg. "T var(T());", suggest adding + // parens around the first parameter to turn the declaration into a + // variable declaration. SourceRange Range = FTI.Params[0].Param->getSourceRange(); SourceLocation B = Range.getBegin(); SourceLocation E = S.getLocForEndOfToken(Range.getEnd()); @@ -2407,8 +2407,8 @@ static void warnAboutAmbiguousFunction(Sema &S, Declarator &D, << FixItHint::CreateInsertion(B, "(") << FixItHint::CreateInsertion(E, ")"); } else { - // For a declaration without parameters, eg. "T var();", suggest replacing the - // parens with an initializer to turn the declaration into a variable + // For a declaration without parameters, eg. "T var();", suggest replacing + // the parens with an initializer to turn the declaration into a variable // declaration. const CXXRecordDecl *RD = RT->getAsCXXRecordDecl(); |

