clang-tidy: replace typedef with using

Found with modernize-use-using

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-02-14 17:31:13 -08:00
parent 706eb6b1e7
commit 3f91ab276b

View File

@@ -54,8 +54,7 @@ static int forcedPageSize = DEFAULT_PAGESIZE;
static int forcedPageSize = -1;
#endif
typedef std::shared_ptr<std::vector<unsigned char>> FileContents;
using FileContents = std::shared_ptr<std::vector<unsigned char>>;
#define ElfFileParams class Elf_Ehdr, class Elf_Phdr, class Elf_Shdr, class Elf_Addr, class Elf_Off, class Elf_Dyn, class Elf_Sym, class Elf_Verneed, class Elf_Versym
#define ElfFileParamNames Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Verneed, Elf_Versym
@@ -104,8 +103,8 @@ private:
bool isExecutable = false;
typedef std::string SectionName;
typedef std::map<SectionName, std::string> ReplacedSections;
using SectionName = std::string;
using ReplacedSections = std::map<SectionName, std::string>;
ReplacedSections replacedSections;