#if false #ifndef TOKENS_H_ #define TOKENS_H_ #include #include "SourceRange.h" #include "Token.h" #include #include namespace clang { class Tokens : public std::vector { friend class TranslationUnit; friend class Diagnostic; Tokens(CXTranslationUnit &cx_tu, const SourceRange &range); public: ~Tokens(); std::vector > get_similar_token_offsets(CXCursorKind kind, const std::string &spelling, const std::string &usr); private: CXToken *cx_tokens; unsigned num_tokens; std::vector cx_cursors; CXTranslationUnit& cx_tu; }; } // namespace clang #endif // TOKENS_H_ #endif