[clang] 4ed8796 - [clang][OpenMP] clang-format SemaOpenMP.cpp, NFC
Krzysztof Parzyszek via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 27 07:14:31 PDT 2024
Author: Krzysztof Parzyszek
Date: 2024-06-27T09:05:48-05:00
New Revision: 4ed8796bfe7e2666b56ae9fc5b8fe9ec05e0566f
URL: https://github.com/llvm/llvm-project/commit/4ed8796bfe7e2666b56ae9fc5b8fe9ec05e0566f
DIFF: https://github.com/llvm/llvm-project/commit/4ed8796bfe7e2666b56ae9fc5b8fe9ec05e0566f.diff
LOG: [clang][OpenMP] clang-format SemaOpenMP.cpp, NFC
There are only a handful of changes, and now the entire file can be
kept clang-formatted.
Added:
Modified:
clang/lib/Sema/SemaOpenMP.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 363e5ea34564c..760a8f08d3e5b 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "clang/Sema/SemaOpenMP.h"
+
#include "TreeTransform.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/ASTMutationListener.h"
@@ -12004,7 +12005,7 @@ class OpenMPAtomicCompareChecker {
return true;
}
- };
+};
bool OpenMPAtomicCompareChecker::checkCondUpdateStmt(IfStmt *S,
ErrorInfoTy &ErrorInfo) {
@@ -13213,7 +13214,7 @@ StmtResult SemaOpenMP::ActOnOpenMPAtomicDirective(ArrayRef<OMPClause *> Clauses,
Diag(ErrorInfo.ErrorLoc, diag::err_omp_atomic_compare)
<< ErrorInfo.ErrorRange;
Diag(ErrorInfo.NoteLoc, diag::note_omp_atomic_compare)
- << ErrorInfo.Error << ErrorInfo.NoteRange;
+ << ErrorInfo.Error << ErrorInfo.NoteRange;
return StmtError();
}
X = Checker.getX();
@@ -16508,9 +16509,8 @@ OMPClause *SemaOpenMP::ActOnOpenMPSimpleClause(
ArgumentLoc, StartLoc, LParenLoc, EndLoc);
break;
case OMPC_fail:
- Res = ActOnOpenMPFailClause(
- static_cast<OpenMPClauseKind>(Argument),
- ArgumentLoc, StartLoc, LParenLoc, EndLoc);
+ Res = ActOnOpenMPFailClause(static_cast<OpenMPClauseKind>(Argument),
+ ArgumentLoc, StartLoc, LParenLoc, EndLoc);
break;
case OMPC_update:
Res = ActOnOpenMPUpdateClause(static_cast<OpenMPDependClauseKind>(Argument),
@@ -23165,8 +23165,7 @@ void SemaOpenMP::checkDeclIsAllowedInOpenMPTarget(Expr *E, Decl *D,
/// This class visits every VarDecl that the initializer references and adds
/// OMPDeclareTargetDeclAttr to each of them.
-class GlobalDeclRefChecker final
- : public StmtVisitor<GlobalDeclRefChecker> {
+class GlobalDeclRefChecker final : public StmtVisitor<GlobalDeclRefChecker> {
SmallVector<VarDecl *> DeclVector;
Attr *A;
More information about the cfe-commits
mailing list