On Mon Aug 25 17:06:51 2025 +0000, Elizabeth Figura wrote:
The issue is that these kind of warnings/errors don't seem to be
reported by clangd. I'm not completely sure where this comes from but I believe it might be a decision, for performance reasons, as https://github.com/clangd/clangd/issues/137 suggests. Wait, which kinds of errors? If myint_dec() is declared and referenced by the header, but never defined in the implementation, surely Clang reports an error for this? Are we talking about some other kind of error?
The compiler will emit an error when compiling the file, yes. But LSP tools (clangd, which are usually reporting compile-time errors interactively while editing code in your favorite editor) will not and you will only notice a missing function when actually building. This would be a regression for anybody using LSP in their editor compared to the current situation.