From: Zhongxing Xu Date: Mon, 9 Nov 2009 07:29:39 +0000 (+0000) Subject: Put all long strings in 80-col. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfed7a187edf83ab9ab31c3fccd33df7e22ba795;p=clang Put all long strings in 80-col. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86527 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CheckSizeofPointer.cpp b/lib/Analysis/CheckSizeofPointer.cpp index 3cec5c9e98..02393111e3 100644 --- a/lib/Analysis/CheckSizeofPointer.cpp +++ b/lib/Analysis/CheckSizeofPointer.cpp @@ -47,7 +47,8 @@ void WalkAST::VisitSizeOfAlignOfExpr(SizeOfAlignOfExpr *E) { SourceRange R = E->getArgumentExpr()->getSourceRange(); BR.EmitBasicReport("Potential unintended use of sizeof() on pointer type", "Logic", - "The code calls sizeof() on a pointer type. This can produce an unexpected result.", + "The code calls sizeof() on a pointer type. " + "This can produce an unexpected result.", E->getLocStart(), &R, 1); } } diff --git a/lib/Analysis/FixedAddressChecker.cpp b/lib/Analysis/FixedAddressChecker.cpp index fff451aebc..e30e3d0ce1 100644 --- a/lib/Analysis/FixedAddressChecker.cpp +++ b/lib/Analysis/FixedAddressChecker.cpp @@ -56,7 +56,9 @@ void FixedAddressChecker::PreVisitBinaryOperator(CheckerContext &C, if (ExplodedNode *N = C.GenerateNode(B)) { if (!BT) BT = new BuiltinBug("Use fixed address", - "Using a fixed address is not portable because that address will probably not be valid in all environments or platforms."); + "Using a fixed address is not portable because that " + "address will probably not be valid in all " + "environments or platforms."); RangedBugReport *R = new RangedBugReport(*BT, BT->getDescription().c_str(), N); R->addRange(B->getRHS()->getSourceRange()); diff --git a/lib/Analysis/PointerSubChecker.cpp b/lib/Analysis/PointerSubChecker.cpp index ebe051e6e9..5cac8aa99e 100644 --- a/lib/Analysis/PointerSubChecker.cpp +++ b/lib/Analysis/PointerSubChecker.cpp @@ -58,7 +58,8 @@ void PointerSubChecker::PreVisitBinaryOperator(CheckerContext &C, if (ExplodedNode *N = C.GenerateNode(B)) { if (!BT) BT = new BuiltinBug("Pointer subtraction", - "Subtraction of two pointers that do not point to the same memory chunk may cause incorrect result."); + "Subtraction of two pointers that do not point to " + "the same memory chunk may cause incorrect result."); RangedBugReport *R = new RangedBugReport(*BT, BT->getDescription().c_str(), N); R->addRange(B->getSourceRange());