summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-05-12 17:39:34 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-05-12 17:39:34 (GMT)
commit3c4bfa10037d91f89fc25c51da5239136148bfa6 (patch)
tree5fde5eb521554fe859254282413a8f0e4c1e4eb7
parent47c7108111a7fdd0b5df8d3e2561aa8d544bae34 (diff)
downloadCMake-3c4bfa10037d91f89fc25c51da5239136148bfa6.zip
CMake-3c4bfa10037d91f89fc25c51da5239136148bfa6.tar.gz
CMake-3c4bfa10037d91f89fc25c51da5239136148bfa6.tar.bz2
STYLE: fix line length
-rw-r--r--Source/cmObject.h4
-rw-r--r--Source/cmOptionCommand.cxx7
-rw-r--r--Source/cmOrderLinkDirectories.cxx62
-rw-r--r--Source/cmOrderLinkDirectories.h3
-rw-r--r--Source/cmOutputRequiredFilesCommand.cxx3
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<std::string> 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<Library>::iterator lib = this->MultiDirectoryLibraries.begin();
+ for(std::vector<Library>::iterator lib =
+ this->MultiDirectoryLibraries.begin();
lib != this->MultiDirectoryLibraries.end(); ++lib)
{
- std::vector<cmStdString>& dirs = this->LibraryToDirectories[lib->FullPath];
- std::vector<std::pair<cmStdString, std::vector<cmStdString> > >::iterator i;
- for(i = this->DirectoryToAfterList.begin(); i != this->DirectoryToAfterList.end();
- ++i)
+ std::vector<cmStdString>& dirs =
+ this->LibraryToDirectories[lib->FullPath];
+ std::vector<std::pair<cmStdString, std::vector<cmStdString> >
+ >::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<std::pair<cmStdString, std::vector<cmStdString> > >::iterator i
- = this->DirectoryToAfterList.begin();
+ for(std::vector<std::pair<cmStdString, std::vector<cmStdString> >
+ >::iterator i = this->DirectoryToAfterList.begin();
i != this->DirectoryToAfterList.end(); ++i)
{
const cmStdString& p = i->first;
bool found = false;
- for(std::vector<std::pair<cmStdString, std::vector<cmStdString> > >::iterator j
- = this->DirectoryToAfterList.begin(); j != this->DirectoryToAfterList.end()
- && !found; ++j)
+ for(std::vector<std::pair<cmStdString, std::vector<cmStdString> >
+ >::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<cmStdString>&
// then there is a cycle and we are stuck
if(this->DirectoryToAfterList.size())
{
- for(std::vector<std::pair<cmStdString, std::vector<cmStdString> > >::iterator i
- = this->DirectoryToAfterList.begin();
+ for(std::vector<std::pair<cmStdString, std::vector<cmStdString> >
+ >::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<cmStdString, std::vector<cmStdString> >::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<cmStdString>::iterator i = this->ImpossibleDirectories.begin();
i != this->ImpossibleDirectories.end(); ++i)
{
@@ -466,9 +480,8 @@ cmOrderLinkDirectories::PrintVector(const char* name,
std::vector<cmStdString> > >& m)
{
std::cout << name << "\n";
- for(std::vector<std::pair<cmStdString, std::vector<cmStdString> > >::iterator i =
- m.begin(); i != m.end();
- ++i)
+ for(std::vector<std::pair<cmStdString, std::vector<cmStdString> >
+ >::iterator i = m.begin(); i != m.end(); ++i)
{
std::cout << i->first << ": ";
for(std::vector<cmStdString>::iterator l = i->second.begin();
@@ -483,7 +496,8 @@ cmOrderLinkDirectories::PrintVector(const char* name,
void cmOrderLinkDirectories::GetFullPathLibraries(std::vector<cmStdString>&
libs)
{
- for(std::map<cmStdString, Library>::iterator i = this->FullPathLibraries.begin();
+ for(std::map<cmStdString, Library>::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<cmStdString, std::vector<cmStdString> > LibraryToDirectories;
// map from directory to vector of directories that must be after it
- std::vector<std::pair<cmStdString, std::vector<cmStdString> > > DirectoryToAfterList;
+ std::vector<std::pair<cmStdString, std::vector<cmStdString> > >
+ DirectoryToAfterList;
std::set<cmStdString> DirectoryToAfterListEmitted;
// map from full path to a Library struct
std::map<cmStdString, Library> 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<std::string> const& args)
+bool cmOutputRequiredFilesCommand
+::InitialPass(std::vector<std::string> const& args)
{
if(args.size() != 2 )
{