[cfe-commits] r86527 - in /cfe/trunk/lib/Analysis: CheckSizeofPointer.cpp FixedAddressChecker.cpp PointerSubChecker.cpp

Zhongxing Xu xuzhongxing at gmail.com
Sun Nov 8 23:29:39 PST 2009


Author: zhongxingxu
Date: Mon Nov  9 01:29:39 2009
New Revision: 86527

URL: http://llvm.org/viewvc/llvm-project?rev=86527&view=rev
Log:
Put all long strings in 80-col.

Modified:
    cfe/trunk/lib/Analysis/CheckSizeofPointer.cpp
    cfe/trunk/lib/Analysis/FixedAddressChecker.cpp
    cfe/trunk/lib/Analysis/PointerSubChecker.cpp

Modified: cfe/trunk/lib/Analysis/CheckSizeofPointer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CheckSizeofPointer.cpp?rev=86527&r1=86526&r2=86527&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/CheckSizeofPointer.cpp (original)
+++ cfe/trunk/lib/Analysis/CheckSizeofPointer.cpp Mon Nov  9 01:29:39 2009
@@ -47,7 +47,8 @@
     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);
   }
 }

Modified: cfe/trunk/lib/Analysis/FixedAddressChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/FixedAddressChecker.cpp?rev=86527&r1=86526&r2=86527&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/FixedAddressChecker.cpp (original)
+++ cfe/trunk/lib/Analysis/FixedAddressChecker.cpp Mon Nov  9 01:29:39 2009
@@ -56,7 +56,9 @@
   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());

Modified: cfe/trunk/lib/Analysis/PointerSubChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/PointerSubChecker.cpp?rev=86527&r1=86526&r2=86527&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/PointerSubChecker.cpp (original)
+++ cfe/trunk/lib/Analysis/PointerSubChecker.cpp Mon Nov  9 01:29:39 2009
@@ -58,7 +58,8 @@
   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());





More information about the cfe-commits mailing list