[llvm-bugs] [Bug 42914] New: [AST] AutoType within AutoTypeLoc is missing deduced type.
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Aug 7 06:13:34 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42914
Bug ID: 42914
Summary: [AST] AutoType within AutoTypeLoc is missing deduced
type.
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: sammccall at google.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
the program `auto x = 4;` has an AST that looks like:
VarDecl type=T1
- typeloc type=T2
- integerliteral
T1 is correctly an auto type that wraps int.
However T2 is undeduced: it's ASTContext::getAutoDeductType().
This irregularity makes it harder/slower to write tools that (e.g.) care what
an `auto` under the cursor expands to.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190807/ffc4b064/attachment.html>
More information about the llvm-bugs
mailing list