From 3c4bfa10037d91f89fc25c51da5239136148bfa6 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 12 May 2006 13:39:34 -0400 Subject: STYLE: fix line length --- Source/cmObject.h | 4 +-- Source/cmOptionCommand.cxx | 7 ++-- Source/cmOrderLinkDirectories.cxx | 62 ++++++++++++++++++++------------- Source/cmOrderLinkDirectories.h | 3 +- Source/cmOutputRequiredFilesCommand.cxx | 3 +- 5 files changed, 48 insertions(+), 31 deletions(-) diff --git a/Source/cmObject.h b/Source/cmObject.h index 99ab31d..2083518 100644 --- a/Source/cmObject.h +++ b/Source/cmObject.h @@ -22,8 +22,8 @@ /** \class cmObject * \brief Superclass for all commands and other classes in CMake. * - * cmObject is the base class for all classes in CMake. It defines some methods - * such as GetNameOfClass, IsA, SafeDownCast. + * cmObject is the base class for all classes in CMake. It defines some + * methods such as GetNameOfClass, IsA, SafeDownCast. */ class cmObject { diff --git a/Source/cmOptionCommand.cxx b/Source/cmOptionCommand.cxx index 8682c91..46bf045 100644 --- a/Source/cmOptionCommand.cxx +++ b/Source/cmOptionCommand.cxx @@ -24,9 +24,10 @@ bool cmOptionCommand::InitialPass(std::vector const& args) { argError = true; } - // for VTK 4.0 we have to support the option command with more than 3 arguments - // if CMAKE_MINIMUM_REQUIRED_VERSION is not defined, if CMAKE_MINIMUM_REQUIRED_VERSION - // is defined, then we can have stricter checking. + // for VTK 4.0 we have to support the option command with more than 3 + // arguments if CMAKE_MINIMUM_REQUIRED_VERSION is not defined, if + // CMAKE_MINIMUM_REQUIRED_VERSION is defined, then we can have stricter + // checking. if(this->Makefile->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION")) { if(args.size() > 3) diff --git a/Source/cmOrderLinkDirectories.cxx b/Source/cmOrderLinkDirectories.cxx index d5d0c80..d2be241 100644 --- a/Source/cmOrderLinkDirectories.cxx +++ b/Source/cmOrderLinkDirectories.cxx @@ -68,13 +68,16 @@ void cmOrderLinkDirectories::FindLibrariesInSearchPaths() //------------------------------------------------------------------- void cmOrderLinkDirectories::FindIndividualLibraryOrders() { - for(std::vector::iterator lib = this->MultiDirectoryLibraries.begin(); + for(std::vector::iterator lib = + this->MultiDirectoryLibraries.begin(); lib != this->MultiDirectoryLibraries.end(); ++lib) { - std::vector& dirs = this->LibraryToDirectories[lib->FullPath]; - std::vector > >::iterator i; - for(i = this->DirectoryToAfterList.begin(); i != this->DirectoryToAfterList.end(); - ++i) + std::vector& dirs = + this->LibraryToDirectories[lib->FullPath]; + std::vector > + >::iterator i; + for(i = this->DirectoryToAfterList.begin(); + i != this->DirectoryToAfterList.end(); ++i) { if(i->first == lib->Path) { @@ -181,19 +184,20 @@ void cmOrderLinkDirectories::PrepareLinkTargets() bool cmOrderLinkDirectories::FindPathNotInDirectoryToAfterList( cmStdString& path) { - for(std::vector > >::iterator i - = this->DirectoryToAfterList.begin(); + for(std::vector > + >::iterator i = this->DirectoryToAfterList.begin(); i != this->DirectoryToAfterList.end(); ++i) { const cmStdString& p = i->first; bool found = false; - for(std::vector > >::iterator j - = this->DirectoryToAfterList.begin(); j != this->DirectoryToAfterList.end() - && !found; ++j) + for(std::vector > + >::iterator j = this->DirectoryToAfterList.begin(); + j != this->DirectoryToAfterList.end() && !found; ++j) { if(j != i) { - found = (std::find(j->second.begin(), j->second.end(), p) != j->second.end()); + found = (std::find(j->second.begin(), j->second.end(), p) + != j->second.end()); } } if(!found) @@ -226,8 +230,8 @@ void cmOrderLinkDirectories::OrderPaths(std::vector& // then there is a cycle and we are stuck if(this->DirectoryToAfterList.size()) { - for(std::vector > >::iterator i - = this->DirectoryToAfterList.begin(); + for(std::vector > + >::iterator i = this->DirectoryToAfterList.begin(); i != this->DirectoryToAfterList.end(); ++i) { this->ImpossibleDirectories.insert(i->first); @@ -337,11 +341,13 @@ bool cmOrderLinkDirectories::DetermineLibraryPathOrder() } else { - std::string message = "Warning: Ignoring path found in link libraries for target: "; + std::string message = + "Warning: Ignoring path found in link libraries for target: "; message += this->TargetName; message += ", path is: "; message += this->RawLinkItems[i]; - message += ". Expected a library name or a full path to a library name."; + message += + ". Expected a library name or a full path to a library name."; cmSystemTools::Message(message.c_str()); continue; } @@ -382,16 +388,19 @@ bool cmOrderLinkDirectories::DetermineLibraryPathOrder() } this->FindLibrariesInSearchPaths(); for(std::map >::iterator lib = - this->LibraryToDirectories.begin(); lib!= this->LibraryToDirectories.end(); + this->LibraryToDirectories.begin(); + lib!= this->LibraryToDirectories.end(); ++lib) { if(lib->second.size() > 0) { - this->MultiDirectoryLibraries.push_back(this->FullPathLibraries[lib->first]); + this->MultiDirectoryLibraries.push_back + (this->FullPathLibraries[lib->first]); } else { - this->SingleDirectoryLibraries.push_back(this->FullPathLibraries[lib->first]); + this->SingleDirectoryLibraries.push_back + (this->FullPathLibraries[lib->first]); } } this->FindIndividualLibraryOrders(); @@ -399,7 +408,8 @@ bool cmOrderLinkDirectories::DetermineLibraryPathOrder() if(this->Debug) { this->PrintMap("this->LibraryToDirectories", this->LibraryToDirectories); - this->PrintVector("this->DirectoryToAfterList", this->DirectoryToAfterList); + this->PrintVector("this->DirectoryToAfterList", + this->DirectoryToAfterList); } this->OrderPaths(this->SortedSearchPaths); // now turn libfoo.a into foo and foo.a into foo @@ -415,7 +425,11 @@ bool cmOrderLinkDirectories::DetermineLibraryPathOrder() std::string cmOrderLinkDirectories::GetWarnings() { - std::string warning = "It is impossible to order the linker search path in such a way that libraries specified as full paths will be picked by the linker.\nDirectories and libraries involved are:\n"; + std::string warning = + "It is impossible to order the linker search path in such a way " + "that libraries specified as full paths will be picked by the " + "linker.\nDirectories and libraries involved are:\n"; + for(std::set::iterator i = this->ImpossibleDirectories.begin(); i != this->ImpossibleDirectories.end(); ++i) { @@ -466,9 +480,8 @@ cmOrderLinkDirectories::PrintVector(const char* name, std::vector > >& m) { std::cout << name << "\n"; - for(std::vector > >::iterator i = - m.begin(); i != m.end(); - ++i) + for(std::vector > + >::iterator i = m.begin(); i != m.end(); ++i) { std::cout << i->first << ": "; for(std::vector::iterator l = i->second.begin(); @@ -483,7 +496,8 @@ cmOrderLinkDirectories::PrintVector(const char* name, void cmOrderLinkDirectories::GetFullPathLibraries(std::vector& libs) { - for(std::map::iterator i = this->FullPathLibraries.begin(); + for(std::map::iterator i = + this->FullPathLibraries.begin(); i != this->FullPathLibraries.end(); ++i) { libs.push_back(i->first); diff --git a/Source/cmOrderLinkDirectories.h b/Source/cmOrderLinkDirectories.h index 37c1462..3f42143 100644 --- a/Source/cmOrderLinkDirectories.h +++ b/Source/cmOrderLinkDirectories.h @@ -125,7 +125,8 @@ private: // map from library to directories that it is in other than its full path std::map > LibraryToDirectories; // map from directory to vector of directories that must be after it - std::vector > > DirectoryToAfterList; + std::vector > > + DirectoryToAfterList; std::set DirectoryToAfterListEmitted; // map from full path to a Library struct std::map FullPathLibraries; diff --git a/Source/cmOutputRequiredFilesCommand.cxx b/Source/cmOutputRequiredFilesCommand.cxx index 600e008..1a92249 100644 --- a/Source/cmOutputRequiredFilesCommand.cxx +++ b/Source/cmOutputRequiredFilesCommand.cxx @@ -176,7 +176,8 @@ void cmLBDepend::DependWalk(cmDependInformation* info) } // cmOutputRequiredFilesCommand -bool cmOutputRequiredFilesCommand::InitialPass(std::vector const& args) +bool cmOutputRequiredFilesCommand +::InitialPass(std::vector const& args) { if(args.size() != 2 ) { -- cgit v0.12