[PATCH] D26137: [clang-tidy] Add check name to YAML export

Alpha Abdoulaye via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 1 05:39:44 PST 2016


Alpha marked 10 inline comments as done.
Alpha added inline comments.


================
Comment at: include/clang/Tooling/DiagnosticsYaml.h:79
+      for (auto &Diagnostic : Doc.Diagnostics) {
+        if (Diagnostic.Fix.size() > 0) {
+          Diagnostics.push_back(Diagnostic);
----------------
alexfh wrote:
> Should we copy all diagnostics instead?
I am not sure about that. Copying all diagnostics will mean having empty entries in the replacement files with just a check name. This might seem useless, the problem being that at the moment, the only useful exported information in diagnostics are the replacements. I think that if all diagnostics are copied, it must be done in a different patch, with a proper export of all the meaningful information about the diagnostics.
Then, the exported info in clang-tidy will not solely be fixes, but every diagnostic info (which could mean changing the name and meaning of output file and option). What is your feeling about this?


Repository:
  rL LLVM

https://reviews.llvm.org/D26137





More information about the cfe-commits mailing list