diff options
| author | Sam McCall <sam.mccall@gmail.com> | 2019-04-17 20:12:03 +0000 |
|---|---|---|
| committer | Sam McCall <sam.mccall@gmail.com> | 2019-04-17 20:12:03 +0000 |
| commit | d98170c324b193ebe44cbedaa53748fc3beea91d (patch) | |
| tree | eb0d2f62aa96850cac713c999d90973119806290 /llvm/lib/Transforms | |
| parent | 09ef420d6254f945a50da07a0a71c2c7a93b6b12 (diff) | |
| download | bcm5719-llvm-d98170c324b193ebe44cbedaa53748fc3beea91d.tar.gz bcm5719-llvm-d98170c324b193ebe44cbedaa53748fc3beea91d.zip | |
[clangd] Use shorter, more recognizable codes for diagnostics.
Summary:
- for warnings, use the flag the warning is controlled by (-Wfoo)
- for errors, keep using the internal name (there's nothing better) but
drop the err_ prefix
This comes at the cost of uniformity, it's no longer totally obvious
exactly what the code field contains. But the -Wname flags are so much
more useful to end-users than the internal warn_foo that this seems worth it.
Reviewers: kadircet
Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D60822
llvm-svn: 358611
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions

