[PATCH] D19871: Add an AST matcher for CastExpr kind
Samuel Benzaquen via cfe-commits
cfe-commits at lists.llvm.org
Tue May 3 11:07:21 PDT 2016
sbenza added a comment.
> > So even if the above solution is working, we still need to call it that way (as a string):
>
> > clang-query> match castExpr(hasCastKind("CK_Dependent"))
>
>
> Correct, that's expected behavior for clang-query (though I would love if someday we could expose actual enumerations somehow instead of string literals).
It is not hard to do, but it would require changing the parser, the registry, the type-erased value wrapper, etc.
The late conversion from "string" to enum was the easiest solution at the time.
http://reviews.llvm.org/D19871
More information about the cfe-commits
mailing list