[PATCH] D72442: [Sema] Store deduced type in TypeLoc
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 9 03:45:20 PST 2020
ilya-biryukov created this revision.
Herald added subscribers: cfe-commits, usaxena95, kadircet.
Herald added a project: clang.
This greatly simplifies source-level tools that need to know what 'auto'
deduced to, e.g. clangd.
Also change default presentation of such types to print 'auto' instead
of the deduced type. To print the deduced types, one shoould set the
PrintingPolicy::Flag to true.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72442
Files:
clang/include/clang/AST/PrettyPrinter.h
clang/include/clang/Sema/Sema.h
clang/lib/AST/DeclPrinter.cpp
clang/lib/AST/TypePrinter.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/SemaLambda.cpp
clang/lib/Sema/SemaStmt.cpp
clang/lib/Sema/SemaTemplate.cpp
clang/lib/Sema/SemaTemplateDeduction.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72442.237006.patch
Type: text/x-patch
Size: 22875 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200109/12737292/attachment-0001.bin>
More information about the cfe-commits
mailing list