[clang] [analyzer] Print the callee name in CallEnter in exploded-graph-rewriter (PR #116225)

via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 14 05:31:06 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r 4048c64306e23b622443bbe7293057a9b07a13bb...68086287a41c534704cdbc88027f61090b0540ea clang/utils/analyzer/exploded-graph-rewriter.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- exploded-graph-rewriter.py	2024-11-14 13:25:31.000000 +0000
+++ exploded-graph-rewriter.py	2024-11-14 13:30:41.384842 +0000
@@ -85,11 +85,13 @@
                 SourceLocation(json_pp["location"])
                 if json_pp["location"] is not None
                 else None
             )
         elif self.kind == "CallEnter":
-            self.callee_decl = json_pp["callee_decl"] if "callee_decl" in json_pp else "None"
+            self.callee_decl = (
+                json_pp["callee_decl"] if "callee_decl" in json_pp else "None"
+            )
         elif self.kind == "BlockEntrance":
             self.block_id = json_pp["block_id"]
 
 
 # A single expression acting as a key in a deserialized Environment.

``````````

</details>


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


More information about the cfe-commits mailing list