Adds the test infrastructure for testing the FalsePositiveRefutationBRVisitor.
It will be extended in the D78457 patch, which demonstrates and fixes a bug in
the visitor.
Differential D78704
[analyzer][NFC] Add unittest for FalsePositiveRefutationBRVisitor steakhal on Apr 23 2020, 4:53 AM. Authored by
Details Adds the test infrastructure for testing the FalsePositiveRefutationBRVisitor. It will be extended in the D78457 patch, which demonstrates and fixes a bug in
Diff Detail
Event TimelineComment Actions Thanks! Having more tests is always welcome! I mentioned some nits inline, but I wonder if you actually need to add a new check. Can't you just reuse existing debug checks? clang_analyzer_warnIfReached clang_analyzer_eval
Comment Actions I like it! Nice work! I have some minor comments.
Comment Actions I addressed most of the comments.
Comment Actions I think this should not be blocked on the gtest update. If getting an updated gtest into the repo takes to much time and the reviewers are happy, I'm fine with doing that change as a follow-up. Overall it looks good to me but wait for some more reviews before committing.
Comment Actions Other than Whispy's nits, LGTM!
Comment Actions I reverted your commit because it seemed to have broken the build: FalsePositiveRefutationBRVisitorTest.cpp:112:3: error: use of undeclared identifier 'LLVM_WITH_Z3' https://github.com/llvm/llvm-project/commit/a44425f25b5ca417e7ecee6e7e00040224e50a69 Comment Actions This commit breaks standalone clang builds.
|
Do you use this function template anywhere?