[PATCH] D154884: [clang-tidy] Make MatchesAnyListedNameMatcher cope with unnamed Decl
Piotr Zegar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 10 13:47:05 PDT 2023
PiotrZSL added a comment.
Remove example from commit message, it's already included in patch.
Simply commit message should be properly formatted without unnecessary information.
================
Comment at: clang-tools-extra/clang-tidy/utils/Matchers.h:115
default:
- return Regex.match(ND.getName());
+ if (const IdentifierInfo *II = ND.getIdentifier(); II)
+ return Regex.match(II->getName());
----------------
Not needed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154884/new/
https://reviews.llvm.org/D154884
More information about the cfe-commits
mailing list