[clang] [OpenACC] Implement 'break' and 'continue' errors for Compute Cnstrcts (PR #82543)

via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 21 14:02:32 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 e50a231dcdd6aafa922b177b4fc4629bb7a10a79 5ea47a31eb0ce851441cb7f1851b13303732ca91 -- clang/test/SemaOpenACC/no-branch-in-out.c clang/include/clang/Sema/Scope.h clang/lib/Parse/ParseOpenACC.cpp clang/lib/Sema/SemaStmt.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/include/clang/Sema/Scope.h b/clang/include/clang/Sema/Scope.h
index 3ffcc3590a..c9154abd51 100644
--- a/clang/include/clang/Sema/Scope.h
+++ b/clang/include/clang/Sema/Scope.h
@@ -474,9 +474,7 @@ public:
 
   /// Return true if this exact scope (and not one of it's parents) is a switch
   /// scope.
-  bool isDirectlySwitchScope() const {
-    return getFlags() & Scope::SwitchScope;
-  }
+  bool isDirectlySwitchScope() const { return getFlags() & Scope::SwitchScope; }
 
   /// Determines whether this scope is the OpenMP directive scope
   bool isOpenMPDirectiveScope() const {

``````````

</details>


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


More information about the cfe-commits mailing list