[PATCH] D35715: Preserve typedef names in debug info for template type parameters
Paul Robinson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 20 18:36:45 PDT 2017
probinson created this revision.
If a template instantiation uses a typedef'd name as a template parameter, this is usually resolved
to its underlying type when we generate the name of the instance in the debug info.
PS4 prefers to see the original parameter as in the source. Define an option that makes that happen,
and have the default for the option depend on debugger tuning.
This also provides some motivation for https://reviews.llvm.org/D14358.
https://reviews.llvm.org/D35715
Files:
include/clang/AST/PrettyPrinter.h
include/clang/AST/TemplateBase.h
include/clang/AST/Type.h
include/clang/Basic/LangOptions.def
include/clang/Driver/Options.td
lib/AST/TemplateBase.cpp
lib/AST/Type.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Sema/SemaTemplate.cpp
test/CodeGen/debug-template-types.cpp
test/Driver/clang_f_opts.c
test/Index/print-type.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35715.107622.patch
Type: text/x-patch
Size: 13787 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170721/e9c90821/attachment-0001.bin>
More information about the cfe-commits
mailing list