Remove trailing whitespace from most CMake and C/C++ code

Our Git commit hooks disallow modification or addition of lines with
trailing whitespace.  Wipe out all remnants of trailing whitespace
everywhere except third-party code.

Run the following shell code:

git ls-files -z -- \
 bootstrap doxygen.config '*.readme' \
 '*.c' '*.cmake' '*.cpp' '*.cxx' \
 '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \
 '*.mm' '*.pike' '*.py' '*.txt' '*.vim' |
egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' |
egrep -z -v '^(Modules/CPack\..*\.in)' |
xargs -0 sed -i 's/ \+$//'
This commit is contained in:
Kitware Robot
2012-08-13 13:42:58 -04:00
committed by Brad King
parent be9db98946
commit 7bbaa4283d
614 changed files with 3951 additions and 3951 deletions
+9 -9
View File
@@ -28,7 +28,7 @@ void cmLBDepend::DependWalk(cmDependInformation* info)
cmSystemTools::Error("error can not open ", info->FullPath.c_str());
return;
}
std::string line;
while(cmSystemTools::GetLineFromStream(fin, line))
{
@@ -45,7 +45,7 @@ void cmLBDepend::DependWalk(cmDependInformation* info)
// if a < is not found then move on
if(qstart == std::string::npos)
{
cmSystemTools::Error("unknown include directive ",
cmSystemTools::Error("unknown include directive ",
currentline.c_str() );
continue;
}
@@ -73,7 +73,7 @@ void cmLBDepend::DependWalk(cmDependInformation* info)
}
continue;
}
// Add this file and all its dependencies.
this->AddDependency(info, includeFile.c_str());
/// add the cxx file if it exists
@@ -89,7 +89,7 @@ void cmLBDepend::DependWalk(cmDependInformation* info)
{
found = true;
}
for(std::vector<std::string>::iterator i =
for(std::vector<std::string>::iterator i =
this->IncludeDirectories.begin();
i != this->IncludeDirectories.end(); ++i)
{
@@ -108,7 +108,7 @@ void cmLBDepend::DependWalk(cmDependInformation* info)
{
found = true;
}
for(std::vector<std::string>::iterator i =
for(std::vector<std::string>::iterator i =
this->IncludeDirectories.begin();
i != this->IncludeDirectories.end(); ++i)
{
@@ -128,7 +128,7 @@ void cmLBDepend::DependWalk(cmDependInformation* info)
{
found = true;
}
for(std::vector<std::string>::iterator i =
for(std::vector<std::string>::iterator i =
this->IncludeDirectories.begin();
i != this->IncludeDirectories.end(); ++i)
{
@@ -148,7 +148,7 @@ void cmLBDepend::DependWalk(cmDependInformation* info)
{
found = true;
}
for(std::vector<std::string>::iterator i =
for(std::vector<std::string>::iterator i =
this->IncludeDirectories.begin();
i != this->IncludeDirectories.end(); ++i)
{
@@ -183,7 +183,7 @@ bool cmOutputRequiredFilesCommand
// store the arg for final pass
this->File = args[0];
this->OutputFile = args[1];
// compute the list of files
cmLBDepend md;
md.SetMakefile(this->Makefile);
@@ -217,7 +217,7 @@ ListDependencies(cmDependInformation const *info,
// add info to the visited set
visited->insert(info);
// now recurse with info's dependencies
for(cmDependInformation::DependencySetType::const_iterator d =
for(cmDependInformation::DependencySetType::const_iterator d =
info->DependencySet.begin();
d != info->DependencySet.end(); ++d)
{