Browse Source

Replaced include guards with #pragma once

merge-requests/365/head
eidheim 8 years ago
parent
commit
4d6a222b27
  1. 5
      src/autocomplete.h
  2. 4
      src/cmake.h
  3. 6
      src/compile_commands.h
  4. 4
      src/config.h
  5. 5
      src/ctags.h
  6. 6
      src/debug_lldb.h
  7. 5
      src/dialogs.h
  8. 6
      src/directories.h
  9. 5
      src/dispatcher.h
  10. 6
      src/entrybox.h
  11. 5
      src/files.h
  12. 4
      src/filesystem.h
  13. 4
      src/git.h
  14. 6
      src/info.h
  15. 8
      src/juci.h
  16. 5
      src/menu.h
  17. 6
      src/meson.h
  18. 5
      src/notebook.h
  19. 6
      src/project.h
  20. 6
      src/project_build.h
  21. 6
      src/selection_dialog.h
  22. 4
      src/source.h
  23. 6
      src/source_clang.h
  24. 5
      src/source_diff.h
  25. 5
      src/source_spellcheck.h
  26. 6
      src/terminal.h
  27. 5
      src/tooltips.h
  28. 4
      src/usages_clang.h
  29. 6
      src/window.h

5
src/autocomplete.h

@ -1,5 +1,4 @@
#ifndef JUCI_AUTOCOMPLETE_H_
#define JUCI_AUTOCOMPLETE_H_
#pragma once
#include "dispatcher.h"
#include "tooltips.h"
#include <atomic>
@ -57,5 +56,3 @@ public:
private:
void setup_dialog();
};
#endif // JUCI_AUTOCOMPLETE_H_

4
src/cmake.h

@ -1,5 +1,4 @@
#ifndef JUCI_CMAKE_H_
#define JUCI_CMAKE_H_
#pragma once
#include <boost/filesystem.hpp>
#include <vector>
#include <unordered_map>
@ -29,4 +28,3 @@ private:
std::vector<std::pair<boost::filesystem::path, std::vector<std::string> > > get_functions_parameters(const std::string &name);
bool parsed=false;
};
#endif //JUCI_CMAKE_H_

6
src/compile_commands.h

@ -1,6 +1,4 @@
#ifndef JUCI_COMPILE_COMMANDS_H_
#define JUCI_COMPILE_COMMANDS_H_
#pragma once
#include <boost/filesystem.hpp>
#include <vector>
#include <string>
@ -22,5 +20,3 @@ public:
/// Return arguments for the given file using libclangmm
static std::vector<std::string> get_arguments(const boost::filesystem::path &build_path, const boost::filesystem::path &file_path);
};
#endif // JUCI_COMPILE_COMMANDS_H_

4
src/config.h

@ -1,5 +1,4 @@
#ifndef JUCI_CONFIG_H_
#define JUCI_CONFIG_H_
#pragma once
#include <boost/property_tree/json_parser.hpp>
#include <boost/filesystem.hpp>
#include <unordered_map>
@ -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

5
src/ctags.h

@ -1,5 +1,4 @@
#ifndef JUCI_CTAGS_H_
#define JUCI_CTAGS_H_
#pragma once
#include <string>
#include <boost/filesystem.hpp>
#include <sstream>
@ -26,5 +25,3 @@ public:
private:
static std::vector<std::string> get_type_parts(const std::string type);
};
#endif //JUCI_CTAGS_H_

6
src/debug_lldb.h

@ -1,6 +1,4 @@
#ifndef JUCI_DEBUG_CLANG_H_
#define JUCI_DEBUG_CLANG_H_
#pragma once
#include <boost/filesystem.hpp>
#include <list>
#include <lldb/API/LLDB.h>
@ -88,5 +86,3 @@ namespace Debug {
size_t buffer_size;
};
}
#endif

5
src/dialogs.h

@ -1,5 +1,4 @@
#ifndef JUCI_DIALOG_H_
#define JUCI_DIALOG_H_
#pragma once
#include <string>
#include <boost/filesystem.hpp>
#include <vector>
@ -25,5 +24,3 @@ private:
const std::vector<std::pair<std::string, Gtk::ResponseType>> &buttons,
Gtk::FileChooserAction gtk_options);
};
#endif //JUCI_DIALOG_H_

