diff options
| author | Marco Maia <marcogmaia@gmail.com> | 2025-07-21 04:36:08 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-21 09:36:08 +0200 |
| commit | 7355ea3f6b214d1569da43d02f9a166ff15012e6 (patch) | |
| tree | 45f2787e7f5e9230eeada0d11b38993bbdb4753b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 03bd0f36ba1c35c9dfbdc3d021e73940a18a6cf9 (diff) | |
[clangd] Add tweak to override pure virtuals (#139348)
closes https://github.com/clangd/clangd/issues/1037
closes https://github.com/clangd/clangd/issues/2240
Example:
```c++
class Base {
public:
virtual void publicMethod() = 0;
protected:
virtual auto privateMethod() const -> int = 0;
};
// Before:
// // cursor here
class Derived : public Base{}^ ;
// After:
class Derived : public Base {
public:
void publicMethod() override {
// TODO: Implement this pure virtual method.
static_assert(false, "Method `publicMethod` is not implemented.");
}
protected:
auto privateMethod() const -> int override {
// TODO: Implement this pure virtual method.
static_assert(false, "Method `privateMethod` is not implemented.");
}
};
```
https://github.com/user-attachments/assets/79de40d9-1004-4c2e-8f5c-be1fb074c6de
---------
Co-authored-by: Marco Maia <marco.maia@iarasystems.com.br>
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
