Skip to content

Commit e7e42ef

Browse files
authored
[NFC] Cleanup comments in HLSLExternalSemaSource.cpp (#119444)
Cleaning up some comments that @bogner pointed out were unpolished.
1 parent 9bb29c3 commit e7e42ef

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

clang/lib/Sema/HLSLExternalSemaSource.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ struct TemplateParameterListBuilder {
325325
Context, // AST context
326326
Builder.Record->getDeclContext(), // DeclContext
327327
SourceLocation(), SourceLocation(),
328-
/*depth=*/0, // Depth in the template parameter list
329-
/*position=*/0, // Position in the template parameter list
330-
/*id=*/nullptr, // Identifier for 'T'
328+
/*D=*/0, // Depth in the template parameter list
329+
/*P=*/0, // Position in the template parameter list
330+
/*Id=*/nullptr, // Identifier for 'T'
331331
/*Typename=*/true, // Indicates this is a 'typename' or 'class'
332332
/*ParameterPack=*/false, // Not a parameter pack
333333
/*HasTypeConstraint=*/false // Has no type constraint
@@ -851,7 +851,7 @@ static Expr *constructTypedBufferConstraintExpr(Sema &S, SourceLocation NameLoc,
851851
TemplateTypeParmDecl *T) {
852852
ASTContext &Context = S.getASTContext();
853853

854-
// Obtain the QualType for 'unsigned long'
854+
// Obtain the QualType for 'bool'
855855
QualType BoolTy = Context.BoolTy;
856856

857857
// Create a QualType that points to this TemplateTypeParmDecl
@@ -877,9 +877,9 @@ static ConceptDecl *constructTypedBufferConceptDecl(Sema &S,
877877
IdentifierInfo &ElementTypeII = Context.Idents.get("element_type");
878878
TemplateTypeParmDecl *T = TemplateTypeParmDecl::Create(
879879
Context, NSD->getDeclContext(), DeclLoc, DeclLoc,
880-
/*depth=*/0,
881-
/*position=*/0,
882-
/*id=*/&ElementTypeII,
880+
/*D=*/0,
881+
/*P=*/0,
882+
/*Id=*/&ElementTypeII,
883883
/*Typename=*/true,
884884
/*ParameterPack=*/false);
885885

0 commit comments

Comments
 (0)