diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-09 07:29:39 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-09 07:29:39 +0000 |
commit | dfed7a187edf83ab9ab31c3fccd33df7e22ba795 (patch) | |
tree | bb5b78832961c48758caa44275a0f9dfeb9519bb | |
parent | b10a7c235f82c6eb074be097c9ae7ee51fccc9c6 (diff) |
Put all long strings in 80-col.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86527 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/CheckSizeofPointer.cpp | 3 | ||||
-rw-r--r-- | lib/Analysis/FixedAddressChecker.cpp | 4 | ||||
-rw-r--r-- | lib/Analysis/PointerSubChecker.cpp | 3 |
3 files changed, 7 insertions, 3 deletions
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()); |