[ASTMatchers] add matcher for decltypeType and its underlyingType
authorJonas Toth <jonas.toth@gmail.com>
Mon, 23 Jul 2018 15:59:27 +0000 (15:59 +0000)
committerJonas Toth <jonas.toth@gmail.com>
Mon, 23 Jul 2018 15:59:27 +0000 (15:59 +0000)
commitfa1ea6977c37f4d6ac89907215dfa04b50f7ab8b
treed926d4d44359ecaf5e817347954c699e94a6def0
parent4f4dfbacada3f33b00786bda2f13a91ad45d6ba1
[ASTMatchers] add matcher for decltypeType and its underlyingType

Summary:
This patch introduces a new matcher for `DecltypeType` and its underlying type
in order to fix a bug in clang-tidy, see https://reviews.llvm.org/D48717 for more.

Reviewers: aaron.ballman, alexfh, NoQ, dcoughlin

Reviewed By: aaron.ballman

Subscribers: cfe-commits

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

llvm-svn: 337703
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/lib/ASTMatchers/ASTMatchersInternal.cpp
clang/lib/ASTMatchers/Dynamic/Registry.cpp
clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp