[PATCH] D68143: [clang] Make handling of unnamed template params similar to function params
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 27 08:39:06 PDT 2019
kadircet created this revision.
kadircet added a reviewer: ilya-biryukov.
Herald added subscribers: cfe-commits, arphaman.
Herald added a project: clang.
Clang uses the location identifier should be inserted for declarator
decls when a decl is unnamed. But for type template and template template
paramaters it uses the location of "typename/class" keyword, which makes it hard
for tooling to insert/change parameter names.
This change tries to unify these two cases by making template parameter
parsing and sourcerange operations similar to function params/declarator decls.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D68143
Files:
clang/lib/AST/DeclTemplate.cpp
clang/lib/Parse/ParseTemplate.cpp
clang/lib/Sema/SemaTemplate.cpp
clang/test/AST/ast-dump-decl.cpp
clang/test/AST/ast-dump-record-definition-data-json.cpp
clang/test/AST/ast-dump-template-decls-json.cpp
clang/test/AST/ast-dump-template-decls.cpp
clang/test/ASTMerge/class-template/test.cpp
clang/test/Index/index-templates.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68143.222183.patch
Type: text/x-patch
Size: 10260 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190927/9884e548/attachment.bin>
More information about the cfe-commits
mailing list