aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb/dbghelp.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-14 19:36:53 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-14 20:07:47 +0300
commit0bff1d2776e0da589dd98eca69e7f04fb07dfd02 (patch)
treef7f8b905a34133d80e93d20770bdb092c04e247d /include/pdb/dbghelp.hpp
parentclang-format: don't BinPackArguments (diff)
downloadwinapi-debug-0bff1d2776e0da589dd98eca69e7f04fb07dfd02.tar.gz
winapi-debug-0bff1d2776e0da589dd98eca69e7f04fb07dfd02.zip
clang-format all the code
Diffstat (limited to 'include/pdb/dbghelp.hpp')
-rw-r--r--include/pdb/dbghelp.hpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/include/pdb/dbghelp.hpp b/include/pdb/dbghelp.hpp
index 2555de1..4f11e22 100644
--- a/include/pdb/dbghelp.hpp
+++ b/include/pdb/dbghelp.hpp
@@ -14,33 +14,33 @@
#include <functional>
#include <string>
-namespace pdb
-{
- class DbgHelp
- {
- public:
- DbgHelp();
- ~DbgHelp();
+namespace pdb {
- void close();
+class DbgHelp {
+public:
+ DbgHelp();
+ ~DbgHelp();
- ModuleInfo load_pdb(const std::string& path) const;
+ void close();
- typedef std::function<void (const SymbolInfo&)> OnSymbol;
- void enum_symbols(const ModuleInfo&, const OnSymbol&) const;
+ ModuleInfo load_pdb(const std::string& path) const;
- SymbolInfo resolve_symbol(Address) const;
- SymbolInfo resolve_symbol(const std::string&) const;
+ typedef std::function<void(const SymbolInfo&)> OnSymbol;
+ void enum_symbols(const ModuleInfo&, const OnSymbol&) const;
- LineInfo resolve_line(Address) const;
+ SymbolInfo resolve_symbol(Address) const;
+ SymbolInfo resolve_symbol(const std::string&) const;
- private:
- ModuleInfo get_module_info(Address offline_base) const;
+ LineInfo resolve_line(Address) const;
- const HANDLE id = GetCurrentProcess();
- bool closed = false;
+private:
+ ModuleInfo get_module_info(Address offline_base) const;
- DbgHelp(const DbgHelp&) = delete;
- DbgHelp& operator=(const DbgHelp&) = delete;
- };
-}
+ const HANDLE id = GetCurrentProcess();
+ bool closed = false;
+
+ DbgHelp(const DbgHelp&) = delete;
+ DbgHelp& operator=(const DbgHelp&) = delete;
+};
+
+} // namespace pdb