[PATCH] D18919: [Clang-tidy] Add check "modernize use using"

Piotr Padlewski via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 14 15:24:17 PDT 2016


Prazek accepted this revision.
Prazek added a comment.
This revision is now accepted and ready to land.

shipit <http://reviews.llvm.org/macro/meme/?macro=shipit>

LGTM


================
Comment at: clang-tidy/modernize/UseUsingCheck.cpp:71
@@ +70,3 @@
+  const auto *MatchedDecl = Result.Nodes.getNodeAs<TypedefDecl>("typedef");
+  if (!MatchedDecl->getLocation().isValid())
+    return;
----------------
There should be method called 'isInvalid()'


Repository:
  rL LLVM

http://reviews.llvm.org/D18919





More information about the cfe-commits mailing list