[clang] [Analyzer][NFC] Remove redundant function call (PR #75076)

via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 11 10:17:05 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 a4e67de96f0a9833756b6c79fff3cd6ee459fee0 d3b3bbce9ee6fa107c6bfa183dd7885f191300d6 -- clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp b/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
index 745a9f34f6..df2be72531 100644
--- a/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
+++ b/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
@@ -2567,7 +2567,8 @@ public:
   Tracker::Result handle(const Expr *E, const ExplodedNode *InputNode,
                          const ExplodedNode *RVNode,
                          TrackingOptions Opts) override {
-    assert(RVNode->getStmtForDiagnostics() == E && "RVNode must be the ExplodedNode for the tracked expression.");
+    assert(RVNode->getStmtForDiagnostics() == E &&
+           "RVNode must be the ExplodedNode for the tracked expression.");
 
     if (!E->isPRValue() || !RVNode)
       return {};

``````````

</details>


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


More information about the cfe-commits mailing list