diff options
author | Roberto Raggi <qtc-committer@nokia.com> | 2008-12-09 09:42:17 +0100 |
---|---|---|
committer | Roberto Raggi <qtc-committer@nokia.com> | 2008-12-09 09:42:17 +0100 |
commit | 88b7a14a7973058248874f9a4d3dbcb181bcd352 (patch) | |
tree | bec9bd61b972d462a46766993330760639f9ea8a /shared/cplusplus/Control.cpp | |
parent | 7cf76a2b5bb3428af016b3c67ef48fdfb5b7c9a4 (diff) | |
download | qt-creator-88b7a14a7973058248874f9a4d3dbcb181bcd352.tar.gz |
Added the methods to get all the identifiers used in a translation unit.
Diffstat (limited to 'shared/cplusplus/Control.cpp')
-rw-r--r-- | shared/cplusplus/Control.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/cplusplus/Control.cpp b/shared/cplusplus/Control.cpp index c994dbab9a..a486dfdb94 100644 --- a/shared/cplusplus/Control.cpp +++ b/shared/cplusplus/Control.cpp @@ -511,6 +511,12 @@ Identifier *Control::findOrInsertIdentifier(const char *chars) return findOrInsertIdentifier(chars, length); } +Control::IdentifierIterator Control::firstIdentifier() const +{ return d->identifiers.begin(); } + +Control::IdentifierIterator Control::lastIdentifier() const +{ return d->identifiers.end(); } + StringLiteral *Control::findOrInsertStringLiteral(const char *chars, unsigned size) { return d->stringLiterals.findOrInsertLiteral(chars, size); } |