mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
strings: Remove cmStdString references
Casts from std::string -> cmStdString were high on the list of things taking up time. Avoid such implicit casts across function calls by just using std::string everywhere. The comment that the symbol name is too long is no longer relevant since modern debuggers alias the templates anyways and the size is a non-issue since the underlying methods are generated since it's inherited.
This commit is contained in:
@@ -211,11 +211,11 @@ public:
|
||||
// File pairs for implicit dependency scanning. The key of the map
|
||||
// is the depender and the value is the explicit dependee.
|
||||
struct ImplicitDependFileMap:
|
||||
public std::map<cmStdString, cmDepends::DependencyVector> {};
|
||||
public std::map<std::string, cmDepends::DependencyVector> {};
|
||||
struct ImplicitDependLanguageMap:
|
||||
public std::map<cmStdString, ImplicitDependFileMap> {};
|
||||
public std::map<std::string, ImplicitDependFileMap> {};
|
||||
struct ImplicitDependTargetMap:
|
||||
public std::map<cmStdString, ImplicitDependLanguageMap> {};
|
||||
public std::map<std::string, ImplicitDependLanguageMap> {};
|
||||
ImplicitDependLanguageMap const& GetImplicitDepends(cmTarget const& tgt);
|
||||
|
||||
void AddImplicitDepends(cmTarget const& tgt, const std::string& lang,
|
||||
@@ -231,7 +231,7 @@ public:
|
||||
std::string objNoTargetDir,
|
||||
bool hasSourceExtension);
|
||||
|
||||
std::vector<cmStdString> const& GetLocalHelp() { return this->LocalHelp; }
|
||||
std::vector<std::string> const& GetLocalHelp() { return this->LocalHelp; }
|
||||
|
||||
/** Get whether to create rules to generate preprocessed and
|
||||
assembly sources. This could be converted to a variable lookup
|
||||
@@ -256,7 +256,7 @@ protected:
|
||||
|
||||
// write the target rules for the local Makefile into the stream
|
||||
void WriteLocalMakefileTargets(std::ostream& ruleFileStream,
|
||||
std::set<cmStdString> &emitted);
|
||||
std::set<std::string> &emitted);
|
||||
|
||||
// this method Writes the Directory information files
|
||||
void WriteDirectoryInformationFile();
|
||||
@@ -370,16 +370,16 @@ private:
|
||||
LocalObjectInfo():HasSourceExtension(false), HasPreprocessRule(false),
|
||||
HasAssembleRule(false) {}
|
||||
};
|
||||
std::map<cmStdString, LocalObjectInfo> LocalObjectFiles;
|
||||
std::map<std::string, LocalObjectInfo> LocalObjectFiles;
|
||||
void WriteObjectConvenienceRule(std::ostream& ruleFileStream,
|
||||
const char* comment, const char* output,
|
||||
LocalObjectInfo const& info);
|
||||
|
||||
std::vector<cmStdString> LocalHelp;
|
||||
std::vector<std::string> LocalHelp;
|
||||
|
||||
/* does the work for each target */
|
||||
std::map<cmStdString, cmStdString> MakeVariableMap;
|
||||
std::map<cmStdString, cmStdString> ShortMakeVariableMap;
|
||||
std::map<std::string, std::string> MakeVariableMap;
|
||||
std::map<std::string, std::string> ShortMakeVariableMap;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user