github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions c,cpp --
clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
clang/test/Analysis/string.c
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
b/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
index 296a803bd..9a4457ec7 100644
--- a/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
@@ -101,7 +101,6 @@ public:
static void *getTag() { static int tag; return &tag; }
-
bool evalCall(const CallEvent &Call, CheckerContext &C) const;
void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const;
void checkLiveSymbols(ProgramStateRef state, SymbolReaper &SR) const;
@@ -2336,8 +2335,8 @@ void CStringChecker::evalStrxfrm(CheckerContext &C,
} else {
// Fallback: invalidate the buffer.
StateSizeNonZero = invalidateDestinationBufferBySize(
- C, StateSizeNonZero, Dest.Expression, Call.getCFGElementRef(),
destVal,
- sizeVal, Size.Expression->getType());
+ C, StateSizeNonZero, Dest.Expression, Call.getCFGElementRef(), destVal,
+ sizeVal, Size.Expression->getType());
C.addTransition(StateSizeNonZero);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/156507
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits