[clang] Reapply "[clang][analyzer] StreamChecker: Model getc, vfscanf, putc, … (PR #83281)

via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 28 07:48:42 PST 2024


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 680c780a367bfe1c0cdf786250fd7f565ef6d23d ddbe895e3d2893060ac54bc6c984eea22e09b460 -- clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp clang/test/Analysis/Inputs/system-header-simulator-for-simple-stream.h clang/test/Analysis/Inputs/system-header-simulator-for-valist.h clang/test/Analysis/Inputs/system-header-simulator.h clang/test/Analysis/stream-invalidate.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 f9928e1325..f2f7a0f83b 100644
--- a/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
@@ -616,8 +616,7 @@ private:
   }
 
   void initVaListType(CheckerContext &C) const {
-    VaListType =
-        C.getASTContext().getBuiltinVaListType().getCanonicalType();
+    VaListType = C.getASTContext().getBuiltinVaListType().getCanonicalType();
   }
 
   /// Searches for the ExplodedNode where the file descriptor was acquired for

``````````

</details>


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


More information about the cfe-commits mailing list