[PATCH] D19876: Add an AST matcher for string-literal length

Etienne Bergeron via cfe-commits cfe-commits at lists.llvm.org
Fri May 6 09:32:21 PDT 2016


etienneb added a comment.

Aaron? minus re-generation of the doc.
Is that what you want to see?

note: returned types for both getLength are not the same (APInt vs unsigned int).
I took the 'hasSize'-Matcher approach to let overloaded operators do the job for dispatching types.

note: there is a unittest for top-level node that is no longer valid because stringLiteral can be a top-level node now.


http://reviews.llvm.org/D19876





More information about the cfe-commits mailing list