diff options
Diffstat (limited to '')
| -rw-r--r-- | include/winapi/debug/address.hpp | 2 | ||||
| -rw-r--r-- | include/winapi/debug/dbghelp.hpp | 4 | ||||
| -rw-r--r-- | include/winapi/debug/module.hpp | 2 | ||||
| -rw-r--r-- | include/winapi/debug/post_mortem.hpp | 2 | ||||
| -rw-r--r-- | include/winapi/debug/symbol.hpp | 6 | ||||
| -rw-r--r-- | test/test_lib.hpp | 2 | ||||
| -rw-r--r-- | test/unit_tests/fixtures.hpp | 4 | ||||
| -rw-r--r-- | test/unit_tests/paths.hpp | 2 |
8 files changed, 12 insertions, 12 deletions
diff --git a/include/winapi/debug/address.hpp b/include/winapi/debug/address.hpp index 9fe6e2b..1feb80a 100644 --- a/include/winapi/debug/address.hpp +++ b/include/winapi/debug/address.hpp @@ -14,7 +14,7 @@ namespace winapi { -typedef DWORD64 Address; +using Address = DWORD64; namespace address { diff --git a/include/winapi/debug/dbghelp.hpp b/include/winapi/debug/dbghelp.hpp index 29e56e7..8fc2cda 100644 --- a/include/winapi/debug/dbghelp.hpp +++ b/include/winapi/debug/dbghelp.hpp @@ -29,12 +29,12 @@ public: ModuleInfo load_pdb(std::string_view path) const; - typedef std::function<void(const ModuleInfo&)> OnModule; + using OnModule = std::function<void(const ModuleInfo&)>; void enum_modules(const OnModule&) const; ModuleInfo resolve_module(Address) const; - typedef std::function<void(const SymbolInfo&)> OnSymbol; + using OnSymbol = std::function<void(const SymbolInfo&)>; static constexpr auto all_symbols = "*!*"; void enum_symbols(const ModuleInfo&, std::string_view mask, const OnSymbol&) const; void enum_symbols(const ModuleInfo&, const OnSymbol&) const; diff --git a/include/winapi/debug/module.hpp b/include/winapi/debug/module.hpp index 767aab9..020219f 100644 --- a/include/winapi/debug/module.hpp +++ b/include/winapi/debug/module.hpp @@ -16,7 +16,7 @@ namespace winapi { class ModuleInfo { public: - typedef IMAGEHLP_MODULEW64 Impl; + using Impl = IMAGEHLP_MODULEW64; ModuleInfo(); explicit ModuleInfo(const Impl& impl); diff --git a/include/winapi/debug/post_mortem.hpp b/include/winapi/debug/post_mortem.hpp index 5ddc85e..b031bbf 100644 --- a/include/winapi/debug/post_mortem.hpp +++ b/include/winapi/debug/post_mortem.hpp @@ -25,7 +25,7 @@ public: Address add_pdb(Address online_base, std::string_view path); - typedef std::function<void(const Symbol&)> OnSymbol; + using OnSymbol = std::function<void(const Symbol&)>; void enum_symbols(const OnSymbol&) const; void enum_symbols(Address offline_base, const OnSymbol&) const; void enum_symbols(const Module&, const OnSymbol&) const; diff --git a/include/winapi/debug/symbol.hpp b/include/winapi/debug/symbol.hpp index a46e9bb..828a040 100644 --- a/include/winapi/debug/symbol.hpp +++ b/include/winapi/debug/symbol.hpp @@ -21,7 +21,7 @@ namespace winapi { namespace symbol { // MinGW-w64 (as of version 7.0) doesn't have SymTagEnum -typedef ULONG Tag; +using Tag = ULONG; constexpr Tag SYM_TAG_FUNCTION = 5; @@ -34,7 +34,7 @@ static_assert(static_cast<Tag>(SymTagFunction) == SYM_TAG_FUNCTION, class SymbolInfo { public: - typedef SYMBOL_INFOW Impl; + using Impl = SYMBOL_INFOW; SymbolInfo(); explicit SymbolInfo(const Impl& impl); @@ -86,7 +86,7 @@ private: class LineInfo { public: - typedef IMAGEHLP_LINEW64 Impl; + using Impl = IMAGEHLP_LINEW64; explicit LineInfo(const Impl& impl); diff --git a/test/test_lib.hpp b/test/test_lib.hpp index 2506d93..ec4e9db 100644 --- a/test/test_lib.hpp +++ b/test/test_lib.hpp @@ -11,7 +11,7 @@ namespace test_ns { -typedef void (*F)(); +using F = void (*)(); TEST_LIB_API extern volatile int var; diff --git a/test/unit_tests/fixtures.hpp b/test/unit_tests/fixtures.hpp index f9f9872..791ad01 100644 --- a/test/unit_tests/fixtures.hpp +++ b/test/unit_tests/fixtures.hpp @@ -46,8 +46,8 @@ public: return name; } - typedef Set<std::string> SymbolList; - typedef Set<winapi::Address> AddressList; + using SymbolList = Set<std::string>; + using AddressList = Set<winapi::Address>; static AddressList expected_function_addresses() { return cast({reinterpret_cast<void*>(&test_ns::foo), diff --git a/test/unit_tests/paths.hpp b/test/unit_tests/paths.hpp index 7750eb5..f9494a6 100644 --- a/test/unit_tests/paths.hpp +++ b/test/unit_tests/paths.hpp @@ -12,7 +12,7 @@ using path = boost::filesystem::path; class Paths { public: - typedef boost::filesystem::path path; + using path = boost::filesystem::path; static Paths& get() { static Paths instance; |
