You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
536 B

11 years ago
#ifndef TOKENS_H_
#define TOKENS_H_
#include "TranslationUnit.h"
#include "SourceRange.h"
#include "Token.h"
namespace clang {
class Tokens : public std::vector<clang::Token> {
11 years ago
public:
Tokens(TranslationUnit *tu, SourceRange *range);
~Tokens();
void update_types(clang::TranslationUnit *tu);
std::string get_brief_comments(size_t cursor_id);
11 years ago
private:
11 years ago
CXToken *tokens_;
unsigned num_tokens_;
std::vector<CXCursor> clang_cursors;
11 years ago
TranslationUnit& tu;
11 years ago
};
} // namespace clang
#endif // TOKENS_H_