aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Ilseman <milseman@apple.com>2012-10-09 17:05:59 +0000
committerMichael Ilseman <milseman@apple.com>2012-10-09 17:05:59 +0000
commit798290e744343f098c686537b2906f9b93741039 (patch)
treea743be641fe001098a75e906e2649f9a7f77125d
parent80d94e053a384f83075b55c3f62ccc91caf93d18 (diff)
downloadexternal_llvm-798290e744343f098c686537b2906f9b93741039.zip
external_llvm-798290e744343f098c686537b2906f9b93741039.tar.gz
external_llvm-798290e744343f098c686537b2906f9b93741039.tar.bz2
More descriptive, doxygen-ed comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165512 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/User.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/User.h b/include/llvm/User.h
index 8b1895d..ade3676 100644
--- a/include/llvm/User.h
+++ b/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<std::forward_iterator_tag,
Value*> {
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;
}