Greetings!
Exploring ways to emit JSON output from clang-tidy such that it can be cached.
Which is the right place to add/modify code -- (a) in ClangTidyDiagnosticConsumer::finish() [at this point we have filtered diag errors] OR
(b) ClangTidyContext::diag() [getting invoked on each unfiltered diagnostic error]
From ClangTidyContext, DiagnosticEngine and SourceManager, how to get json tuple {"tidy-checker":<tidy-checker-name>,"file":<source-file-name>,"line":<line#>,"column":<column#> }.
Thank you in advance.
-H