[PATCH] D49794: [libclang] Allow skipping warnings from all included files

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 31 04:38:39 PDT 2018

ilya-biryukov added inline comments.

Comment at: include/clang/Driver/Options.td:1745
     HelpText<"remap file source paths in debug info">;
+def fsuppress_non_errors_from_included_files : Flag<["-"], "fsuppress-non-errors-from-included-files">,
+  Group<f_Group>, Flags<[CC1Option]>;
Why would we ever want to suppress diagnostics from *all* included files in the compiler mode?

That seems more appropriate in the tooling mode (e.g. IDE integration, etc.). However, that could probably be done without modifications of core clang bits, e.g. by writing a DiagnosticsConsumer that ignores diagnostics coming from outside the main file.


More information about the cfe-commits mailing list