[PATCH] D36083: [utils] Add a script that runs clang in LLDB and stops it when a specified diagnostic is emitted
don hinton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 31 10:27:23 PDT 2017
hintonda added a comment.
Cool, I'll try to play with this later today.
BTW, since the call to DiagnosticsEngine::Report is delayed when using PartialDiagnostic, would it make sense to add them as well? Also, this doesn't seem to solve the initial problem of finding the Diag name in the first place.
Eventually, I'd like a scan-build like tool that let you rerun a particular compilation command (without needing to construct the -cc1 command yourself), that adds breakpoints for all warning/error diagnostics seen before invoking lldb -- perhaps even leveraging the compilation database, a la clang-tidy.
Repository:
rL LLVM
https://reviews.llvm.org/D36083
More information about the cfe-commits
mailing list