[llvm-cov] Add the project summary to the text coverage report for each source file.
This patch is a spin-off from https://reviews.llvm.org/D23922. It extends the text view to preserve the same feature as the html view. Differential Revision: https://reviews.llvm.org/D24241 llvm-svn: 280756
This commit is contained in:
@@ -65,11 +65,11 @@ void SourceCoverageViewText::renderViewFooter(raw_ostream &) {}
|
||||
|
||||
void SourceCoverageViewText::renderSourceName(raw_ostream &OS, bool WholeFile,
|
||||
unsigned FirstUncoveredLineNo) {
|
||||
getOptions().colored_ostream(OS, raw_ostream::CYAN) << getSourceName()
|
||||
getOptions().colored_ostream(OS, raw_ostream::CYAN) << getNativeSourceName()
|
||||
<< ":\n";
|
||||
if (WholeFile) {
|
||||
getOptions().colored_ostream(OS, raw_ostream::CYAN)
|
||||
<< getOptions().ObjectFilename << ":\n";
|
||||
<< "Binary: " << getOptions().ObjectFilename << ":\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user