diff --git a/src/autocomplete.h b/src/autocomplete.h index de27947..1d5939b 100644 --- a/src/autocomplete.h +++ b/src/autocomplete.h @@ -1,5 +1,4 @@ -#ifndef JUCI_AUTOCOMPLETE_H_ -#define JUCI_AUTOCOMPLETE_H_ +#pragma once #include "dispatcher.h" #include "tooltips.h" #include @@ -57,5 +56,3 @@ public: private: void setup_dialog(); }; - -#endif // JUCI_AUTOCOMPLETE_H_ diff --git a/src/cmake.h b/src/cmake.h index 462bd31..f87010a 100644 --- a/src/cmake.h +++ b/src/cmake.h @@ -1,5 +1,4 @@ -#ifndef JUCI_CMAKE_H_ -#define JUCI_CMAKE_H_ +#pragma once #include #include #include @@ -29,4 +28,3 @@ private: std::vector > > get_functions_parameters(const std::string &name); bool parsed=false; }; -#endif //JUCI_CMAKE_H_ diff --git a/src/compile_commands.h b/src/compile_commands.h index 4dc77f9..642cd33 100644 --- a/src/compile_commands.h +++ b/src/compile_commands.h @@ -1,6 +1,4 @@ -#ifndef JUCI_COMPILE_COMMANDS_H_ -#define JUCI_COMPILE_COMMANDS_H_ - +#pragma once #include #include #include @@ -22,5 +20,3 @@ public: /// Return arguments for the given file using libclangmm static std::vector get_arguments(const boost::filesystem::path &build_path, const boost::filesystem::path &file_path); }; - -#endif // JUCI_COMPILE_COMMANDS_H_ diff --git a/src/config.h b/src/config.h index d357ec1..42b0b18 100644 --- a/src/config.h +++ b/src/config.h @@ -1,5 +1,4 @@ -#ifndef JUCI_CONFIG_H_ -#define JUCI_CONFIG_H_ +#pragma once #include #include #include @@ -123,4 +122,3 @@ private: bool remove_deprecated_nodes(boost::property_tree::ptree &cfg, const boost::property_tree::ptree &default_cfg, std::string parent_path=""); void read(const boost::property_tree::ptree &cfg); }; -#endif diff --git a/src/ctags.h b/src/ctags.h index e896a19..f39ddfb 100644 --- a/src/ctags.h +++ b/src/ctags.h @@ -1,5 +1,4 @@ -#ifndef JUCI_CTAGS_H_ -#define JUCI_CTAGS_H_ +#pragma once #include #include #include @@ -26,5 +25,3 @@ public: private: static std::vector get_type_parts(const std::string type); }; - -#endif //JUCI_CTAGS_H_ diff --git a/src/debug_lldb.h b/src/debug_lldb.h index 7716518..71934cc 100644 --- a/src/debug_lldb.h +++ b/src/debug_lldb.h @@ -1,6 +1,4 @@ -#ifndef JUCI_DEBUG_CLANG_H_ -#define JUCI_DEBUG_CLANG_H_ - +#pragma once #include #include #include @@ -88,5 +86,3 @@ namespace Debug { size_t buffer_size; }; } - -#endif diff --git a/src/dialogs.h b/src/dialogs.h index f93d3ff..e1deeb5 100644 --- a/src/dialogs.h +++ b/src/dialogs.h @@ -1,5 +1,4 @@ -#ifndef JUCI_DIALOG_H_ -#define JUCI_DIALOG_H_ +#pragma once #include #include #include @@ -25,5 +24,3 @@ private: const std::vector> &buttons, Gtk::FileChooserAction gtk_options); }; - -#endif //JUCI_DIALOG_H_ diff --git a/src/directories.h b/src/directories.h index 5831185..4a06e70 100644 --- a/src/directories.h +++ b/src/directories.h @@ -1,6 +1,4 @@ -#ifndef JUCI_DIRECTORIES_H_ -#define JUCI_DIRECTORIES_H_ - +#pragma once #include #include #include @@ -94,5 +92,3 @@ private: Gtk::MenuItem menu_root_item_new_folder; boost::filesystem::path menu_popup_row_path; }; - -#endif // JUCI_DIRECTORIES_H_ diff --git a/src/dispatcher.h b/src/dispatcher.h index bb38f20..4a3b7e0 100644 --- a/src/dispatcher.h +++ b/src/dispatcher.h @@ -1,5 +1,4 @@ -#ifndef DISPATCHER_H_ -#define DISPATCHER_H_ +#pragma once #include #include #include @@ -25,5 +24,3 @@ public: void disconnect(); }; - -#endif /* DISPATCHER_H_ */ diff --git a/src/entrybox.h b/src/entrybox.h index 3393d59..3a722be 100644 --- a/src/entrybox.h +++ b/src/entrybox.h @@ -1,6 +1,4 @@ -#ifndef JUCI_ENTRYBOX_H_ -#define JUCI_ENTRYBOX_H_ - +#pragma once #include #include #include "gtkmm.h" @@ -54,5 +52,3 @@ public: private: static std::unordered_map > entry_histories; }; - -#endif // JUCI_ENTRYBOX_H_ diff --git a/src/files.h b/src/files.h index 3cee740..ab7d9e8 100644 --- a/src/files.h +++ b/src/files.h @@ -1,5 +1,4 @@ -#ifndef JUCI_FILES_H_ -#define JUCI_FILES_H_ +#pragma once #include /// If you add or remove nodes from the default_config_file, increase the juci @@ -406,5 +405,3 @@ const std::string juci_dark_blue_style = R"RAW( )RAW"; - -#endif // JUCI_FILES_H_ diff --git a/src/filesystem.h b/src/filesystem.h index 2b6d40a..70a8a3f 100644 --- a/src/filesystem.h +++ b/src/filesystem.h @@ -1,5 +1,4 @@ -#ifndef JUCI_FILESYSTEM_H_ -#define JUCI_FILESYSTEM_H_ +#pragma once #include #include #include @@ -35,4 +34,3 @@ public: /// Return executable with latest version in filename on systems that is lacking executable_name symbolic link static boost::filesystem::path get_executable(const boost::filesystem::path &executable_name) noexcept; }; -#endif // JUCI_FILESYSTEM_H_ diff --git a/src/git.h b/src/git.h index a8f7bfb..6b44928 100644 --- a/src/git.h +++ b/src/git.h @@ -1,5 +1,4 @@ -#ifndef JUCI_GIT_H_ -#define JUCI_GIT_H_ +#pragma once #include #include #include @@ -97,4 +96,3 @@ private: public: static std::shared_ptr get_repository(const boost::filesystem::path &path); }; -#endif //JUCI_GIT_H_ diff --git a/src/info.h b/src/info.h index 8bb78c7..38bc841 100644 --- a/src/info.h +++ b/src/info.h @@ -1,6 +1,4 @@ -#ifndef JUCI_INFO_H_ -#define JUCI_INFO_H_ - +#pragma once #include class Info : public Gtk::InfoBar { @@ -17,5 +15,3 @@ private: Gtk::Label label; sigc::connection timeout_connection; }; - -#endif // JUCI_INFO_H_ \ No newline at end of file diff --git a/src/juci.h b/src/juci.h index b56033f..39dd9b2 100644 --- a/src/juci.h +++ b/src/juci.h @@ -1,3 +1,4 @@ +#pragma once /** \mainpage juCi++ is a lightweight C++ IDE written in C++ @@ -24,10 +25,6 @@ [juCi++] --> [tiny-process-library] : use \enduml */ - -#ifndef JUCI_JUCI_H_ -#define JUCI_JUCI_H_ - #include #include @@ -42,6 +39,3 @@ private: std::vector > files; std::vector errors; }; - -#endif // JUCI_JUCI_H_ - diff --git a/src/menu.h b/src/menu.h index 9d259b0..eab6cd6 100644 --- a/src/menu.h +++ b/src/menu.h @@ -1,6 +1,4 @@ -#ifndef JUCI_MENU_H_ -#define JUCI_MENU_H_ - +#pragma once #include #include #include @@ -26,4 +24,3 @@ public: private: Glib::RefPtr builder; }; -#endif // JUCI_MENU_H_ diff --git a/src/meson.h b/src/meson.h index 895ac63..264afb1 100644 --- a/src/meson.h +++ b/src/meson.h @@ -1,6 +1,4 @@ -#ifndef JUCI_MESON_H_ -#define JUCI_MESON_H_ - +#pragma once #include #include @@ -15,5 +13,3 @@ public: boost::filesystem::path get_executable(const boost::filesystem::path &build_path, const boost::filesystem::path &file_path); }; - -#endif //JUCI_MESON_H_ diff --git a/src/notebook.h b/src/notebook.h index 3c08670..70bcfa6 100644 --- a/src/notebook.h +++ b/src/notebook.h @@ -1,6 +1,4 @@ -#ifndef JUCI_NOTEBOOK_H_ -#define JUCI_NOTEBOOK_H_ - +#pragma once #include #include "gtkmm.h" #include "source.h" @@ -89,4 +87,3 @@ private: bool save_modified_dialog(size_t index); }; -#endif // JUCI_NOTEBOOK_H_ diff --git a/src/project.h b/src/project.h index 6b06c6d..600866c 100644 --- a/src/project.h +++ b/src/project.h @@ -1,6 +1,4 @@ -#ifndef JUCI_PROJECT_H_ -#define JUCI_PROJECT_H_ - +#pragma once #include #include #include @@ -142,5 +140,3 @@ namespace Project { std::shared_ptr create(); extern std::shared_ptr current; }; - -#endif // JUCI_PROJECT_H_ diff --git a/src/project_build.h b/src/project_build.h index 6c476e4..ea13c74 100644 --- a/src/project_build.h +++ b/src/project_build.h @@ -1,6 +1,4 @@ -#ifndef JUCI_PROJECT_BUILD_H_ -#define JUCI_PROJECT_BUILD_H_ - +#pragma once #include #include "cmake.h" #include "meson.h" @@ -45,5 +43,3 @@ namespace Project { boost::filesystem::path get_executable(const boost::filesystem::path &path) override; }; } - -#endif // JUCI_PROJECT_BUILD_H_ diff --git a/src/selection_dialog.h b/src/selection_dialog.h index e2343fa..457fd37 100644 --- a/src/selection_dialog.h +++ b/src/selection_dialog.h @@ -1,6 +1,4 @@ -#ifndef JUCI_SELECTIONDIALOG_H_ -#define JUCI_SELECTIONDIALOG_H_ - +#pragma once #include "gtkmm.h" #include @@ -96,5 +94,3 @@ private: int show_offset; bool row_in_entry=false; }; - -#endif // JUCI_SELECTIONDIALOG_H_ \ No newline at end of file diff --git a/src/source.h b/src/source.h index f5ad575..38f450e 100644 --- a/src/source.h +++ b/src/source.h @@ -1,5 +1,4 @@ -#ifndef JUCI_SOURCE_H_ -#define JUCI_SOURCE_H_ +#pragma once #include "source_spellcheck.h" #include "source_diff.h" #include "tooltips.h" @@ -184,4 +183,3 @@ namespace Source { void parse_language_file(Glib::RefPtr &completion_buffer, bool &has_context_class, const boost::property_tree::ptree &pt); }; } -#endif // JUCI_SOURCE_H_ diff --git a/src/source_clang.h b/src/source_clang.h index 3c0ec3e..d347c6a 100644 --- a/src/source_clang.h +++ b/src/source_clang.h @@ -1,6 +1,4 @@ -#ifndef JUCI_SOURCE_CLANG_H_ -#define JUCI_SOURCE_CLANG_H_ - +#pragma once #include #include #include @@ -114,5 +112,3 @@ namespace Source { bool full_reparse_running=false; }; } - -#endif // JUCI_SOURCE_CLANG_H_ diff --git a/src/source_diff.h b/src/source_diff.h index ab6034f..61cbfc0 100644 --- a/src/source_diff.h +++ b/src/source_diff.h @@ -1,5 +1,4 @@ -#ifndef JUCI_SOURCE_DIFF_H_ -#define JUCI_SOURCE_DIFF_H_ +#pragma once #include #include #include "dispatcher.h" @@ -74,5 +73,3 @@ namespace Source { void update_lines(); }; } - -#endif //JUCI_SOURCE_DIFF_H_ diff --git a/src/source_spellcheck.h b/src/source_spellcheck.h index b456485..c1381db 100644 --- a/src/source_spellcheck.h +++ b/src/source_spellcheck.h @@ -1,5 +1,4 @@ -#ifndef JUCI_SOURCE_SPELLCHECK_H_ -#define JUCI_SOURCE_SPELLCHECK_H_ +#pragma once #include #include @@ -46,5 +45,3 @@ namespace Source { void spellcheck(const Gtk::TextIter& start, const Gtk::TextIter& end); }; } - -#endif //JUCI_SOURCE_SPELLCHECK_H_ diff --git a/src/terminal.h b/src/terminal.h index 2b1628e..af7ebcb 100644 --- a/src/terminal.h +++ b/src/terminal.h @@ -1,6 +1,4 @@ -#ifndef JUCI_TERMINAL_H_ -#define JUCI_TERMINAL_H_ - +#pragma once #include #include #include "gtkmm.h" @@ -50,5 +48,3 @@ private: std::mutex processes_mutex; Glib::ustring stdin_buffer; }; - -#endif // JUCI_TERMINAL_H_ diff --git a/src/tooltips.h b/src/tooltips.h index 918be7f..ff24ae2 100644 --- a/src/tooltips.h +++ b/src/tooltips.h @@ -1,5 +1,4 @@ -#ifndef JUCI_TOOLTIPS_H_ -#define JUCI_TOOLTIPS_H_ +#pragma once #include "gtkmm.h" #include #include @@ -47,5 +46,3 @@ public: private: std::list tooltip_list; }; - -#endif // JUCI_TOOLTIPS_H_ diff --git a/src/usages_clang.h b/src/usages_clang.h index 8ba1705..46ab254 100644 --- a/src/usages_clang.h +++ b/src/usages_clang.h @@ -1,5 +1,4 @@ -#ifndef JUCI_USAGES_CLANG_H_ -#define JUCI_USAGES_CLANG_H_ +#pragma once #include "clangmm.h" #include #include @@ -148,4 +147,3 @@ namespace Usages { static Cache read_cache(const boost::filesystem::path &project_path, const boost::filesystem::path &build_path, const boost::filesystem::path &path); }; } // namespace Usages -#endif // JUCI_USAGES_CLANG_H_ diff --git a/src/window.h b/src/window.h index 1ec5d33..f71ce83 100644 --- a/src/window.h +++ b/src/window.h @@ -1,6 +1,4 @@ -#ifndef JUCI_WINDOW_H_ -#define JUCI_WINDOW_H_ - +#pragma once #include #include @@ -36,5 +34,3 @@ private: bool regex_search=false; bool search_entry_shown=false; }; - -#endif // JUCI_WINDOW_H