mirror of https://gitlab.com/cppit/libclangmm
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.
19 lines
401 B
19 lines
401 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(); |
|
protected: |
|
std::vector<clang::Token> tks; |
|
CXToken *tokens_; |
|
unsigned num_tokens_; |
|
}; |
|
} // namespace clang |
|
#endif // TOKENS_H_
|
|
|