- we don't record the warnings at all
- even when -Werror is set, we don't want to stop indexing for a warning
- this allows some analyses to be skipped which can save some CPU
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clangd/index/IndexAction.cpp | ||
---|---|---|
140 ↗ | (On Diff #192636) | Can we add a unittest for this? IIRC, IgnoreWarnings option must be set before CompilerInstance is created, otherwise it doesn't take affect, see https://github.com/llvm-mirror/clang-tools-extra/blob/master/clangd/CodeComplete.cpp#L1029 |
clangd/index/IndexAction.cpp | ||
---|---|---|
140 ↗ | (On Diff #192636) | Added test, thanks. You're right, the flag has already been copied to the diagnostics client. It's too late to set it here. Unfortunately we don't control where the CompilerInstance is created, but this is semantically the right layer to make the decision to suppress warnings. So I've just set it on the diagnostics client too :-/ |
clangd/index/IndexAction.cpp | ||
---|---|---|
138 ↗ | (On Diff #192651) | I think -Werror is't set should be -Werror is set? |