[PATCH] D24102: [LLVM/Support] - Disallow match() method of llvm::Regex to change object state.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 1 05:31:36 PDT 2016


> Maybe just add the warn_unused_result attribute?

Not sure how this helps. Actually main point is that such change allows to make match() as const,
that helps for example if we have a std::vector of them and want to pass it as ArrayRef.

And it is also cleanup itself as there is no point for match() to set object state to error.

George.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160901/36149306/attachment.html>


More information about the llvm-commits mailing list