Skip to content

Commit 9c370b1

Browse files
author
Erich Keane
authored
[NFC][SYCL] Make Visitor functions private, other than the entry points (#2345)
Just a cleanup task I saw that should happen. None of this is really necessary to be public, so make them all private.
1 parent 4b5308a commit 9c370b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -801,9 +801,6 @@ class KernelObjVisitor {
801801
(handlers.leaveUnion(Owner, Parent), 0)...};
802802
}
803803

804-
public:
805-
KernelObjVisitor(Sema &S) : SemaRef(S) {}
806-
807804
// These enable handler execution only when previous handlers succeed.
808805
template <typename... Tn>
809806
bool handleField(FieldDecl *FD, QualType FDTy, Tn &&... tn) {
@@ -932,6 +929,9 @@ class KernelObjVisitor {
932929
(handlers.leaveStruct(Owner, Parent), 0)...};
933930
}
934931

932+
public:
933+
KernelObjVisitor(Sema &S) : SemaRef(S) {}
934+
935935
template <typename... Handlers>
936936
void VisitRecordBases(const CXXRecordDecl *KernelFunctor,
937937
Handlers &... handlers) {

0 commit comments

Comments
 (0)