6
src/directories.h

@ -1,6 +1,4 @@
#ifndef JUCI_DIRECTORIES_H_
#define JUCI_DIRECTORIES_H_
#pragma once
#include <gtkmm.h>
#include <vector>
#include <string>
@ -94,5 +92,3 @@ private:
Gtk::MenuItem menu_root_item_new_folder;
boost::filesystem::path menu_popup_row_path;
};
#endif // JUCI_DIRECTORIES_H_

5
src/dispatcher.h

@ -1,5 +1,4 @@
#ifndef DISPATCHER_H_
#define DISPATCHER_H_
#pragma once
#include <gtkmm.h>
#include <mutex>
#include <list>
@ -25,5 +24,3 @@ public:
void disconnect();
};
#endif /* DISPATCHER_H_ */

6
src/entrybox.h

@ -1,6 +1,4 @@
#ifndef JUCI_ENTRYBOX_H_
#define JUCI_ENTRYBOX_H_
#pragma once
#include <list>
#include <functional>
#include "gtkmm.h"
@ -54,5 +52,3 @@ public:
private:
static std::unordered_map<std::string, std::vector<std::string> > entry_histories;
};
#endif // JUCI_ENTRYBOX_H_

5
src/files.h

@ -1,5 +1,4 @@
#ifndef JUCI_FILES_H_
#define JUCI_FILES_H_
#pragma once
#include <string>
/// 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(<?xml version="1.0" encoding="UTF
</style-scheme>
)RAW";
#endif // JUCI_FILES_H_

4
src/filesystem.h

@ -1,5 +1,4 @@
#ifndef JUCI_FILESYSTEM_H_
#define JUCI_FILESYSTEM_H_
#pragma once
#include <vector>
#include <string>
#include <boost/filesystem.hpp>
@ -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_

4
src/git.h

@ -1,5 +1,4 @@
#ifndef JUCI_GIT_H_
#define JUCI_GIT_H_
#pragma once
#include <git2.h>
#include <mutex>
#include <memory>
@ -97,4 +96,3 @@ private:
public:
static std::shared_ptr<Repository> get_repository(const boost::filesystem::path &path);
};
#endif //JUCI_GIT_H_

6
src/info.h

@ -1,6 +1,4 @@
#ifndef JUCI_INFO_H_
#define JUCI_INFO_H_
#pragma once
#include <gtkmm.h>
class Info : public Gtk::InfoBar {
@ -17,5 +15,3 @@ private:
Gtk::Label label;
sigc::connection timeout_connection;
};
#endif // JUCI_INFO_H_

8
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 <gtkmm.h>
#include <boost/filesystem.hpp>
@ -42,6 +39,3 @@ private:
std::vector<std::pair<boost::filesystem::path, size_t> > files;
std::vector<std::string> errors;
};
#endif // JUCI_JUCI_H_

5
src/menu.h

@ -1,6 +1,4 @@
#ifndef JUCI_MENU_H_
#define JUCI_MENU_H_
#pragma once
#include <string>
#include <unordered_map>
#include <gtkmm.h>
@ -26,4 +24,3 @@ public:
private:
Glib::RefPtr<Gtk::Builder> builder;
};
#endif // JUCI_MENU_H_

6
src/meson.h

@ -1,6 +1,4 @@
#ifndef JUCI_MESON_H_
#define JUCI_MESON_H_
#pragma once
#include <boost/filesystem.hpp>
#include <vector>
@ -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_

5
src/notebook.h

@ -1,6 +1,4 @@
#ifndef JUCI_NOTEBOOK_H_
#define JUCI_NOTEBOOK_H_
#pragma once
#include <iostream>
#include "gtkmm.h"
#include "source.h"
@ -89,4 +87,3 @@ private:
bool save_modified_dialog(size_t index);
};
#endif // JUCI_NOTEBOOK_H_

6
src/project.h

