diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Lex/MacroInfo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/Lex/MacroInfo.h b/include/clang/Lex/MacroInfo.h index ea1a06d33e..b7495bf548 100644 --- a/include/clang/Lex/MacroInfo.h +++ b/include/clang/Lex/MacroInfo.h @@ -157,10 +157,10 @@ public: return ReplacementTokens[Tok]; } - const std::vector<LexerToken> &getReplacementTokens() const { - return ReplacementTokens; - } - + typedef std::vector<LexerToken>::const_iterator tokens_iterator; + tokens_iterator tokens_begin() const { return ReplacementTokens.begin(); } + tokens_iterator tokens_end() const { return ReplacementTokens.end(); } + /// AddTokenToBody - Add the specified token to the replacement text for the /// macro. void AddTokenToBody(const LexerToken &Tok) { |