|
|
|
@ -22,12 +22,13 @@ namespace Source { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
ClangViewParse(const boost::filesystem::path &file_path, const boost::filesystem::path& project_path, Glib::RefPtr<Gsv::Language> language); |
|
|
|
ClangViewParse(const boost::filesystem::path &file_path, const boost::filesystem::path& project_path, Glib::RefPtr<Gsv::Language> language); |
|
|
|
virtual void configure(); |
|
|
|
bool on_key_press_event(GdkEventKey* key) override; |
|
|
|
|
|
|
|
|
|
|
|
void soft_reparse(); |
|
|
|
void configure() override; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void soft_reparse() override; |
|
|
|
protected: |
|
|
|
protected: |
|
|
|
void init_parse(); |
|
|
|
void init_parse(); |
|
|
|
bool on_key_press_event(GdkEventKey* key); |
|
|
|
|
|
|
|
std::unique_ptr<clang::TranslationUnit> clang_tu; |
|
|
|
std::unique_ptr<clang::TranslationUnit> clang_tu; |
|
|
|
std::mutex parsing_mutex; |
|
|
|
std::mutex parsing_mutex; |
|
|
|
std::unique_ptr<clang::Tokens> clang_tokens; |
|
|
|
std::unique_ptr<clang::Tokens> clang_tokens; |
|
|
|
@ -38,8 +39,8 @@ namespace Source { |
|
|
|
std::atomic<bool> parse_thread_stop; |
|
|
|
std::atomic<bool> parse_thread_stop; |
|
|
|
std::atomic<bool> parse_error; |
|
|
|
std::atomic<bool> parse_error; |
|
|
|
|
|
|
|
|
|
|
|
virtual void show_diagnostic_tooltips(const Gdk::Rectangle &rectangle); |
|
|
|
void show_diagnostic_tooltips(const Gdk::Rectangle &rectangle) override; |
|
|
|
virtual void show_type_tooltips(const Gdk::Rectangle &rectangle); |
|
|
|
void show_type_tooltips(const Gdk::Rectangle &rectangle) override; |
|
|
|
|
|
|
|
|
|
|
|
boost::regex bracket_regex; |
|
|
|
boost::regex bracket_regex; |
|
|
|
boost::regex no_bracket_statement_regex; |
|
|
|
boost::regex no_bracket_statement_regex; |
|
|
|
@ -80,10 +81,11 @@ namespace Source { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
ClangViewAutocomplete(const boost::filesystem::path &file_path, const boost::filesystem::path& project_path, Glib::RefPtr<Gsv::Language> language); |
|
|
|
ClangViewAutocomplete(const boost::filesystem::path &file_path, const boost::filesystem::path& project_path, Glib::RefPtr<Gsv::Language> language); |
|
|
|
|
|
|
|
bool on_key_press_event(GdkEventKey* key) override; |
|
|
|
|
|
|
|
|
|
|
|
virtual void async_delete(); |
|
|
|
virtual void async_delete(); |
|
|
|
bool full_reparse(); |
|
|
|
bool full_reparse() override; |
|
|
|
protected: |
|
|
|
protected: |
|
|
|
bool on_key_press_event(GdkEventKey* key); |
|
|
|
|
|
|
|
std::thread autocomplete_thread; |
|
|
|
std::thread autocomplete_thread; |
|
|
|
sigc::connection autocomplete_done_connection; |
|
|
|
sigc::connection autocomplete_done_connection; |
|
|
|
sigc::connection autocomplete_fail_connection; |
|
|
|
sigc::connection autocomplete_fail_connection; |
|
|
|
@ -126,7 +128,7 @@ namespace Source { |
|
|
|
class ClangView : public ClangViewRefactor { |
|
|
|
class ClangView : public ClangViewRefactor { |
|
|
|
public: |
|
|
|
public: |
|
|
|
ClangView(const boost::filesystem::path &file_path, const boost::filesystem::path& project_path, Glib::RefPtr<Gsv::Language> language); |
|
|
|
ClangView(const boost::filesystem::path &file_path, const boost::filesystem::path& project_path, Glib::RefPtr<Gsv::Language> language); |
|
|
|
virtual void async_delete(); |
|
|
|
void async_delete() override; |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|