Csaba Dabis
124ef7fce4
[analyzer] ConditionBRVisitor: Fix HTML PathDiagnosticPopUpPieces
...
Summary:
A condition could be a multi-line expression where we create the highlight
in separated chunks. PathDiagnosticPopUpPiece is not made for that purpose,
it cannot be added to multiple lines because we have only one ending part
which contains all the notes. So that it cannot have multiple endings and
therefore this patch narrows down the ranges of the highlight to the given
interesting variable of the condition. It prevents HTML-breaking injections.
Reviewed By: NoQ
Differential Revision: https://reviews.llvm.org/D65663
llvm-svn: 368382
2019-08-09 02:20:44 +00:00
Hubert Tong
15e3e95263
[analyzer][NFC][tests] Pre-normalize expected-plists
...
As suggested in the review for D62949, this patch pre-normalizes the
reference expected output plist files by removing lines containing
fields for which we expect differences that should be ignored.
llvm-svn: 362877
2019-06-08 13:51:37 +00:00
Csaba Dabis
2e896b8b39
[analyzer] ConditionBRVisitor: Boolean support
...
Summary: -
Reviewers: NoQ, george.karpenkov
Reviewed By: NoQ, george.karpenkov
Subscribers: cfe-commits, xazax.hun, baloghadamsoftware, szepet, a.sidorin,
mikhail.ramalho, Szelethus, donat.nagy, dkrupp
Tags: #clang
Differential Revision: https://reviews.llvm.org/D58207
llvm-svn: 362027
2019-05-29 20:34:29 +00:00
Csaba Dabis
4b0184b2d3
[analyzer] ConditionBRVisitor: Enhance to write out more information
...
Summary:
Add extra messages to the bug report to inform the user why the analyzer
`Taking true/false branch`.
Reviewers: NoQ, george.karpenkov
Reviewed By: NoQ
Subscribers: gerazo, gsd, dkrupp, whisperity, baloghadamsoftware, xazax.hun,
eraman, szepet, a.sidorin, mikhail.ramalho, Szelethus,
donat.nagy, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D53076
llvm-svn: 362020
2019-05-29 20:06:09 +00:00
Richard Smith
8baa50013c
[cxx2a] P0614R1: Support init-statements in range-based for loops.
...
We don't yet support this for the case where a range-based for loop is
implicitly rewritten to an ObjC for..in statement.
llvm-svn: 343350
2018-09-28 18:44:09 +00:00
George Karpenkov
8a88c83593
Revert "Revert "Revert "Revert "[analyzer] Add coverage information to plist output, update tests""""
...
This reverts commit 2f5d71d9fa135be86bb299e7d773036e50bf1df6.
Hopefully fixing tests on Windows.
llvm-svn: 341719
2018-09-07 21:58:24 +00:00
Simon Pilgrim
b746df0b0a
Revert "Revert "Revert "[analyzer] Add coverage information to plist output, update tests"""
...
Reverts analyzer tests from rL341627 again as they still broke windows buildbots
llvm-svn: 341648
2018-09-07 10:27:16 +00:00
George Karpenkov
d7acacab94
Revert "Revert "[analyzer] Add coverage information to plist output, update tests""
...
This reverts commit a39bcab414dd7ace7e490363ecdf01ecce7743fc.
Reverting the revert, fixing tests.
llvm-svn: 341627
2018-09-07 02:02:35 +00:00
George Karpenkov
4762fb5d11
Revert "[analyzer] Add coverage information to plist output, update tests"
...
This reverts commit 03d183b6b94eda27ce66a4f9b87a00b0a148cf9e.
Temporary revert until the tests are fixed.
llvm-svn: 341626
2018-09-07 01:39:23 +00:00
George Karpenkov
bb313b797d
[analyzer] Add coverage information to plist output, update tests
...
Split tests which were still using FileCheck to compare plists.
Differential Revision: https://reviews.llvm.org/D51515
llvm-svn: 341621
2018-09-07 00:44:17 +00:00
Richard Smith
5b2636142a
Move test inputs into Inputs directory.
...
We don't need a new ExpectedOutputs/ convention. Expected outputs are
just another form of test input.
llvm-svn: 339634
2018-08-14 00:18:48 +00:00