5 Commits

Author SHA1 Message Date
Jessica Clarke
f9ead46931
[AST] Only dump desugared type when visibly different (#65214)
These are an artifact of how types are structured but serve little
purpose, merely showing that the type is sugared in some way. For
example, ElaboratedType's existence means struct S gets printed as
'struct S':'struct S' in the AST, which is unnecessary visual clutter.
Note that skipping the second print when the types have the same string
matches what we do for diagnostics, where the aka will be skipped.
2023-10-26 19:28:28 +01:00
Mital Ashok
92f4bf2689 Fix aggregate CTAD with string literals adding extra const
Missing a `withConst`, so when deducing from a string literal, a `const` is erroneously added to the deduced type.

Reviewed By: ychen

Differential Revision: https://reviews.llvm.org/D154301
2023-07-05 11:54:51 -07:00
Yuanfang Chen
c0e23bcdfb [clang] P1816R0 and P2082R1 should work for cxx20 and after only
For commit 632dd6a4ca0036009f
2023-07-01 17:23:41 -07:00
Yuanfang Chen
f78c9be14d Adjust tests in 632dd6a4ca0036009f for ARM host
size_t is unsigned int on ARM.
2023-06-29 15:35:10 -07:00
Yuanfang Chen
632dd6a4ca [Clang] Implements CTAD for aggregates P1816R0 and P2082R1
Differential Revision: https://reviews.llvm.org/D139837
2023-06-29 14:22:24 -07:00