#ifndef TRANSLATIONUNIT_H_ #define TRANSLATIONUNIT_H_ #include #include #include #include #include #include "Index.h" #include "Cursor.h" #include "../language_server_api.h" namespace clang { class TranslationUnit { public: TranslationUnit(Index* index, const std::string& filepath, const std::vector& arguments, std::vector unsaved_files, unsigned flags); ~TranslationUnit(); bool did_fail = false; void ReparseTranslationUnit(std::vector& unsaved); Cursor document_cursor() const; CXTranslationUnit cx_tu; }; } // namespace clang #endif // TRANSLATIONUNIT_H_