[PATCH] D48116: [libclang] Allow skipping warnings from all included files
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 27 03:40:08 PDT 2018
ilya-biryukov added a comment.
Sorry for the late response, was on vacation.
Have you considered doing the same filtering in ASTUnit's `StoredDiagnosticConsumer`? It should not be more difficult and allows to avoid changing the clang's diagnostic interfaces. That's what we do in clangd.
I wonder if you want to handle notes and remarks in a special manner? They can be seen as part of the original diagnostic, rather than the separate diagnostic. E.g. showing a note in the main file, but not showing the diagnostic from the headers file that this note comes from, might be confusing to the users.
Maybe also add tests for diagnostics in the main file with notes/remarks in the header files and vice versa?
Repository:
rC Clang
https://reviews.llvm.org/D48116
More information about the cfe-commits
mailing list