Skip to content

Commit 3f91ab2

Browse files
committed
clang-tidy: replace typedef with using
Found with modernize-use-using Signed-off-by: Rosen Penev <[email protected]>
1 parent 706eb6b commit 3f91ab2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/patchelf.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ static int forcedPageSize = DEFAULT_PAGESIZE;
5454
static int forcedPageSize = -1;
5555
#endif
5656

57-
typedef std::shared_ptr<std::vector<unsigned char>> FileContents;
58-
57+
using FileContents = std::shared_ptr<std::vector<unsigned char>>;
5958

6059
#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
6160
#define ElfFileParamNames Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym, Elf_Verneed, Elf_Versym
@@ -104,8 +103,8 @@ class ElfFile
104103

105104
bool isExecutable = false;
106105

107-
typedef std::string SectionName;
108-
typedef std::map<SectionName, std::string> ReplacedSections;
106+
using SectionName = std::string;
107+
using ReplacedSections = std::map<SectionName, std::string>;
109108

110109
ReplacedSections replacedSections;
111110

0 commit comments

Comments
 (0)