File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff 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 " );
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments