[clang] 9b8c2fa - fix: complete comment (#97322)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 1 18:47:40 PDT 2024


Author: Alfiya Siddique
Date: 2024-07-01T18:47:36-07:00
New Revision: 9b8c2fae38bcff0b16d996ee002ff1e989fa23ea

URL: https://github.com/llvm/llvm-project/commit/9b8c2fae38bcff0b16d996ee002ff1e989fa23ea
DIFF: https://github.com/llvm/llvm-project/commit/9b8c2fae38bcff0b16d996ee002ff1e989fa23ea.diff

LOG: fix: complete comment (#97322)

Completing a comment related to dependent template names that abruptly
ended and might cause confusion for beginner contributors.

Fixes #96718

Added: 
    

Modified: 
    clang/include/clang/AST/TemplateName.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/TemplateName.h b/clang/include/clang/AST/TemplateName.h
index 24a7fde76195d..e3b7dd261535d 100644
--- a/clang/include/clang/AST/TemplateName.h
+++ b/clang/include/clang/AST/TemplateName.h
@@ -198,7 +198,8 @@ class SubstTemplateTemplateParmPackStorage : public UncommonTemplateNameStorage,
 ///
 /// Here, "apply" is treated as a template name within the typename
 /// specifier in the typedef. "apply" is a nested template, and can
-/// only be understood in the context of
+/// only be understood in the context of a template instantiation,
+/// hence is represented as a dependent template name.
 class TemplateName {
   // NameDecl is either a TemplateDecl or a UsingShadowDecl depending on the
   // NameKind.


        


More information about the cfe-commits mailing list