[ASTMatchers] Fixed CastKind being parsed incorrectly for dynamic matchers
authorNathan James <n.james93@hotmail.co.uk>
Mon, 6 Apr 2020 19:08:21 +0000 (20:08 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Thu, 9 Apr 2020 14:09:45 +0000 (15:09 +0100)
commitdb71354e4ff13e8f5c6ab38da6339c7583209be0
tree6853ea8c6e6ab40b7f5b61353402355f3e813707
parent30e5c7e82fa1c5318540feb83d54757c632e2599
[ASTMatchers] Fixed CastKind being parsed incorrectly for dynamic matchers

Summary: Requires hasCastKind arguments to have `CK_` prefixed to bring it in line with the documentation and other matchers that take enumerations.

Reviewers: klimek, aaron.ballman

Reviewed By: aaron.ballman

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D77503
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/lib/ASTMatchers/Dynamic/Marshallers.cpp
clang/lib/ASTMatchers/Dynamic/Marshallers.h
clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp