mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
clang-tidy: Replace typedef with using
Automate the conversion with perl -i -0pe 's/typedef ([^;]*) ([^ ]+);/using $2 = $1;/g' then manually fix a few places.
This commit is contained in:
@@ -186,8 +186,8 @@ private:
|
||||
|
||||
private:
|
||||
friend class cmVS10GeneratorOptions;
|
||||
typedef cmVS10GeneratorOptions Options;
|
||||
typedef std::map<std::string, std::unique_ptr<Options>> OptionsMap;
|
||||
using Options = cmVS10GeneratorOptions;
|
||||
using OptionsMap = std::map<std::string, std::unique_ptr<Options>>;
|
||||
OptionsMap ClOptions;
|
||||
OptionsMap RcOptions;
|
||||
OptionsMap CudaOptions;
|
||||
@@ -224,16 +224,16 @@ private:
|
||||
std::string DefaultArtifactDir;
|
||||
bool AddedDefaultCertificate = false;
|
||||
// managed C++/C# relevant members
|
||||
typedef std::pair<std::string, std::string> DotNetHintReference;
|
||||
typedef std::vector<DotNetHintReference> DotNetHintReferenceList;
|
||||
typedef std::map<std::string, DotNetHintReferenceList>
|
||||
DotNetHintReferenceMap;
|
||||
using DotNetHintReference = std::pair<std::string, std::string>;
|
||||
using DotNetHintReferenceList = std::vector<DotNetHintReference>;
|
||||
using DotNetHintReferenceMap =
|
||||
std::map<std::string, DotNetHintReferenceList>;
|
||||
DotNetHintReferenceMap DotNetHintReferences;
|
||||
typedef std::set<std::string> UsingDirectories;
|
||||
typedef std::map<std::string, UsingDirectories> UsingDirectoriesMap;
|
||||
using UsingDirectories = std::set<std::string>;
|
||||
using UsingDirectoriesMap = std::map<std::string, UsingDirectories>;
|
||||
UsingDirectoriesMap AdditionalUsingDirectories;
|
||||
|
||||
typedef std::map<std::string, ToolSources> ToolSourceMap;
|
||||
using ToolSourceMap = std::map<std::string, ToolSources>;
|
||||
ToolSourceMap Tools;
|
||||
std::string GetCMakeFilePath(const char* name) const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user