]> granicus.if.org Git - clang/commitdiff
Put all long strings in 80-col.
authorZhongxing Xu <xuzhongxing@gmail.com>
Mon, 9 Nov 2009 07:29:39 +0000 (07:29 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Mon, 9 Nov 2009 07:29:39 +0000 (07:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86527 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CheckSizeofPointer.cpp
lib/Analysis/FixedAddressChecker.cpp
lib/Analysis/PointerSubChecker.cpp

index 3cec5c9e98f51c0d383e3ae92051e5a215039d89..02393111e3cbab52254cc22c78d5d6ab3abc2c29 100644 (file)
@@ -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);
   }
 }
index fff451aebc44a0e1a5f631787e969509574b3568..e30e3d0ce1ca4d9e758b266f3f59c334e880ddef 100644 (file)
@@ -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());
index ebe051e6e954390d1383f89eb52542cb238ba4c8..5cac8aa99e7968f9349e7836cfdd3de116f95c39 100644 (file)
@@ -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());