mirror of
https://github.com/NixOS/patchelf.git
synced 2025-10-21 14:50:50 +08:00
clang-tidy: replace typedef with using
Found with modernize-use-using Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user