kadircet added a comment.

thanks this looks great! just a question around rendering of the result type 
chunk. feel free to leave a fixme if there's no easy way of doing that.



================
Comment at: clang/lib/Parse/ParseTemplate.cpp:1237
+///
+/// \param NameHint is not required, and merely affects code completion.
+bool Parser::ParseTemplateIdAfterTemplateName(bool ConsumeLastToken,
----------------
`s/NameHint/Template` ?


================
Comment at: clang/lib/Sema/SemaCodeComplete.cpp:3785
+  if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(TD))
+    return FTD->getTemplatedDecl()->getType().getAsString(Policy);
+  if (isa<TypeAliasTemplateDecl>(TD))
----------------
the rendering looks a little bit surprising to me `foo<arg1,arg2> -> bool 
(float)` we might consider printing parameters first, e.g. 
`foo<arg1,arg2>(float) -> bool`. i think this also looks more natural for the 
following signature help on function parameters.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116352/new/

https://reviews.llvm.org/D116352

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to