diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-28 01:02:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-28 01:02:17 +0000 |
commit | 21ec0e4c5db85e45b59cafabca66d640e0ee2dcc (patch) | |
tree | 00aef1d88b180ab36dc6368cd661ddb733a23e3f | |
parent | 524b86f03f9e517aad82e8205854a663e576a192 (diff) |
clarify comment, rename argument to avoid a subtle conflict
with an ivar that wasn't a bug but was confusing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58311 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Lex/TokenLexer.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/clang/Lex/TokenLexer.h b/include/clang/Lex/TokenLexer.h index 9e384347d1..47b7c213d7 100644 --- a/include/clang/Lex/TokenLexer.h +++ b/include/clang/Lex/TokenLexer.h @@ -87,12 +87,13 @@ public: /// ownership of the ActualArgs pointer. void Init(Token &Tok, MacroArgs *ActualArgs); - /// Create a TokenLexer for the specified token stream. This does not - /// take ownership of the specified token vector. + /// Create a TokenLexer for the specified token stream. If 'OwnsTokens' is + /// specified, this takes ownership of the tokens and delete[]'s them when + /// the token lexer is empty. TokenLexer(const Token *TokArray, unsigned NumToks, bool DisableExpansion, - bool OwnsTokens, Preprocessor &pp) + bool ownsTokens, Preprocessor &pp) : Macro(0), ActualArgs(0), PP(pp), OwnsTokens(false) { - Init(TokArray, NumToks, DisableExpansion, OwnsTokens); + Init(TokArray, NumToks, DisableExpansion, ownsTokens); } /// Init - Initialize this TokenLexer with the specified token stream. |