[clang] [Clang] Add a NULL check (PR #77131)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 5 11:50:11 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 0e8b09c43d9f9e68c95fa1e6f6fb5c8307f3927d 86a898c55eb304705b7bd0e224b746c7a9284ed0 -- clang/lib/Sema/SemaOpenMP.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 851fa10b6b..99f8cac39a 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -21068,8 +21068,8 @@ Sema::ActOnOpenMPDependClause(const OMPDependClause::DependDataTy &Data,
             else
               ExprTy = BaseType->getPointeeType();
             // bug 69200
-            if(ExprTy.isNull()) {
-                continue;
+            if (ExprTy.isNull()) {
+              continue;
             }
             ExprTy = ExprTy.getNonReferenceType();
             const Expr *Length = OASE->getLength();

``````````

</details>


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


More information about the cfe-commits mailing list