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.
 
 

20 lines
477 B

#ifndef TOKENS_H_
#define TOKENS_H_
#include "TranslationUnit.h"
#include "SourceRange.h"
#include "Token.h"
namespace clang {
class Tokens {
public:
Tokens(TranslationUnit *tu, SourceRange *range);
~Tokens();
std::vector<Token>& tokens();
std::vector<clang::Cursor> get_token_cursors(clang::TranslationUnit *tu);
private:
std::vector<clang::Token> tks;
CXToken *tokens_;
unsigned num_tokens_;
};
} // namespace clang
#endif // TOKENS_H_