From 7eaf29c61e3790f703deb8ed9f1174a860a50341 Mon Sep 17 00:00:00 2001 From: Michael Ilseman Date: Tue, 9 Oct 2012 17:05:59 +0000 Subject: [PATCH] More descriptive, doxygen-ed comments llvm-svn: 165512 --- llvm/include/llvm/User.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/User.h b/llvm/include/llvm/User.h index 8b1895d..ade3676 100644 --- a/llvm/include/llvm/User.h +++ b/llvm/include/llvm/User.h @@ -118,6 +118,8 @@ public: inline op_iterator op_end() { return OperandList+NumOperands; } inline const_op_iterator op_end() const { return OperandList+NumOperands; } + /// Convenience iterator for directly iterating over the Values in the + /// OperandList class value_op_iterator : public std::iterator { op_iterator OI; @@ -131,7 +133,7 @@ public: return !operator==(x); } - // Iterator traversal: forward iteration only + /// Iterator traversal: forward iteration only value_op_iterator &operator++() { // Preincrement ++OI; return *this; @@ -140,7 +142,7 @@ public: value_op_iterator tmp = *this; ++*this; return tmp; } - // Retrieve a pointer to the current User. + /// Retrieve a pointer to the current Value. Value *operator*() const { return *OI; } -- 2.7.4