diff options
author | Kazu Hirata <kazu@google.com> | 2022-01-08 11:56:38 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-01-08 11:56:38 -0800 |
commit | 435a5a365207d0f4b1be35a1ea3bcd4981950b20 (patch) | |
tree | dcbb63a0ee59426d2e0145339ad5e1ab61382790 /llvm/tools/llvm-cov | |
parent | 2cafbcb560d9e6e2300941d088e754b01d56595b (diff) | |
download | llvm-435a5a365207d0f4b1be35a1ea3bcd4981950b20.zip llvm-435a5a365207d0f4b1be35a1ea3bcd4981950b20.tar.gz llvm-435a5a365207d0f4b1be35a1ea3bcd4981950b20.tar.bz2 |
[llvm] Fix bugprone argument comments (NFC)
Identified with bugprone-argument-comment.
Diffstat (limited to 'llvm/tools/llvm-cov')
-rw-r--r-- | llvm/tools/llvm-cov/CodeCoverage.cpp | 2 | ||||
-rw-r--r-- | llvm/tools/llvm-cov/CoverageReport.cpp | 2 | ||||
-rw-r--r-- | llvm/tools/llvm-cov/SourceCoverageView.cpp | 4 | ||||
-rw-r--r-- | llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp index d357ad7..ef80128 100644 --- a/llvm/tools/llvm-cov/CodeCoverage.cpp +++ b/llvm/tools/llvm-cov/CodeCoverage.cpp @@ -209,7 +209,7 @@ void CodeCoverageTool::addCollectedPath(const std::string &Path) { error(EC.message(), Path); return; } - sys::path::remove_dots(EffectivePath, /*remove_dot_dots=*/true); + sys::path::remove_dots(EffectivePath, /*remove_dot_dot=*/true); if (!IgnoreFilenameFilters.matchesFilename(EffectivePath)) SourceFiles.emplace_back(EffectivePath.str()); HadSourceFiles = !SourceFiles.empty(); diff --git a/llvm/tools/llvm-cov/CoverageReport.cpp b/llvm/tools/llvm-cov/CoverageReport.cpp index 2c08f53..c91edc2 100644 --- a/llvm/tools/llvm-cov/CoverageReport.cpp +++ b/llvm/tools/llvm-cov/CoverageReport.cpp @@ -179,7 +179,7 @@ void CoverageReport::render(const FileCoverageSummary &File, determineCoveragePercentageColor(File.InstantiationCoverage); auto LineCoverageColor = determineCoveragePercentageColor(File.LineCoverage); SmallString<256> FileName = File.Name; - sys::path::remove_dots(FileName, /*remove_dot_dots=*/true); + sys::path::remove_dots(FileName, /*remove_dot_dot=*/true); sys::path::native(FileName); OS << column(FileName, FileReportColumns[0], Column::NoTrim); diff --git a/llvm/tools/llvm-cov/SourceCoverageView.cpp b/llvm/tools/llvm-cov/SourceCoverageView.cpp index aca58a0..ea86aca 100644 --- a/llvm/tools/llvm-cov/SourceCoverageView.cpp +++ b/llvm/tools/llvm-cov/SourceCoverageView.cpp @@ -41,7 +41,7 @@ std::string CoveragePrinter::getOutputPath(StringRef Path, StringRef Extension, sys::path::append(FullPath, getCoverageDir()); SmallString<256> ParentPath = sys::path::parent_path(Path); - sys::path::remove_dots(ParentPath, /*remove_dot_dots=*/true); + sys::path::remove_dots(ParentPath, /*remove_dot_dot=*/true); sys::path::append(FullPath, sys::path::relative_path(ParentPath)); auto PathFilename = (sys::path::filename(Path) + "." + Extension).str(); @@ -157,7 +157,7 @@ SourceCoverageView::create(StringRef SourceName, const MemoryBuffer &File, std::string SourceCoverageView::getSourceName() const { SmallString<128> SourceText(SourceName); - sys::path::remove_dots(SourceText, /*remove_dot_dots=*/true); + sys::path::remove_dots(SourceText, /*remove_dot_dot=*/true); sys::path::native(SourceText); return std::string(SourceText.str()); } diff --git a/llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp b/llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp index 7ab1d66..56efc40 100644 --- a/llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp +++ b/llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp @@ -322,7 +322,7 @@ std::string CoveragePrinterHTML::buildLinkToFile(StringRef SF, const FileCoverageSummary &FCS) const { SmallString<128> LinkTextStr(sys::path::relative_path(FCS.Name)); - sys::path::remove_dots(LinkTextStr, /*remove_dot_dots=*/true); + sys::path::remove_dots(LinkTextStr, /*remove_dot_dot=*/true); sys::path::native(LinkTextStr); std::string LinkText = escape(LinkTextStr, Opts); std::string LinkTarget = |