[PATCH] D61480: Added an AST matcher for declarations that are in the `std` namespace

Dmitri Gribenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 3 05:49:20 PDT 2019


This revision was automatically updated to reflect the committed changes.
gribozavr marked an inline comment as done.
Closed by commit rCTE359876: Added an AST matcher for declarations that are in the `std` namespace (authored by gribozavr, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D61480?vs=197950&id=197970#toc

Repository:
  rCTE Clang Tools Extra

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

https://reviews.llvm.org/D61480

Files:
  clang-tidy/bugprone/InaccurateEraseCheck.cpp


Index: clang-tidy/bugprone/InaccurateEraseCheck.cpp
===================================================================
--- clang-tidy/bugprone/InaccurateEraseCheck.cpp
+++ clang-tidy/bugprone/InaccurateEraseCheck.cpp
@@ -17,10 +17,6 @@
 namespace tidy {
 namespace bugprone {
 
-namespace {
-AST_MATCHER(Decl, isInStdNamespace) { return Node.isInStdNamespace(); }
-}
-
 void InaccurateEraseCheck::registerMatchers(MatchFinder *Finder) {
   // Only register the matchers for C++; the functionality currently does not
   // provide any benefit to other languages, despite being benign.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61480.197970.patch
Type: text/x-patch
Size: 585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190503/1db99709/attachment.bin>


More information about the cfe-commits mailing list