aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/configuration.py
diff options
context:
space:
mode:
authorHaojian Wu <hokein.wu@gmail.com>2020-04-03 11:00:16 +0200
committerHaojian Wu <hokein.wu@gmail.com>2020-04-14 12:58:48 +0200
commit9657385960350150b77ed652175b4c3801abd7fa (patch)
tree4cdf8199df190c2087f59c77476ec93869d0aa0e /lldb/packages/Python/lldbsuite/test/configuration.py
parent38609fa9e42aef24b64055817ed01cd015648608 (diff)
downloadllvm-9657385960350150b77ed652175b4c3801abd7fa.zip
llvm-9657385960350150b77ed652175b4c3801abd7fa.tar.gz
llvm-9657385960350150b77ed652175b4c3801abd7fa.tar.bz2
[AST] Dont invalide VarDecl even the default initializaiton is failed.
Summary: This patch would cause clang emit more diagnostics, but it is much better than https://reviews.llvm.org/D76831 ```cpp struct A { A(int); ~A() = delete; }; void k() { A a; } ``` before the patch: /tmp/t3.cpp:24:5: error: no matching constructor for initialization of 'A' A a; ^ /tmp/t3.cpp:20:3: note: candidate constructor not viable: requires 1 argument, but 0 were provided A(int); ^ /tmp/t3.cpp:19:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided struct A { After the patch: /tmp/t3.cpp:24:5: error: no matching constructor for initialization of 'A' A a; ^ /tmp/t3.cpp:20:3: note: candidate constructor not viable: requires 1 argument, but 0 were provided A(int); ^ /tmp/t3.cpp:19:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided struct A { ^ /tmp/t3.cpp:24:5: error: attempt to use a deleted function A a; ^ /tmp/t3.cpp:21:3: note: '~A' has been explicitly marked deleted here ~A() = delete; Reviewers: sammccall Reviewed By: sammccall Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D77395
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
0 files changed, 0 insertions, 0 deletions