[clang] db8e182 - [NFC] Clang-format previous OpenACC Patch
via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 12 14:44:25 PDT 2024
Author: erichkeane
Date: 2024-04-12T14:44:20-07:00
New Revision: db8e182952573fa9198424a6ed1b1bb1676eae62
URL: https://github.com/llvm/llvm-project/commit/db8e182952573fa9198424a6ed1b1bb1676eae62
DIFF: https://github.com/llvm/llvm-project/commit/db8e182952573fa9198424a6ed1b1bb1676eae62.diff
LOG: [NFC] Clang-format previous OpenACC Patch
Added:
Modified:
clang/lib/AST/OpenACCClause.cpp
clang/lib/AST/StmtProfile.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/OpenACCClause.cpp b/clang/lib/AST/OpenACCClause.cpp
index 446e4700320471..dcb512cb514179 100644
--- a/clang/lib/AST/OpenACCClause.cpp
+++ b/clang/lib/AST/OpenACCClause.cpp
@@ -65,8 +65,7 @@ OpenACCClause::child_range OpenACCClause::children() {
//===----------------------------------------------------------------------===//
// OpenACC clauses printing methods
//===----------------------------------------------------------------------===//
-void OpenACCClausePrinter::VisitDefaultClause(
- const OpenACCDefaultClause &C) {
+void OpenACCClausePrinter::VisitDefaultClause(const OpenACCDefaultClause &C) {
OS << "default(" << C.getDefaultClauseKind() << ")";
}
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp
index 68ba7475f4ca42..d2aac1e640380f 100644
--- a/clang/lib/AST/StmtProfile.cpp
+++ b/clang/lib/AST/StmtProfile.cpp
@@ -2459,8 +2459,7 @@ class OpenACCClauseProfiler
}
#define VISIT_CLAUSE(CLAUSE_NAME) \
- void Visit##CLAUSE_NAME##Clause( \
- const OpenACC##CLAUSE_NAME##Clause &Clause);
+ void Visit##CLAUSE_NAME##Clause(const OpenACC##CLAUSE_NAME##Clause &Clause);
#include "clang/Basic/OpenACCClauses.def"
};
@@ -2469,8 +2468,7 @@ class OpenACCClauseProfiler
void OpenACCClauseProfiler::VisitDefaultClause(
const OpenACCDefaultClause &Clause) {}
-void OpenACCClauseProfiler::VisitIfClause(
- const OpenACCIfClause &Clause) {
+void OpenACCClauseProfiler::VisitIfClause(const OpenACCIfClause &Clause) {
assert(Clause.hasConditionExpr() &&
"if clause requires a valid condition expr");
Profiler.VisitStmt(Clause.getConditionExpr());
More information about the cfe-commits
mailing list