[clang-tools-extra] [clang-tid]fix modernize-use-auto incorrect fix hints for pointer (PR #77943)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 12 09:41:29 PST 2024


================
@@ -333,6 +335,26 @@ void UseAutoCheck::replaceIterators(const DeclStmt *D, ASTContext *Context) {
       << FixItHint::CreateReplacement(Range, "auto");
 }
 
+namespace {
+
+void ignoreTypeLocClasses(
+    TypeLoc &Loc, llvm::SmallVector<TypeLoc::TypeLocClass> const &LocClasses) {
----------------
PiotrZSL wrote:

take std::initialization_list instead of vector.

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


More information about the cfe-commits mailing list