diff options
| author | Sam McCall <sam.mccall@gmail.com> | 2021-12-10 04:17:50 +0100 |
|---|---|---|
| committer | Sam McCall <sam.mccall@gmail.com> | 2022-01-10 12:17:19 +0100 |
| commit | 1ab13793beafd1db0159a410560b3ce998b15f5e (patch) | |
| tree | cba8d7b96521b8a8f037791fba09b9671536c47a /llvm/unittests/Support/TargetParserTest.cpp | |
| parent | 2f672e2ffa22d8c10279569de123a1e60d3aa00e (diff) | |
| download | llvm-1ab13793beafd1db0159a410560b3ce998b15f5e.zip llvm-1ab13793beafd1db0159a410560b3ce998b15f5e.tar.gz llvm-1ab13793beafd1db0159a410560b3ce998b15f5e.tar.bz2 | |
[clangd] Include fixer for missing functions in C
A function call `unresolved()` in C will generate an implicit declaration
of the missing function and warn `ext_implicit_function_decl` or so.
(Compared to in C++ where we get `err_undeclared_var_use`).
We want to try to resolve these names.
Unfortunately typo correction is disabled in sema for performance
reasons unless this warning is promoted to error.
(We need typo correction for include-fixer.)
It's not clear to me where a switch to force this correction on should
go, include-fixer is kind of a hack. So hack more by telling sema we're
promoting them to error.
Fixes https://github.com/clangd/clangd/issues/937
Differential Revision: https://reviews.llvm.org/D115490
Diffstat (limited to 'llvm/unittests/Support/TargetParserTest.cpp')
0 files changed, 0 insertions, 0 deletions
