diff options
author | Oleksandr T. <oleksandr.tarasiuk@outlook.com> | 2025-05-22 17:03:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-22 17:03:32 +0300 |
commit | 50127ac054a08321b64f4ac24bda5cad20e20ac1 (patch) | |
tree | ee8eaf7fa55099db7c898b27b2eb12c5fb3754c4 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 6eb4adf7460f6b677f372b19758540ec890ef06a (diff) | |
download | llvm-50127ac054a08321b64f4ac24bda5cad20e20ac1.zip llvm-50127ac054a08321b64f4ac24bda5cad20e20ac1.tar.gz llvm-50127ac054a08321b64f4ac24bda5cad20e20ac1.tar.bz2 |
[Clang] add typo correction for unknown attribute names (#140629)
This patch enhances Clang's diagnosis for unknown attributes by
providing typo correction suggestions for known attributes.
```cpp
[[gmu::deprected]] // expected-warning {{unknown attribute 'gmu::deprected' ignored; did you mean 'gnu::deprecated'?}}
int f1(void) {
return 0;
}
[[deprected]] // expected-warning {{unknown attribute 'deprected' ignored; did you mean 'deprecated'?}}
int f2(void) {
return 0;
}
```
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions