- 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
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 29757 Build 29756: arc lint + arc unit
Event Timeline
clangd/index/IndexAction.cpp | ||
---|---|---|
140 | 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 | 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 | I think -Werror is't set should be -Werror is set? |
I think -Werror is't set should be -Werror is set?