#
4a54abea |
| 29-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Do not allow ".." to escape the coverage sub-directory
In -output-dir mode, file reports are placed into a "coverage" directory. If filenames in the coverage mapping contain "..", they mi
[llvm-cov] Do not allow ".." to escape the coverage sub-directory
In -output-dir mode, file reports are placed into a "coverage" directory. If filenames in the coverage mapping contain "..", they might escape out of this directory.
Fix the problem by removing ".." from source filenames (expand the path component).
llvm-svn: 274135
show more ...
|
#
8d74cb27 |
| 29-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Minor cleanups to prepare for the html format patch
- Add renderView{Header,Footer}, renderLineSuffix, and hasSubViews to support creating tables with nested views.
- Move the 'Format'
[llvm-cov] Minor cleanups to prepare for the html format patch
- Add renderView{Header,Footer}, renderLineSuffix, and hasSubViews to support creating tables with nested views.
- Move the 'Format' cl::opt to make it easier to extend.
- Just create one function view file, instead of overwriting the same file for every new function. Add a regression test for this.
llvm-svn: 274086
show more ...
|
#
0fecee9c |
| 28-Jun-2016 |
Simon Pilgrim <llvm-dev@redking.me.uk> |
Fix "not all control paths return a value" warning on MSVC
llvm-svn: 274065
|
#
9cbad2c2 |
| 28-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Create an index of reports in -output-dir mode
This index lists the reports available in the 'coverage' sub-directory. This will help navigate coverage output from large projects.
This c
[llvm-cov] Create an index of reports in -output-dir mode
This index lists the reports available in the 'coverage' sub-directory. This will help navigate coverage output from large projects.
This commit factors the file creation code out of SourceCoverageView and into CoveragePrinter.
llvm-svn: 274029
show more ...
|
#
ebe84016 |
| 28-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Rename ShowFormat to Format (NFC)
This makes it a bit more generic, in case we want to emit summary reports in different formats in the future.
llvm-svn: 274026
|
#
de717e65 |
| 28-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Move a check into a helper method (NFC)
llvm-svn: 274025
|
#
d95a1723 |
| 28-Jun-2016 |
Simon Pilgrim <llvm-dev@redking.me.uk> |
Fix "not all control paths return a value" warning on MSVC
llvm-svn: 274011
|
#
7937ef37 |
| 28-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
Reapply "[llvm-cov] Add an -output-dir option for the show sub-command""
Passing -output-dir path/to/dir to llvm-cov show creates path/to/dir if it doesn't already exist, and prints reports into tha
Reapply "[llvm-cov] Add an -output-dir option for the show sub-command""
Passing -output-dir path/to/dir to llvm-cov show creates path/to/dir if it doesn't already exist, and prints reports into that directory.
In function view mode, all views are written into path/to/dir/functions.$EXTENSION. In file view mode, all views are written into path/to/dir/coverage/$PATH.$EXTENSION.
Changes since the initial commit:
- Avoid accidentally closing stdout twice.
llvm-svn: 273985
show more ...
|
#
a48d9fe8 |
| 28-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
Revert "[llvm-cov] Add an -output-dir option for the show sub-command"
This reverts commit r273971. test/profile/instrprof-visibility.cpp is failing because of an uncaught error in SafelyCloseFileDe
Revert "[llvm-cov] Add an -output-dir option for the show sub-command"
This reverts commit r273971. test/profile/instrprof-visibility.cpp is failing because of an uncaught error in SafelyCloseFileDescriptor.
llvm-svn: 273978
show more ...
|
#
02507c43 |
| 28-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Add an -output-dir option for the show sub-command
Passing -output-dir path/to/dir to llvm-cov show creates path/to/dir if it doesn't already exist, and prints reports into that directory
[llvm-cov] Add an -output-dir option for the show sub-command
Passing -output-dir path/to/dir to llvm-cov show creates path/to/dir if it doesn't already exist, and prints reports into that directory.
In function view mode, all views are written into path/to/dir/functions.$EXTENSION. In file view mode, all views are written into path/to/dir/coverage/$PATH.$EXTENSION.
llvm-svn: 273971
show more ...
|
#
635c83c1 |
| 28-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Add a format option for the 'show' sub-command (mostly NFC)
llvm-svn: 273968
|
#
861a19c2 |
| 26-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Simplify the way expansion views are rendered (NFC)
If a sub-view has already been rendered, it's helpful to re-render the expansion site before rendering the next expansion view. Make th
[llvm-cov] Simplify the way expansion views are rendered (NFC)
If a sub-view has already been rendered, it's helpful to re-render the expansion site before rendering the next expansion view. Make this fact explicit in the rendering interface, instead of hiding it behind an awkward Optional<LineRef> parameter.
llvm-svn: 273789
show more ...
|
#
8b12ecb7 |
| 25-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Make an API more consistent, NFC
Make renderExpansionView() look a bit more like renderLine(), and clarify its doxygen comment.
llvm-svn: 273773
|
#
ee5a5e9b |
| 25-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Flesh out some doxygen comments, NFC
llvm-svn: 273772
|
#
f9151b93 |
| 25-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Separate presentation logic from formatting logic, NFC
This makes it easier to add renderers for new kinds of output formats.
- Define and document a pure-virtual coverage rendering inte
[llvm-cov] Separate presentation logic from formatting logic, NFC
This makes it easier to add renderers for new kinds of output formats.
- Define and document a pure-virtual coverage rendering interface. - Move the text-based rendering logic into its a new file. - Re-work the API to better reflect the presentation/formatting split.
llvm-svn: 273767
show more ...
|
#
1c4f588d |
| 24-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Use getOptions() instead of Options in SourceCoverageView, NFC
A lot of this code is going to move into the text-based coverage renderer, and won't be able to use Options directly. Use th
[llvm-cov] Use getOptions() instead of Options in SourceCoverageView, NFC
A lot of this code is going to move into the text-based coverage renderer, and won't be able to use Options directly. Use the getter.
llvm-svn: 273635
show more ...
|
#
9d70d0b5 |
| 24-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Add SourceNames to SourceCoverageViews, NFC
A SourceName can be a file or a function. It makes sense to attach this information to a SourceCoverageView, seeing as views (1) already point
[llvm-cov] Add SourceNames to SourceCoverageViews, NFC
A SourceName can be a file or a function. It makes sense to attach this information to a SourceCoverageView, seeing as views (1) already point to the text corresponding to the relevant source code and (2) are already used to render that text along with the SourceNames.
This is a nice cleanup which is independent of the upcoming html patch.
While we're at it, document the fields in SourceCoverageView.
llvm-svn: 273634
show more ...
|
#
60dcb48a |
| 24-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Rename SourceCoverageView::LineCoverageInfo to LineCoverageStats, NFC
Pull LineCoverageInfo out of SourceCoverageView and rename it so that it doesn't conflict with another class of the s
[llvm-cov] Rename SourceCoverageView::LineCoverageInfo to LineCoverageStats, NFC
Pull LineCoverageInfo out of SourceCoverageView and rename it so that it doesn't conflict with another class of the same name in CoverageSummaryInfo.h.
This cuts down on the amount of code we have to move into a `protected` section of SourceCoverageView for the upcoming html patch. It also makes the code a bit clearer: having two LineCoverageInfo's is strange.
llvm-svn: 273633
show more ...
|
Revision tags: llvmorg-3.8.1, llvmorg-3.8.1-rc1, llvmorg-3.8.0, llvmorg-3.8.0-rc3, llvmorg-3.8.0-rc2, llvmorg-3.8.0-rc1, llvmorg-3.7.1, llvmorg-3.7.1-rc2, llvmorg-3.7.1-rc1, llvmorg-3.7.0, llvmorg-3.7.0-rc4, llvmorg-3.7.0-rc3, studio-1.4, llvmorg-3.7.0-rc2, llvmorg-3.7.0-rc1, llvmorg-3.6.2, llvmorg-3.6.2-rc1, llvmorg-3.6.1 |
|
#
d0ceebf1 |
| 13-May-2015 |
Justin Bogner <mail@justinbogner.com> |
InstrProf: Fix display of large numbers in llvm-cov
llvm-cov was truncating numbers that were larger than a particular fixed width, which is as confusing as it is useless. Instead, we use engineerin
InstrProf: Fix display of large numbers in llvm-cov
llvm-cov was truncating numbers that were larger than a particular fixed width, which is as confusing as it is useless. Instead, we use engineering notation with SI prefix for magnitude.
llvm-svn: 237307
show more ...
|
Revision tags: llvmorg-3.6.1-rc1, llvmorg-3.5.2, llvmorg-3.5.2-rc1, llvmorg-3.6.0, llvmorg-3.6.0-rc4, llvmorg-3.6.0-rc3, llvmorg-3.6.0-rc2, llvmorg-3.6.0-rc1, llvmorg-3.5.1, llvmorg-3.5.1-rc2, llvmorg-3.5.1-rc1 |
|
#
953e2407 |
| 20-Sep-2014 |
Justin Bogner <mail@justinbogner.com> |
llvm-cov: Disentangle the coverage data logic from the display (NFC)
This splits the logic for actually looking up coverage information from the logic that displays it. These were tangled rather tho
llvm-cov: Disentangle the coverage data logic from the display (NFC)
This splits the logic for actually looking up coverage information from the logic that displays it. These were tangled rather thoroughly so this change is a bit large, but it mostly consists of moving things around. The coverage lookup logic itself now lives in the library, rather than being spread between the library and the tool.
llvm-svn: 218184
show more ...
|
#
13ba23bb |
| 19-Sep-2014 |
Justin Bogner <mail@justinbogner.com> |
llvm-cov: Fix dropped lines when filters were applied
Uncovered lines in the middle of a covered region weren't being shown when filtering to a particular function.
llvm-svn: 218109
|
#
5cbed6e0 |
| 17-Sep-2014 |
Justin Bogner <mail@justinbogner.com> |
llvm-cov: Push some more debug output into the View (NFC)
llvm-svn: 217984
|
#
fe357c00 |
| 17-Sep-2014 |
Justin Bogner <mail@justinbogner.com> |
llvm-cov: Rework the API for getting the coverage of a file (NFC)
This encapsulates how we handle the coverage regions of a file or function. In the old model, the user had to deal with nested regio
llvm-cov: Rework the API for getting the coverage of a file (NFC)
This encapsulates how we handle the coverage regions of a file or function. In the old model, the user had to deal with nested regions, so they needed to maintain their own auxiliary data structures to get any useful information out of this. The new API provides a sequence of non-overlapping coverage segments, which makes it possible to render coverage information in a single pass and avoids a fair amount of extra work.
llvm-svn: 217975
show more ...
|
#
69fe4e98 |
| 17-Sep-2014 |
Justin Bogner <mail@justinbogner.com> |
LineIterator: Provide a variant that keeps blank lines
It isn't always useful to skip blank lines, as evidenced by the somewhat awkward use of line_iterator in llvm-cov. This adds a knob to control
LineIterator: Provide a variant that keeps blank lines
It isn't always useful to skip blank lines, as evidenced by the somewhat awkward use of line_iterator in llvm-cov. This adds a knob to control whether or not to skip blanks.
llvm-svn: 217960
show more ...
|
#
5e1400a8 |
| 17-Sep-2014 |
Justin Bogner <mail@justinbogner.com> |
llvm-cov: Distinguish expansion/instantiation from SourceCoverageView
SourceCoverageView currently has "Kind" and a list of child views, all of which must have either an expansion or an instantiatio
llvm-cov: Distinguish expansion/instantiation from SourceCoverageView
SourceCoverageView currently has "Kind" and a list of child views, all of which must have either an expansion or an instantiation Kind. In addition to being an error-prone design, this makes it awkward to differentiate between the two child types and adds a number of optionally used members to the type.
Split the subview types into their own separate objects, and maintain lists of each rather than one combined "Children" list.
llvm-svn: 217940
show more ...
|