[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:27 PST 2024


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

use static instead of anonymous namespace

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


More information about the cfe-commits mailing list