[PATCH] First revision of the dynamic ASTMatcher library
Dmitri Gribenko
gribozavr at gmail.com
Fri May 3 11:13:36 PDT 2013
================
Comment at: lib/ASTMatchers/Dynamic/Parser.cpp:97-98
@@ +96,4 @@
+ size_t TokenLength = 0;
+ while (TokenLength < Code.size() && isAlphanumeric(Code[TokenLength]))
+ ++TokenLength;
+ Result.Kind = TokenInfo::TK_IDENT;
----------------
What if this loop executes 0 times? This should be an error.
http://llvm-reviews.chandlerc.com/D714
BRANCH
svn
ARCANIST PROJECT
clang
More information about the cfe-commits
mailing list