@@ -358,7 +358,7 @@ struct TemplateParameterListBuilder {
358
358
structure is what we're trying to construct below, specifically the
359
359
CSE portion.
360
360
*/
361
- ConceptSpecializationExpr *getConceptSpecializationExpr (Sema &S,
361
+ ConceptSpecializationExpr *constructConceptSpecializationExpr (Sema &S,
362
362
ConceptDecl *CD) {
363
363
ASTContext &Context = S.getASTContext ();
364
364
SourceLocation Loc = Builder.Record ->getBeginLoc ();
@@ -432,7 +432,7 @@ struct TemplateParameterListBuilder {
432
432
if (Params.empty ())
433
433
return Builder;
434
434
ConceptSpecializationExpr *CSE =
435
- CD ? getConceptSpecializationExpr (S, CD) : nullptr ;
435
+ CD ? constructConceptSpecializationExpr (S, CD) : nullptr ;
436
436
437
437
auto *ParamList = TemplateParameterList::Create (S.Context , SourceLocation (),
438
438
SourceLocation (), Params,
@@ -582,7 +582,7 @@ static BuiltinTypeDeclBuilder setupBufferType(CXXRecordDecl *Decl, Sema &S,
582
582
.addDefaultHandleConstructor (S, RC);
583
583
}
584
584
585
- BinaryOperator *getSizeOfLEQ16Expr (ASTContext &Context, SourceLocation NameLoc,
585
+ BinaryOperator *constructSizeOfLEQ16Expr (ASTContext &Context, SourceLocation NameLoc,
586
586
TemplateTypeParmDecl *T) {
587
587
// Obtain the QualType for 'unsigned long'
588
588
QualType UnsignedLongType = Context.UnsignedLongTy ;
@@ -618,19 +618,19 @@ BinaryOperator *getSizeOfLEQ16Expr(ASTContext &Context, SourceLocation NameLoc,
618
618
return binaryOperator;
619
619
}
620
620
621
- Expr *getTypedBufferConstraintExpr (Sema &S, SourceLocation NameLoc,
621
+ Expr *constructTypedBufferConstraintExpr (Sema &S, SourceLocation NameLoc,
622
622
TemplateTypeParmDecl *T) {
623
623
ASTContext &Context = S.getASTContext ();
624
624
625
625
// 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);
627
627
// TODO: add the '__builtin_hlsl_is_line_vector_layout_compatible' builtin
628
628
// and return a binary operator that evaluates the builtin on the given
629
629
// template type parameter 'T'
630
630
return SizeOfLEQ16;
631
631
}
632
632
633
- ConceptDecl *getTypedBufferConceptDecl (Sema &S) {
633
+ ConceptDecl *constructTypedBufferConceptDecl (Sema &S) {
634
634
DeclContext *DC = S.CurContext ;
635
635
ASTContext &Context = S.getASTContext ();
636
636
SourceLocation DeclLoc = SourceLocation ();
@@ -654,7 +654,7 @@ ConceptDecl *getTypedBufferConceptDecl(Sema &S) {
654
654
Context, DeclLoc, DeclLoc, {T}, DeclLoc, nullptr );
655
655
656
656
DeclarationName DeclName = DeclarationName (&IsValidLineVectorII);
657
- Expr *ConstraintExpr = getTypedBufferConstraintExpr (S, DeclLoc, T);
657
+ Expr *ConstraintExpr = constructTypedBufferConstraintExpr (S, DeclLoc, T);
658
658
659
659
// Create a ConceptDecl
660
660
ConceptDecl *CD =
@@ -672,7 +672,7 @@ ConceptDecl *getTypedBufferConceptDecl(Sema &S) {
672
672
673
673
void HLSLExternalSemaSource::defineHLSLTypesWithForwardDeclarations () {
674
674
CXXRecordDecl *Decl;
675
- ConceptDecl *CD = getTypedBufferConceptDecl (*SemaPtr);
675
+ ConceptDecl *CD = constructTypedBufferConceptDecl (*SemaPtr);
676
676
677
677
Decl = BuiltinTypeDeclBuilder (*SemaPtr, HLSLNamespace, " RWBuffer" )
678
678
.addSimpleTemplateParams (*SemaPtr, {" element_type" }, CD)
0 commit comments