[llvm-cov] Use less space to describe source names
In r279628, we made SourceCoverageView list the binary associated with a view and started adding labels (e.g "Source: foo" or "Function: bar") to everything. Condense this information a bit to unclutter reports. llvm-svn: 280896
This commit is contained in:
@@ -65,12 +65,8 @@ void SourceCoverageViewText::renderViewFooter(raw_ostream &) {}
|
||||
|
||||
void SourceCoverageViewText::renderSourceName(raw_ostream &OS, bool WholeFile,
|
||||
unsigned FirstUncoveredLineNo) {
|
||||
getOptions().colored_ostream(OS, raw_ostream::CYAN) << getNativeSourceName()
|
||||
<< ":\n";
|
||||
if (WholeFile) {
|
||||
getOptions().colored_ostream(OS, raw_ostream::CYAN)
|
||||
<< "Binary: " << getOptions().ObjectFilename << ":\n";
|
||||
}
|
||||
std::string ViewInfo = WholeFile ? getVerboseSourceName() : getSourceName();
|
||||
getOptions().colored_ostream(OS, raw_ostream::CYAN) << ViewInfo << ":\n";
|
||||
}
|
||||
|
||||
void SourceCoverageViewText::renderLinePrefix(raw_ostream &OS,
|
||||
|
||||
Reference in New Issue
Block a user