[clang] [alpha.webkit.UncountedCallArgsChecker] Allow ArrayInitLoopExpr and OpaqueValueExpr in trivial expressions (PR #127182)

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 14 01:04:43 PST 2025


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 8ed36373a2227c7d39fb1a520ec8dde476dc5603 2be47498ca7597748ee8b29f5d39d74608c2f4d3 --extensions cpp -- clang/test/Analysis/Checkers/WebKit/call-args-loop-init-opaque-value.cpp clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp b/clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
index edfe72c62b..0f0aaa0e19 100644
--- a/clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
@@ -594,7 +594,8 @@ public:
   }
 
   bool VisitArrayInitIndexExpr(const ArrayInitIndexExpr *AIIE) {
-    return true; // The current array index in VisitArrayInitLoopExpr is always trivial.
+    return true; // The current array index in VisitArrayInitLoopExpr is always
+                 // trivial.
   }
 
   bool VisitOpaqueValueExpr(const OpaqueValueExpr *OVE) {

``````````

</details>


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


More information about the cfe-commits mailing list