llvm-project/clang/test/CXX/expr
Zhihao Yuan d1a59eefd3
[Clang] Remove redundant init-parens in AST print
Given a dependent `T` (maybe an undeduced `auto`),

Before:

    new T(z)  -->  new T((z))  # changes meaning with more args
    new T{z}  -->  new T{z}
        T(z)  -->      T(z)
        T{z}  -->      T({z})  # forbidden if T is auto

After:

    new T(z)  -->  new T(z)
    new T{z}  -->  new T{z}
        T(z)   -->     T(z)
        T{z}   -->     T{z}

Depends on D113393

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D120608
2022-02-28 19:31:16 -06:00
..
expr.arith.conv
expr.ass
expr.cast
expr.cond
expr.const [clang] Stop providing builtin overload candidate for relational function pointer comparisons 2021-06-26 00:08:02 +02:00
expr.mptr.oper
expr.post [c++2b] Implement P0849R8 auto(x) 2022-02-28 19:21:08 -06:00
expr.prim [Clang] Remove redundant init-parens in AST print 2022-02-28 19:31:16 -06:00
expr.unary [c++2b] Implement P0849R8 auto(x) 2022-02-28 19:21:08 -06:00
p3.cpp
p8.cpp
p9.cpp
p10-0x.cpp [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
p13.cpp [Sema][C++] Propagate conversion kind to specialize the diagnostics 2020-02-25 16:05:37 +00:00