diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-02-20 11:52:27 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-02-20 11:52:27 +0100 |
commit | 4c5ff047f0a1831d1247ca73d889b283d01fd3fb (patch) | |
tree | b6de5bfcf63aa22bc0a8265a7cc055a70ce132ae /src/shared/cplusplus/Token.h | |
parent | 4a259547fc5a8e456ca47c1fd218dae028c9e271 (diff) | |
download | qt-creator-4c5ff047f0a1831d1247ca73d889b283d01fd3fb.tar.gz |
Initial support for doxygen comments.
Diffstat (limited to 'src/shared/cplusplus/Token.h')
-rw-r--r-- | src/shared/cplusplus/Token.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Token.h b/src/shared/cplusplus/Token.h index f48654aa77..55cacf7379 100644 --- a/src/shared/cplusplus/Token.h +++ b/src/shared/cplusplus/Token.h @@ -64,6 +64,7 @@ enum Kind { T_ERROR, T_COMMENT, + T_DOXY_COMMENT, T_IDENTIFIER, T_FIRST_LITERAL, @@ -297,6 +298,9 @@ public: inline bool isKeyword() const { return kind >= T_FIRST_KEYWORD && kind < T_FIRST_QT_KEYWORD; } + inline bool isComment() const + { return kind == T_COMMENT || kind == T_DOXY_COMMENT; } + inline bool isObjCAtKeyword() const { return kind >= T_FIRST_OBJC_AT_KEYWORD && kind < T_LAST_OBJC_AT_KEYWORD; } |