[PATCH] D20197: [clang-tidy] Ignore using-declarations defined in marcro in misc-unused-using-decls checks.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu May 12 02:48:23 PDT 2016
hokein marked 3 inline comments as done.
================
Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:39
@@ +38,3 @@
+ // Ignores using-declarations defined in macros.
+ if (TargetDecl->getLocation().isMacroID())
+ return;
----------------
Good point. Using `isMacroID` is enough.
http://reviews.llvm.org/D20197
More information about the cfe-commits
mailing list