[PATCH] D89220: [clang-rename] Simplify the code of handling class paritial specializations, NFC.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 14 06:16:27 PDT 2020
hokein added inline comments.
================
Comment at: clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp:119
+ llvm::for_each(PartialSpecs,
+ [&](const auto *Spec) { addUSRsOfCtorDtors(Spec); });
addUSRsOfCtorDtors(TemplateDecl->getTemplatedDecl());
----------------
danilaml wrote:
> Btw, this breaks on GCC <= 7.1, due to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67274
> Workaround is to use `this->`.
oh, thanks for spotting it!
Fixed in e6b4179c5d282905a8ad17c57153b991c42d1126, instead of adding `this->`, I reverted it to the for-range loop.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89220/new/
https://reviews.llvm.org/D89220
More information about the cfe-commits
mailing list