]> granicus.if.org Git - llvm/commitdiff
Use LLVM_ATTRIBUTE_UNUSED instead of void casts; NFC
authorVedant Kumar <vsk@apple.com>
Wed, 29 Jun 2016 16:56:46 +0000 (16:56 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 29 Jun 2016 16:56:46 +0000 (16:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274139 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-cov/SourceCoverageViewText.cpp

index 70ded87c495515951d0c0f46056f9bea31506331..69f4ad4fbfc83ed0795ab5cebbbdbca4789825df 100644 (file)
@@ -59,9 +59,11 @@ unsigned getDividerWidth(const CoverageViewOptions &Opts) {
 
 } // anonymous namespace
 
-void SourceCoverageViewText::renderViewHeader(raw_ostream &OS) { (void)OS; }
+void SourceCoverageViewText::renderViewHeader(
+    raw_ostream &OS LLVM_ATTRIBUTE_UNUSED) {}
 
-void SourceCoverageViewText::renderViewFooter(raw_ostream &OS) { (void)OS; }
+void SourceCoverageViewText::renderViewFooter(
+    raw_ostream &OS LLVM_ATTRIBUTE_UNUSED) {}
 
 void SourceCoverageViewText::renderSourceName(raw_ostream &OS) {
   getOptions().colored_ostream(OS, raw_ostream::CYAN) << getSourceName()
@@ -74,11 +76,9 @@ void SourceCoverageViewText::renderLinePrefix(raw_ostream &OS,
     OS << "  |";
 }
 
-void SourceCoverageViewText::renderLineSuffix(raw_ostream &OS,
-                                              unsigned ViewDepth) {
-  (void)OS;
-  (void)ViewDepth;
-}
+void SourceCoverageViewText::renderLineSuffix(
+    raw_ostream &OS LLVM_ATTRIBUTE_UNUSED,
+    unsigned ViewDepth LLVM_ATTRIBUTE_UNUSED) {}
 
 void SourceCoverageViewText::renderViewDivider(raw_ostream &OS,
                                                unsigned ViewDepth) {