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
399 B

11 years ago
#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();
11 years ago
private:
11 years ago
std::vector<clang::Token> tks;
CXToken *tokens_;
unsigned num_tokens_;
};
} // namespace clang
#endif // TOKENS_H_