diff options
author | Haojian Wu <hokein.wu@gmail.com> | 2021-10-12 16:13:09 +0200 |
---|---|---|
committer | Haojian Wu <hokein.wu@gmail.com> | 2021-10-18 10:00:21 +0200 |
commit | 6e63f96e11ee9af300b166c994980d3b80cea0c7 (patch) | |
tree | ad2efe4e7bcb6983c6e7e75da9e43d651c94b903 /lldb/source/Commands/CommandObjectThread.cpp | |
parent | 3f0b178de21ee82791a6ebe198314f14c0287a44 (diff) | |
download | llvm-6e63f96e11ee9af300b166c994980d3b80cea0c7.zip llvm-6e63f96e11ee9af300b166c994980d3b80cea0c7.tar.gz llvm-6e63f96e11ee9af300b166c994980d3b80cea0c7.tar.bz2 |
[Parse] Improve diagnostic and recovery when there is an extra override in the outline method definition.
The clang behavior was poor before this patch:
```
void B::foo() override {}
// Before: clang emited "expcted function body after function
// declarator", and skiped all contents until it hits a ";", the
// following function f() is discarded.
// VS
// Now "override is not allowed" with a remove fixit, and following f()
// is retained.
void f();
```
Differential Revision: https://reviews.llvm.org/D111883
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
0 files changed, 0 insertions, 0 deletions