This patch is adding support for a matcher to check string literal length.
This matcher is used in clang-tidy checkers and is part of this refactoring:
see: http://reviews.llvm.org/D19841
Paths
| Differential D19876
Add an AST matcher for string-literal length ClosedPublic Authored by etienneb on May 3 2016, 10:51 AM.
Details Summary This patch is adding support for a matcher to check string literal length. This matcher is used in clang-tidy checkers and is part of this refactoring: see: http://reviews.llvm.org/D19841
Diff Detail Event Timelineetienneb updated this object.
Comment Actions Aaron? could you comment on it?
Comment Actions Other opinions?
Comment Actions Aaron? minus re-generation of the doc. note: returned types for both getLength are not the same (APInt vs unsigned int). note: there is a unittest for top-level node that is no longer valid because stringLiteral can be a top-level node now. Comment Actions
Yes, this is the direction I was hoping for, thank you!
Perfect!
Thank you for that explanation, I was curious about that. :-) This revision is now accepted and ready to land.May 11 2016, 12:52 PM
Revision Contents
Diff 56942 docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h
include/clang/ASTMatchers/ASTMatchersInternal.h
unittests/ASTMatchers/ASTMatchersTest.cpp
|
Split these onto two lines?