Skip to content

Commit 80d2d25

Browse files
committed
change some function names
1 parent 4fecdc4 commit 80d2d25

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

clang/lib/Sema/HLSLExternalSemaSource.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ struct TemplateParameterListBuilder {
358358
structure is what we're trying to construct below, specifically the
359359
CSE portion.
360360
*/
361-
ConceptSpecializationExpr *getConceptSpecializationExpr(Sema &S,
361+
ConceptSpecializationExpr *constructConceptSpecializationExpr(Sema &S,
362362
ConceptDecl *CD) {
363363
ASTContext &Context = S.getASTContext();
364364
SourceLocation Loc = Builder.Record->getBeginLoc();
@@ -432,7 +432,7 @@ struct TemplateParameterListBuilder {
432432
if (Params.empty())
433433
return Builder;
434434
ConceptSpecializationExpr *CSE =
435-
CD ? getConceptSpecializationExpr(S, CD) : nullptr;
435+
CD ? constructConceptSpecializationExpr(S, CD) : nullptr;
436436

437437
auto *ParamList = TemplateParameterList::Create(S.Context, SourceLocation(),
438438
SourceLocation(), Params,
@@ -582,7 +582,7 @@ static BuiltinTypeDeclBuilder setupBufferType(CXXRecordDecl *Decl, Sema &S,
582582
.addDefaultHandleConstructor(S, RC);
583583
}
584584

585-
BinaryOperator *getSizeOfLEQ16Expr(ASTContext &Context, SourceLocation NameLoc,
585+
BinaryOperator *constructSizeOfLEQ16Expr(ASTContext &Context, SourceLocation NameLoc,
586586
TemplateTypeParmDecl *T) {
587587
// Obtain the QualType for 'unsigned long'
588588
QualType UnsignedLongType = Context.UnsignedLongTy;
@@ -618,19 +618,19 @@ BinaryOperator *getSizeOfLEQ16Expr(ASTContext &Context, SourceLocation NameLoc,
618618
return binaryOperator;
619619
}
620620

621-
Expr *getTypedBufferConstraintExpr(Sema &S, SourceLocation NameLoc,
621+
Expr *constructTypedBufferConstraintExpr(Sema &S, SourceLocation NameLoc,
622622
TemplateTypeParmDecl *T) {
623623
ASTContext &Context = S.getASTContext();
624624

625625
// first get the "sizeof(T) <= 16" expression, as a binary operator
626-
BinaryOperator *SizeOfLEQ16 = getSizeOfLEQ16Expr(Context, NameLoc, T);
626+
BinaryOperator *SizeOfLEQ16 = constructSizeOfLEQ16Expr(Context, NameLoc, T);
627627
// TODO: add the '__builtin_hlsl_is_line_vector_layout_compatible' builtin
628628
// and return a binary operator that evaluates the builtin on the given
629629
// template type parameter 'T'
630630
return SizeOfLEQ16;
631631
}
632632

633-
ConceptDecl *getTypedBufferConceptDecl(Sema &S) {
633+
ConceptDecl *constructTypedBufferConceptDecl(Sema &S) {
634634
DeclContext *DC = S.CurContext;
635635
ASTContext &Context = S.getASTContext();
636636
SourceLocation DeclLoc = SourceLocation();
@@ -654,7 +654,7 @@ ConceptDecl *getTypedBufferConceptDecl(Sema &S) {
654654
Context, DeclLoc, DeclLoc, {T}, DeclLoc, nullptr);
655655

656656
DeclarationName DeclName = DeclarationName(&IsValidLineVectorII);
657-
Expr *ConstraintExpr = getTypedBufferConstraintExpr(S, DeclLoc, T);
657+
Expr *ConstraintExpr = constructTypedBufferConstraintExpr(S, DeclLoc, T);
658658

659659
// Create a ConceptDecl
660660
ConceptDecl *CD =
@@ -672,7 +672,7 @@ ConceptDecl *getTypedBufferConceptDecl(Sema &S) {
672672

673673
void HLSLExternalSemaSource::defineHLSLTypesWithForwardDeclarations() {
674674
CXXRecordDecl *Decl;
675-
ConceptDecl *CD = getTypedBufferConceptDecl(*SemaPtr);
675+
ConceptDecl *CD = constructTypedBufferConceptDecl(*SemaPtr);
676676

677677
Decl = BuiltinTypeDeclBuilder(*SemaPtr, HLSLNamespace, "RWBuffer")
678678
.addSimpleTemplateParams(*SemaPtr, {"element_type"}, CD)

0 commit comments

Comments
 (0)