@ -1,6 +1,4 @@
#ifndef JUCI_PROJECT_H_
#define JUCI_PROJECT_H_
#pragma once
#include <gtkmm.h>
#include <boost/filesystem.hpp>
#include <atomic>
@ -142,5 +140,3 @@ namespace Project {
std::shared_ptr<Base> create();
extern std::shared_ptr<Base> current;
};
#endif // JUCI_PROJECT_H_

6
src/project_build.h

@ -1,6 +1,4 @@
#ifndef JUCI_PROJECT_BUILD_H_
#define JUCI_PROJECT_BUILD_H_
#pragma once
#include <boost/filesystem.hpp>
#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_

6
src/selection_dialog.h

@ -1,6 +1,4 @@
#ifndef JUCI_SELECTIONDIALOG_H_
#define JUCI_SELECTIONDIALOG_H_
#pragma once
#include "gtkmm.h"
#include <unordered_map>
@ -96,5 +94,3 @@ private:
int show_offset;
bool row_in_entry=false;
};
#endif // JUCI_SELECTIONDIALOG_H_

4
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<CompletionBuffer> &completion_buffer, bool &has_context_class, const boost::property_tree::ptree &pt);
};
}
#endif // JUCI_SOURCE_H_

6
src/source_clang.h

@ -1,6 +1,4 @@
#ifndef JUCI_SOURCE_CLANG_H_
#define JUCI_SOURCE_CLANG_H_
#pragma once
#include <thread>
#include <atomic>
#include <mutex>
@ -114,5 +112,3 @@ namespace Source {
bool full_reparse_running=false;
};
}
#endif // JUCI_SOURCE_CLANG_H_

5
src/source_diff.h

@ -1,5 +1,4 @@
#ifndef JUCI_SOURCE_DIFF_H_
#define JUCI_SOURCE_DIFF_H_
#pragma once
#include <gtksourceviewmm.h>
#include <boost/filesystem.hpp>
#include "dispatcher.h"
@ -74,5 +73,3 @@ namespace Source {
void update_lines();
};
}
#endif //JUCI_SOURCE_DIFF_H_

5
src/source_spellcheck.h

@ -1,5 +1,4 @@
#ifndef JUCI_SOURCE_SPELLCHECK_H_
#define JUCI_SOURCE_SPELLCHECK_H_
#pragma once
#include <gtksourceviewmm.h>
#include <aspell.h>
@ -46,5 +45,3 @@ namespace Source {
void spellcheck(const Gtk::TextIter& start, const Gtk::TextIter& end);
};
}
#endif //JUCI_SOURCE_SPELLCHECK_H_

6
src/terminal.h

@ -1,6 +1,4 @@
#ifndef JUCI_TERMINAL_H_
#define JUCI_TERMINAL_H_
#pragma once
#include <mutex>
#include <functional>
#include "gtkmm.h"
@ -50,5 +48,3 @@ private:
std::mutex processes_mutex;
Glib::ustring stdin_buffer;
};
#endif // JUCI_TERMINAL_H_

5
src/tooltips.h

@ -1,5 +1,4 @@
#ifndef JUCI_TOOLTIPS_H_
#define JUCI_TOOLTIPS_H_
#pragma once
#include "gtkmm.h"
#include <string>
#include <list>
@ -47,5 +46,3 @@ public:
private:
std::list<Tooltip> tooltip_list;
};
#endif // JUCI_TOOLTIPS_H_

4
src/usages_clang.h

@ -1,5 +1,4 @@
#ifndef JUCI_USAGES_CLANG_H_
#define JUCI_USAGES_CLANG_H_
#pragma once
#include "clangmm.h"
#include <atomic>
#include <boost/archive/text_iarchive.hpp>
@ -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_

6
src/window.h

@ -1,6 +1,4 @@
#ifndef JUCI_WINDOW_H_
#define JUCI_WINDOW_H_
#pragma once
#include <gtkmm.h>
#include <atomic>
@ -36,5 +34,3 @@ private:
bool regex_search=false;
bool search_entry_shown=false;
};
#endif // JUCI_WINDOW_H

Loading…
Cancel
Save