Skip to content

Commit aa477f5

Browse files
committed
split comment
1 parent f7399cf commit aa477f5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

clang-tools-extra/clang-tidy/modernize/AvoidCArraysCheck.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ void AvoidCArraysCheck::check(const MatchFinder::MatchResult &Result) {
9393
} else {
9494
RecommendTypes.push_back("std::array<>");
9595
}
96-
llvm::errs() << llvm::join(RecommendTypes, " or ") << "\n";
9796
diag(ArrayType->getBeginLoc(),
9897
"do not declare %select{C-style|C VLA}0 arrays, use %1 instead")
9998
<< IsVLA << llvm::join(RecommendTypes, " or ");

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ Changes in existing checks
112112
the offending code with ``reinterpret_cast``, to more clearly express intent.
113113

114114
- Improved :doc:`modernize-avoid-c-arrays
115-
<clang-tidy/checks/modernize/avoid-c-arrays>` check to suggest using
116-
``std::span`` as replacement of incomplete C array in C++20 and ``std::vector``
117-
in the versions before C++20.
115+
<clang-tidy/checks/modernize/avoid-c-arrays>` check to suggest using ``std::span``
116+
as a replacement for parameters of incomplete C array type in C++20 and
117+
``std::array`` or ``std::vector`` before C++20.
118118

119119
- Improved :doc:`modernize-use-std-format
120120
<clang-tidy/checks/modernize/use-std-format>` check to support replacing

0 commit comments

Comments
 (0)