[clang] [analyzer][NFC] Match the parameters order of getEndPath and finalizeVisitor with VisitNode (PR #212883)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 30 08:29:52 PDT 2026


================
@@ -2438,8 +2443,7 @@ MallocChecker::FreeMemAux(CheckerContext &C, const Expr *ArgExpr,
       // Check if the memory location being freed is the actual location
       // allocated, or an offset.
       RegionOffset Offset = R->getAsOffset();
-      if (Offset.isValid() &&
-          !Offset.hasSymbolicOffset() &&
+      if (Offset.isValid() && !Offset.hasSymbolicOffset() &&
----------------
isuckatcs wrote:

> It looks like my IDE setup for running `clang-format` when I save a file

I recommend trying out `clangd` as well. It provides the same formatting functionality, but also gives you access to `clang-tidy` checks, and `FixIt`s you can apply easily.

I mean, it is a language server that integrates `clang-format` and `clang-tidy` along with many other useful features.

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


More information about the cfe-commits mailing list