[clang] [NFC][OpenACC] Remove 'initExpr' from AST/etc. (PR #161674)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 2 07:25:03 PDT 2025


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 origin/main HEAD --extensions cpp,h -- clang/include/clang/AST/OpenACCClause.h clang/lib/AST/StmtProfile.cpp clang/lib/CIR/CodeGen/CIRGenOpenACCClause.cpp clang/lib/CIR/CodeGen/CIRGenOpenACCRecipe.cpp clang/lib/CIR/CodeGen/CIRGenOpenACCRecipe.h clang/lib/Sema/SemaOpenACC.cpp clang/lib/Serialization/ASTReader.cpp clang/lib/Serialization/ASTWriter.cpp clang/tools/libclang/CIndex.cpp
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/clang/include/clang/AST/OpenACCClause.h b/clang/include/clang/AST/OpenACCClause.h
index c67685d14..c343a19a4 100644
--- a/clang/include/clang/AST/OpenACCClause.h
+++ b/clang/include/clang/AST/OpenACCClause.h
@@ -845,9 +845,7 @@ struct OpenACCPrivateRecipe {
 
   bool isSet() const { return AllocaDecl; }
 
-  static OpenACCPrivateRecipe Empty() {
-    return OpenACCPrivateRecipe(nullptr);
-  }
+  static OpenACCPrivateRecipe Empty() { return OpenACCPrivateRecipe(nullptr); }
 };
 
 class OpenACCPrivateClause final

``````````

</details>


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


More information about the cfe-commits mailing list