[clang] [ObjC] Add support for finally blocks (PR #82934)

via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 25 13:32:03 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 529b5705db2ccefeee2c9b8cb5144e1f5a6420de 08abfad8feb3c54cc1bb9a8eea94e0e91c3ce678 -- clang/lib/Analysis/CFG.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp
index 15db6560d1..f8288d1773 100644
--- a/clang/lib/Analysis/CFG.cpp
+++ b/clang/lib/Analysis/CFG.cpp
@@ -4117,7 +4117,7 @@ CFGBlock *CFGBuilder::VisitObjCAtTryStmt(ObjCAtTryStmt *Terminator) {
 
     if (!FinallyBlock)
       return nullptr;
-    
+
     // The code after the finally is the implicit successor.
     addSuccessor(NewTryTerminatedBlock, FinallyBlock);
   }
@@ -4131,7 +4131,7 @@ CFGBlock *CFGBuilder::VisitObjCAtTryStmt(ObjCAtTryStmt *Terminator) {
     }
     Block = nullptr;
     CFGBlock *CatchBlock = VisitObjCAtCatchStmt(CS);
-    
+
     if (!CatchBlock)
       return nullptr;
 

``````````

</details>


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


More information about the cfe-commits mailing list