[clang] [-Wcompletion-handler] Fix a non-termination issue (PR #78380)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 25 14:53:12 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 29b5f8f977af9b09aa8f56152baca04cf8750981 a4d18e63952e2b47dd97759bebbfd1095b346665 -- clang/lib/Analysis/CalledOnceCheck.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Analysis/CalledOnceCheck.cpp b/clang/lib/Analysis/CalledOnceCheck.cpp
index e4cb8d0f36..30cbd257b6 100644
--- a/clang/lib/Analysis/CalledOnceCheck.cpp
+++ b/clang/lib/Analysis/CalledOnceCheck.cpp
@@ -932,7 +932,7 @@ private:
     ParameterStatus &CurrentParamStatus = CurrentState.getStatusFor(Index);
 
     // Escape overrides whatever error we think happened.
-    if (CurrentParamStatus.isErrorStatus() && 
+    if (CurrentParamStatus.isErrorStatus() &&
         CurrentParamStatus.getKind() != ParameterStatus::Kind::Reported) {
       CurrentParamStatus = ParameterStatus::Escaped;
     }

``````````

</details>


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


More information about the cfe-commits mailing list