Skip to content

Commit

Permalink
Change naming convention to match rest of the code
Browse files Browse the repository at this point in the history
  • Loading branch information
lbushi25 authored Nov 9, 2024
1 parent 52bf8a4 commit 32c5cb6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clang/lib/Sema/SemaSYCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3956,20 +3956,20 @@ class SyclKernelBodyCreator : public SyclKernelFieldHandler {
// to public just for the duration of this default initialization.
bool handleSpecialType(FieldDecl *FD, QualType Ty) {
const auto *RecordDecl = Ty->getAsCXXRecordDecl();
AccessSpecifier default_constructor_access;
CXXConstructorDecl *default_constructor;
AccessSpecifier DefaultConstructorAccess;
CXXConstructorDecl *DefaultConstructor;
std::for_each(RecordDecl->ctor_begin(), RecordDecl->ctor_end(),
[&](auto elem) {
if (elem->isDefaultConstructor()) {
default_constructor_access = elem->getAccess();
DefaultConstructorAccess = elem->getAccess();
elem->setAccess(AS_public);
default_constructor = elem;
DefaultConstructor = elem;
}
});

addFieldInit(FD, Ty, std::nullopt,
InitializationKind::CreateDefault(KernelCallerSrcLoc));
default_constructor->setAccess(default_constructor_access);
DefaultConstructor->setAccess(DefaultConstructorAccess);
addFieldMemberExpr(FD, Ty);

createSpecialMethodCall(RecordDecl, getInitMethodName(), BodyStmts);
Expand Down

0 comments on commit 32c5cb6

Please sign in to comment.