summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cov/SourceCoverageView.h
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-09-16 06:21:57 +0000
committerJustin Bogner <mail@justinbogner.com>2014-09-16 06:21:57 +0000
commit76e251c03bfacdee5cd229abb6c4a074e1ee32e0 (patch)
tree351f02aac44ab10c22d1cf28fd2eb86d6a5fe731 /llvm/tools/llvm-cov/SourceCoverageView.h
parentc17c8093dbb35bb6836ed3bb8c6ef3a48c79555a (diff)
downloadbcm5719-llvm-76e251c03bfacdee5cd229abb6c4a074e1ee32e0.tar.gz
bcm5719-llvm-76e251c03bfacdee5cd229abb6c4a074e1ee32e0.zip
llvm-cov: Rename a variable and clean up its usage
Offset is a terrible name for an indentation / nesting level, and it confuses me every time I look at this code. llvm-svn: 217861
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.h')
-rw-r--r--llvm/tools/llvm-cov/SourceCoverageView.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageView.h b/llvm/tools/llvm-cov/SourceCoverageView.h
index 362ff1a4cbd..0777c23a855 100644
--- a/llvm/tools/llvm-cov/SourceCoverageView.h
+++ b/llvm/tools/llvm-cov/SourceCoverageView.h
@@ -141,7 +141,7 @@ private:
void renderLine(raw_ostream &OS, StringRef Line,
ArrayRef<HighlightRange> Ranges);
- void renderOffset(raw_ostream &OS, unsigned I);
+ void renderIndent(raw_ostream &OS, unsigned Level);
void renderViewDivider(unsigned Offset, unsigned Length, raw_ostream &OS);
@@ -192,7 +192,7 @@ public:
/// \brief Print the code coverage information for a specific
/// portion of a source file to the output stream.
- void render(raw_ostream &OS, unsigned Offset = 0);
+ void render(raw_ostream &OS, unsigned IndentLevel = 0);
/// \brief Load the coverage information required for rendering
/// from the mapping regions in the data manager.
OpenPOWER on IntegriCloud