[clang-tidy] remove private decltypeType in TrailingReturnType
authorJonas Toth <jonas.toth@gmail.com>
Mon, 23 Jul 2018 16:30:13 +0000 (16:30 +0000)
committerJonas Toth <jonas.toth@gmail.com>
Mon, 23 Jul 2018 16:30:13 +0000 (16:30 +0000)
Summary:
This patch removes a private matcher in fuchsia/TrailingReturnType check because
the matcher is now in ASTMatchers

Reviewers: aaron.ballman, alexfh, hokein

Reviewed By: aaron.ballman

Subscribers: xazax.hun, cfe-commits

Differential Revision: https://reviews.llvm.org/D49618

llvm-svn: 337707

clang-tools-extra/clang-tidy/fuchsia/TrailingReturnCheck.cpp

index 8494da8..7af0c9c 100644 (file)
@@ -19,8 +19,6 @@ namespace tidy {
 namespace fuchsia {
 
 namespace {
-const internal::VariadicDynCastAllOfMatcher<Type, DecltypeType> decltypeType;
-
 AST_MATCHER(FunctionDecl, hasTrailingReturn) {
   return Node.getType()->castAs<FunctionProtoType>()->hasTrailingReturn();
 }