[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:28 PST 2024
================
@@ -405,12 +421,20 @@ void UseAutoCheck::replaceExpr(
auto Diag = diag(Range.getBegin(), Message);
+ bool ShouldReplenishVariableName = isMutliLevelPointerToTypeLocClasses(
+ FirstDecl->getTypeSourceInfo()->getTypeLoc(),
----------------
PiotrZSL wrote:
Would be nice to verify if getTypeSourceInfo is not null.
https://github.com/llvm/llvm-project/pull/77943
More information about the cfe-commits
mailing list