[clang-tools-extra] r359876 - Added an AST matcher for declarations that are in the `std` namespace
Dmitri Gribenko via cfe-commits
cfe-commits at lists.llvm.org
Fri May 3 05:50:00 PDT 2019
Author: gribozavr
Date: Fri May 3 05:50:00 2019
New Revision: 359876
URL: http://llvm.org/viewvc/llvm-project?rev=359876&view=rev
Log:
Added an AST matcher for declarations that are in the `std` namespace
Reviewers: alexfh
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D61480
Modified:
clang-tools-extra/trunk/clang-tidy/bugprone/InaccurateEraseCheck.cpp
Modified: clang-tools-extra/trunk/clang-tidy/bugprone/InaccurateEraseCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/bugprone/InaccurateEraseCheck.cpp?rev=359876&r1=359875&r2=359876&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/bugprone/InaccurateEraseCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/bugprone/InaccurateEraseCheck.cpp Fri May 3 05:50:00 2019
@@ -17,10 +17,6 @@ namespace clang {
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.
More information about the cfe-commits
mailing list