[clang] [clang][analyzer] Support `fputs` in the StreamChecker (PR #73335)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 24 18:38:54 PST 2023
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 5ac5c0e7d1007745456329dbcf05aa15b50c08c8 c015c1aa18e1048071dc59e637b7e20707b9ae83 -- clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp clang/test/Analysis/Inputs/system-header-simulator.h clang/test/Analysis/stream-error.c clang/test/Analysis/stream.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
index b5101f72f3..5e87f824cd 100644
--- a/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
@@ -761,7 +761,7 @@ void StreamChecker::evalFreadFwrite(const FnDescription *Desc,
}
void StreamChecker::evalFgetc(const FnDescription *Desc, const CallEvent &Call,
- CheckerContext &C) const {
+ CheckerContext &C) const {
ProgramStateRef State = C.getState();
SymbolRef StreamSym = getStreamArg(Desc, Call).getAsSymbol();
if (!StreamSym)
``````````
</details>
https://github.com/llvm/llvm-project/pull/73335
More information about the cfe-commits
mailing list