[clang] [DRAFT][analyzer][NFC] clang-format our folders (PR #82599)

Paul T Robinson via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 26 08:09:03 PST 2024


================
@@ -244,24 +246,25 @@ void WalkAST::VisitCallExpr(CallExpr *CE) {
     if (containsBadStrlcpyStrlcatPattern(CE)) {
       const Expr *DstArg = CE->getArg(0);
       const Expr *LenArg = CE->getArg(2);
-      PathDiagnosticLocation Loc =
-        PathDiagnosticLocation::createBegin(LenArg, BR.getSourceManager(), AC);
+      PathDiagnosticLocation Loc = PathDiagnosticLocation::createBegin(
+          LenArg, BR.getSourceManager(), AC);
 
       StringRef DstName = getPrintableName(DstArg);
 
       SmallString<256> S;
       llvm::raw_svector_ostream os(S);
-      os << "The third argument allows to potentially copy more bytes than it should. ";
+      os << "The third argument allows to potentially copy more bytes than it "
+            "should. ";
       os << "Replace with the value ";
----------------
pogo59 wrote:

clang-format can't do that sort of thing automatically. Breaking the too-long line is correct IMO.

https://github.com/llvm/llvm-project/pull/82599


More information about the cfe-commits mailing list