[PATCH] D24778: Add `StringRef::consumeInteger`
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 21 15:17:30 PDT 2016
zturner updated this revision to Diff 72115.
zturner added a comment.
Added a few test cases showing what happens in the case of a radix mismatch (TL;DR - it stops consuming once it reaches a digit of an invalid radix).
Also this caught a few bugs in weird edge cases, which I fixed, so thanks for the suggestion
https://reviews.llvm.org/D24778
Files:
include/llvm/ADT/StringRef.h
lib/Support/StringRef.cpp
unittests/ADT/StringRefTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24778.72115.patch
Type: text/x-patch
Size: 13057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160921/85197cfd/attachment.bin>
More information about the llvm-commits
mailing list