diff options
Diffstat (limited to 'Source/cmLocalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmLocalXCodeGenerator.cxx | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/Source/cmLocalXCodeGenerator.cxx b/Source/cmLocalXCodeGenerator.cxx index 18eccdd..db87946 100644 --- a/Source/cmLocalXCodeGenerator.cxx +++ b/Source/cmLocalXCodeGenerator.cxx @@ -28,8 +28,8 @@ cmLocalXCodeGenerator::~cmLocalXCodeGenerator() { } -std::string -cmLocalXCodeGenerator::GetTargetDirectory(cmGeneratorTarget const*) const +std::string cmLocalXCodeGenerator::GetTargetDirectory( + cmGeneratorTarget const*) const { // No per-target directory for this generator (yet). return ""; @@ -48,11 +48,10 @@ void cmLocalXCodeGenerator::Generate() cmLocalGenerator::Generate(); std::vector<cmGeneratorTarget*> targets = this->GetGeneratorTargets(); - for(std::vector<cmGeneratorTarget*>::iterator iter = targets.begin(); - iter != targets.end(); ++iter) - { + for (std::vector<cmGeneratorTarget*>::iterator iter = targets.begin(); + iter != targets.end(); ++iter) { (*iter)->HasMacOSXRpathInstallNameDir(""); - } + } } void cmLocalXCodeGenerator::GenerateInstallRules() @@ -60,25 +59,24 @@ void cmLocalXCodeGenerator::GenerateInstallRules() cmLocalGenerator::GenerateInstallRules(); std::vector<cmGeneratorTarget*> targets = this->GetGeneratorTargets(); - for(std::vector<cmGeneratorTarget*>::iterator iter = targets.begin(); - iter != targets.end(); ++iter) - { + for (std::vector<cmGeneratorTarget*>::iterator iter = targets.begin(); + iter != targets.end(); ++iter) { (*iter)->HasMacOSXRpathInstallNameDir(""); - } + } } void cmLocalXCodeGenerator::ComputeObjectFilenames( - std::map<cmSourceFile const*, std::string>& mapping, - cmGeneratorTarget const*) + std::map<cmSourceFile const*, std::string>& mapping, + cmGeneratorTarget const*) { // Count the number of object files with each name. Warn about duplicate // names since Xcode names them uniquely automatically with a numeric suffix // to avoid exact duplicate file names. Note that Mac file names are not // typically case sensitive, hence the LowerCase. std::map<std::string, int> counts; - for(std::map<cmSourceFile const*, std::string>::iterator - si = mapping.begin(); si != mapping.end(); ++si) - { + for (std::map<cmSourceFile const*, std::string>::iterator si = + mapping.begin(); + si != mapping.end(); ++si) { cmSourceFile const* sf = si->first; std::string objectName = cmSystemTools::GetFilenameWithoutLastExtension(sf->GetFullPath()); @@ -86,10 +84,9 @@ void cmLocalXCodeGenerator::ComputeObjectFilenames( std::string objectNameLower = cmSystemTools::LowerCase(objectName); counts[objectNameLower] += 1; - if (2 == counts[objectNameLower]) - { + if (2 == counts[objectNameLower]) { // TODO: emit warning about duplicate name? - } - si->second = objectName; } + si->second = objectName; + } } |