[clang] dce89fe - [clang][NFC] Fix a doc comment mixup
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Mon May 15 23:13:06 PDT 2023
Author: Timm Bäder
Date: 2023-05-16T08:12:48+02:00
New Revision: dce89fe7212255b5f76fff3b8d55929920f0eb34
URL: https://github.com/llvm/llvm-project/commit/dce89fe7212255b5f76fff3b8d55929920f0eb34
DIFF: https://github.com/llvm/llvm-project/commit/dce89fe7212255b5f76fff3b8d55929920f0eb34.diff
LOG: [clang][NFC] Fix a doc comment mixup
These are regular comments, use double slashes.
Added:
Modified:
clang/lib/Frontend/DiagnosticRenderer.cpp
Removed:
################################################################################
diff --git a/clang/lib/Frontend/DiagnosticRenderer.cpp b/clang/lib/Frontend/DiagnosticRenderer.cpp
index 9177ba9f4f068..4cd7d982ed0ec 100644
--- a/clang/lib/Frontend/DiagnosticRenderer.cpp
+++ b/clang/lib/Frontend/DiagnosticRenderer.cpp
@@ -493,7 +493,7 @@ static bool checkRangesForMacroArgExpansion(FullSourceLoc Loc,
SmallVector<CharSourceRange, 4> SpellingRanges;
mapDiagnosticRanges(Loc, Ranges, SpellingRanges);
- /// Count all valid ranges.
+ // Count all valid ranges.
unsigned ValidCount = 0;
for (const auto &Range : Ranges)
if (Range.isValid())
@@ -502,11 +502,11 @@ static bool checkRangesForMacroArgExpansion(FullSourceLoc Loc,
if (ValidCount > SpellingRanges.size())
return false;
- /// To store the source location of the argument location.
+ // To store the source location of the argument location.
FullSourceLoc ArgumentLoc;
- /// Set the ArgumentLoc to the beginning location of the expansion of Loc
- /// so to check if the ranges expands to the same beginning location.
+ // Set the ArgumentLoc to the beginning location of the expansion of Loc
+ // so to check if the ranges expands to the same beginning location.
if (!Loc.isMacroArgExpansion(&ArgumentLoc))
return false;
More information about the cfe-commits
mailing list