[PATCH] D76549: [clang-tidy] Fix RenamerClangTidy handling qualified TypeLocs

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 22 09:04:10 PDT 2020


aaron.ballman added a comment.

I'd appreciate seeing your test cases from the summary added to a test somewhere.



================
Comment at: clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp:206
   if (const auto *Loc = Result.Nodes.getNodeAs<TypeLoc>("typeLoc")) {
+    auto Unqual = Loc->getUnqualifiedLoc();
     NamedDecl *Decl = nullptr;
----------------
Don't use `auto` as the type is not spelling out in the initialization.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76549/new/

https://reviews.llvm.org/D76549





More information about the cfe-commits mailing list