Author: Joshua Batista Date: 2024-12-10T13:49:26-08:00 New Revision: e7e42ef116194f987672b3ed38ddbbfc0150b563
URL: https://github.com/llvm/llvm-project/commit/e7e42ef116194f987672b3ed38ddbbfc0150b563 DIFF: https://github.com/llvm/llvm-project/commit/e7e42ef116194f987672b3ed38ddbbfc0150b563.diff LOG: [NFC] Cleanup comments in HLSLExternalSemaSource.cpp (#119444) Cleaning up some comments that @bogner pointed out were unpolished. Added: Modified: clang/lib/Sema/HLSLExternalSemaSource.cpp Removed: ################################################################################ diff --git a/clang/lib/Sema/HLSLExternalSemaSource.cpp b/clang/lib/Sema/HLSLExternalSemaSource.cpp index 29672658525403..79fc2751b73812 100644 --- a/clang/lib/Sema/HLSLExternalSemaSource.cpp +++ b/clang/lib/Sema/HLSLExternalSemaSource.cpp @@ -325,9 +325,9 @@ struct TemplateParameterListBuilder { Context, // AST context Builder.Record->getDeclContext(), // DeclContext SourceLocation(), SourceLocation(), - /*depth=*/0, // Depth in the template parameter list - /*position=*/0, // Position in the template parameter list - /*id=*/nullptr, // Identifier for 'T' + /*D=*/0, // Depth in the template parameter list + /*P=*/0, // Position in the template parameter list + /*Id=*/nullptr, // Identifier for 'T' /*Typename=*/true, // Indicates this is a 'typename' or 'class' /*ParameterPack=*/false, // Not a parameter pack /*HasTypeConstraint=*/false // Has no type constraint @@ -851,7 +851,7 @@ static Expr *constructTypedBufferConstraintExpr(Sema &S, SourceLocation NameLoc, TemplateTypeParmDecl *T) { ASTContext &Context = S.getASTContext(); - // Obtain the QualType for 'unsigned long' + // Obtain the QualType for 'bool' QualType BoolTy = Context.BoolTy; // Create a QualType that points to this TemplateTypeParmDecl @@ -877,9 +877,9 @@ static ConceptDecl *constructTypedBufferConceptDecl(Sema &S, IdentifierInfo &ElementTypeII = Context.Idents.get("element_type"); TemplateTypeParmDecl *T = TemplateTypeParmDecl::Create( Context, NSD->getDeclContext(), DeclLoc, DeclLoc, - /*depth=*/0, - /*position=*/0, - /*id=*/&ElementTypeII, + /*D=*/0, + /*P=*/0, + /*Id=*/&ElementTypeII, /*Typename=*/true, /*ParameterPack=*/false); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits