[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
Loading
Please sign in to comment