[clang-tools-extra] [clang-tidy]suggest use `std::span` as replacement of c array in C++20 for modernize-avoid-c-arrays (PR #108555)

via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 13 07:29:56 PDT 2024


================
@@ -72,11 +81,22 @@ void AvoidCArraysCheck::registerMatchers(MatchFinder *Finder) {
 
 void AvoidCArraysCheck::check(const MatchFinder::MatchResult &Result) {
   const auto *ArrayType = Result.Nodes.getNodeAs<TypeLoc>("typeloc");
-
+  bool const IsInParam =
----------------
EugeneZelenko wrote:

Please be consistent with `const` position.

https://github.com/llvm/llvm-project/pull/108555


More information about the cfe-commits mailing list