Author: Errant Date: 2025-08-17T07:01:59+02:00 New Revision: 3d83dbb73610c6cfb1b67252bd2d519a0aa5e308
URL: https://github.com/llvm/llvm-project/commit/3d83dbb73610c6cfb1b67252bd2d519a0aa5e308 DIFF: https://github.com/llvm/llvm-project/commit/3d83dbb73610c6cfb1b67252bd2d519a0aa5e308.diff LOG: [clang] Fix typos in OMPClauseProfiler method names for consistency (#153852) Added: Modified: clang/lib/AST/StmtProfile.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index 5fee88458527c..7998d2369460b 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -440,37 +440,37 @@ class OMPClauseProfiler : public ConstOMPClauseVisitor<OMPClauseProfiler> { #define GEN_CLANG_CLAUSE_CLASS #define CLAUSE_CLASS(Enum, Str, Class) void Visit##Class(const Class *C); #include "llvm/Frontend/OpenMP/OMP.inc" - void VistOMPClauseWithPreInit(const OMPClauseWithPreInit *C); - void VistOMPClauseWithPostUpdate(const OMPClauseWithPostUpdate *C); + void VisitOMPClauseWithPreInit(const OMPClauseWithPreInit *C); + void VisitOMPClauseWithPostUpdate(const OMPClauseWithPostUpdate *C); }; -void OMPClauseProfiler::VistOMPClauseWithPreInit( +void OMPClauseProfiler::VisitOMPClauseWithPreInit( const OMPClauseWithPreInit *C) { if (auto *S = C->getPreInitStmt()) Profiler->VisitStmt(S); } -void OMPClauseProfiler::VistOMPClauseWithPostUpdate( +void OMPClauseProfiler::VisitOMPClauseWithPostUpdate( const OMPClauseWithPostUpdate *C) { - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); if (auto *E = C->getPostUpdateExpr()) Profiler->VisitStmt(E); } void OMPClauseProfiler::VisitOMPIfClause(const OMPIfClause *C) { - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); if (C->getCondition()) Profiler->VisitStmt(C->getCondition()); } void OMPClauseProfiler::VisitOMPFinalClause(const OMPFinalClause *C) { - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); if (C->getCondition()) Profiler->VisitStmt(C->getCondition()); } void OMPClauseProfiler::VisitOMPNumThreadsClause(const OMPNumThreadsClause *C) { - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); if (C->getNumThreads()) Profiler->VisitStmt(C->getNumThreads()); } @@ -526,13 +526,13 @@ void OMPClauseProfiler::VisitOMPDetachClause(const OMPDetachClause *C) { } void OMPClauseProfiler::VisitOMPNovariantsClause(const OMPNovariantsClause *C) { - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); if (C->getCondition()) Profiler->VisitStmt(C->getCondition()); } void OMPClauseProfiler::VisitOMPNocontextClause(const OMPNocontextClause *C) { - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); if (C->getCondition()) Profiler->VisitStmt(C->getCondition()); } @@ -568,7 +568,7 @@ void OMPClauseProfiler::VisitOMPMessageClause(const OMPMessageClause *C) { } void OMPClauseProfiler::VisitOMPScheduleClause(const OMPScheduleClause *C) { - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); if (auto *S = C->getChunkSize()) Profiler->VisitStmt(S); } @@ -646,7 +646,7 @@ void OMPClauseProfiler::VisitOMPDestroyClause(const OMPDestroyClause *C) { } void OMPClauseProfiler::VisitOMPFilterClause(const OMPFilterClause *C) { - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); if (C->getThreadID()) Profiler->VisitStmt(C->getThreadID()); } @@ -669,7 +669,7 @@ void OMPClauseProfiler::VisitOMPPrivateClause(const OMPPrivateClause *C) { void OMPClauseProfiler::VisitOMPFirstprivateClause(const OMPFirstprivateClause *C) { VisitOMPClauseList(C); - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); for (auto *E : C->private_copies()) { if (E) Profiler->VisitStmt(E); @@ -682,7 +682,7 @@ OMPClauseProfiler::VisitOMPFirstprivateClause(const OMPFirstprivateClause *C) { void OMPClauseProfiler::VisitOMPLastprivateClause(const OMPLastprivateClause *C) { VisitOMPClauseList(C); - VistOMPClauseWithPostUpdate(C); + VisitOMPClauseWithPostUpdate(C); for (auto *E : C->source_exprs()) { if (E) Profiler->VisitStmt(E); @@ -705,7 +705,7 @@ void OMPClauseProfiler::VisitOMPReductionClause( C->getQualifierLoc().getNestedNameSpecifier()); Profiler->VisitName(C->getNameInfo().getName()); VisitOMPClauseList(C); - VistOMPClauseWithPostUpdate(C); + VisitOMPClauseWithPostUpdate(C); for (auto *E : C->privates()) { if (E) Profiler->VisitStmt(E); @@ -743,7 +743,7 @@ void OMPClauseProfiler::VisitOMPTaskReductionClause( C->getQualifierLoc().getNestedNameSpecifier()); Profiler->VisitName(C->getNameInfo().getName()); VisitOMPClauseList(C); - VistOMPClauseWithPostUpdate(C); + VisitOMPClauseWithPostUpdate(C); for (auto *E : C->privates()) { if (E) Profiler->VisitStmt(E); @@ -767,7 +767,7 @@ void OMPClauseProfiler::VisitOMPInReductionClause( C->getQualifierLoc().getNestedNameSpecifier()); Profiler->VisitName(C->getNameInfo().getName()); VisitOMPClauseList(C); - VistOMPClauseWithPostUpdate(C); + VisitOMPClauseWithPostUpdate(C); for (auto *E : C->privates()) { if (E) Profiler->VisitStmt(E); @@ -791,7 +791,7 @@ void OMPClauseProfiler::VisitOMPInReductionClause( } void OMPClauseProfiler::VisitOMPLinearClause(const OMPLinearClause *C) { VisitOMPClauseList(C); - VistOMPClauseWithPostUpdate(C); + VisitOMPClauseWithPostUpdate(C); for (auto *E : C->privates()) { if (E) Profiler->VisitStmt(E); @@ -873,25 +873,25 @@ void OMPClauseProfiler::VisitOMPAllocateClause(const OMPAllocateClause *C) { } void OMPClauseProfiler::VisitOMPNumTeamsClause(const OMPNumTeamsClause *C) { VisitOMPClauseList(C); - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); } void OMPClauseProfiler::VisitOMPThreadLimitClause( const OMPThreadLimitClause *C) { VisitOMPClauseList(C); - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); } void OMPClauseProfiler::VisitOMPPriorityClause(const OMPPriorityClause *C) { - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); if (C->getPriority()) Profiler->VisitStmt(C->getPriority()); } void OMPClauseProfiler::VisitOMPGrainsizeClause(const OMPGrainsizeClause *C) { - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); if (C->getGrainsize()) Profiler->VisitStmt(C->getGrainsize()); } void OMPClauseProfiler::VisitOMPNumTasksClause(const OMPNumTasksClause *C) { - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); if (C->getNumTasks()) Profiler->VisitStmt(C->getNumTasks()); } @@ -952,7 +952,7 @@ void OMPClauseProfiler::VisitOMPOrderClause(const OMPOrderClause *C) {} void OMPClauseProfiler::VisitOMPBindClause(const OMPBindClause *C) {} void OMPClauseProfiler::VisitOMPXDynCGroupMemClause( const OMPXDynCGroupMemClause *C) { - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); if (Expr *Size = C->getSize()) Profiler->VisitStmt(Size); } @@ -1229,7 +1229,7 @@ void StmtProfiler::VisitOMPDistributeDirective( void OMPClauseProfiler::VisitOMPDistScheduleClause( const OMPDistScheduleClause *C) { - VistOMPClauseWithPreInit(C); + VisitOMPClauseWithPreInit(C); if (auto *S = C->getChunkSize()) Profiler->VisitStmt(S); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits