mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
clang-tidy: Replace typedef with using
This commit is contained in:
committed by
Brad King
parent
711e1c3ada
commit
62e5f72289
@@ -12,18 +12,18 @@
|
||||
class cmCustomCommandLine : public std::vector<std::string>
|
||||
{
|
||||
public:
|
||||
typedef std::vector<std::string> Superclass;
|
||||
typedef Superclass::iterator iterator;
|
||||
typedef Superclass::const_iterator const_iterator;
|
||||
using Superclass = std::vector<std::string>;
|
||||
using iterator = Superclass::iterator;
|
||||
using const_iterator = Superclass::const_iterator;
|
||||
};
|
||||
|
||||
/** Data structure to represent a list of command lines. */
|
||||
class cmCustomCommandLines : public std::vector<cmCustomCommandLine>
|
||||
{
|
||||
public:
|
||||
typedef std::vector<cmCustomCommandLine> Superclass;
|
||||
typedef Superclass::iterator iterator;
|
||||
typedef Superclass::const_iterator const_iterator;
|
||||
using Superclass = std::vector<cmCustomCommandLine>;
|
||||
using iterator = Superclass::iterator;
|
||||
using const_iterator = Superclass::const_iterator;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user