diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-09-21 11:29:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-21 11:29:48 -0700 |
commit | d5d2ca8058a0f1c00ab7ca9fe2c058ba47546c0a (patch) | |
tree | 8a22ca73ff838f3f0090b29a548ae81087fc90ed /src/common/symbols.h | |
parent | 2a910a6d883f2227edc74aacf5b93a58a3dea07c (diff) | |
parent | 0e3f0120a8ec2996e73bb6b7b6c9d7531f7a7eb1 (diff) |
Merge pull request #2086 from linkmauve/clang-format
Add clang-format as part of our {commit,travis}-time checks
Diffstat (limited to 'src/common/symbols.h')
-rw-r--r-- | src/common/symbols.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/common/symbols.h b/src/common/symbols.h index 5ed16009c..f5a48e05a 100644 --- a/src/common/symbols.h +++ b/src/common/symbols.h @@ -7,28 +7,24 @@ #include <map> #include <string> #include <utility> - #include "common/common_types.h" -struct TSymbol -{ - u32 address = 0; +struct TSymbol { + u32 address = 0; std::string name; - u32 size = 0; - u32 type = 0; + u32 size = 0; + u32 type = 0; }; typedef std::map<u32, TSymbol> TSymbolsMap; typedef std::pair<u32, TSymbol> TSymbolsPair; -namespace Symbols -{ - bool HasSymbol(u32 address); +namespace Symbols { +bool HasSymbol(u32 address); - void Add(u32 address, const std::string& name, u32 size, u32 type); - TSymbol GetSymbol(u32 address); - const std::string GetName(u32 address); - void Remove(u32 address); - void Clear(); +void Add(u32 address, const std::string& name, u32 size, u32 type); +TSymbol GetSymbol(u32 address); +const std::string GetName(u32 address); +void Remove(u32 address); +void Clear(); } - |