[cfe-dev] emit JSON output from clang-tidy
Oza, Hiral via cfe-dev
cfe-dev at lists.llvm.org
Thu Oct 25 02:40:11 PDT 2018
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
More information about the cfe-dev
mailing list