From 32c5cb621b1c699514a84c5e27622ac1ef53ca35 Mon Sep 17 00:00:00 2001 From: Lorenc Bushi Date: Fri, 8 Nov 2024 20:34:42 -0500 Subject: [PATCH] Change naming convention to match rest of the code --- clang/lib/Sema/SemaSYCL.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/lib/Sema/SemaSYCL.cpp b/clang/lib/Sema/SemaSYCL.cpp index 86a2d8a7d8edd..01356085f1712 100644 --- a/clang/lib/Sema/SemaSYCL.cpp +++ b/clang/lib/Sema/SemaSYCL.cpp @@ -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);