STYLE: fix line length

This commit is contained in:
Ken Martin 2006-05-10 13:56:27 -04:00
parent aae0bcdacf
commit 5ac59d81d3
3 changed files with 38 additions and 33 deletions

View File

@ -66,19 +66,20 @@ public:
return return
" AUX_SOURCE_DIRECTORY(dir VARIABLE)\n" " AUX_SOURCE_DIRECTORY(dir VARIABLE)\n"
"Collects the names of all the source files in the specified " "Collects the names of all the source files in the specified "
"directory and stores the list in the variable provided. This command " "directory and stores the list in the variable provided. This "
"is intended to be used by projects that use explicit template " "command is intended to be used by projects that use explicit "
"instantiation. Template instantiation files can be stored in a " "template instantiation. Template instantiation files can be "
"\"Templates\" subdirectory and collected automatically using this " "stored in a \"Templates\" subdirectory and collected automatically "
"command to avoid manually listing all instantiations.\n" "using this command to avoid manually listing all instantiations.\n"
"It is tempting to use this command to avoid writing the list of source " "It is tempting to use this command to avoid writing the list of "
"files for a library or executable target. While this seems to work, " "source files for a library or executable target. While this seems "
"there is no way for CMake to generate a build system that knows when a " "to work, there is no way for CMake to generate a build system that "
"new source file has been added. Normally the generated build system " "knows when a new source file has been added. Normally the "
"knows when it needs to rerun CMake because the CMakeLists.txt file " "generated build system knows when it needs to rerun CMake because "
"is modified to add a new source. When the source is just added to " "the CMakeLists.txt file is modified to add a new source. When the "
"the directory without modifying this file, one would have to manually " "source is just added to the directory without modifying this file, "
"rerun CMake to generate a build system incorporating the new file."; "one would have to manually rerun CMake to generate a build system "
"incorporating the new file.";
} }
cmTypeMacro(cmAuxSourceDirectoryCommand, cmCommand); cmTypeMacro(cmAuxSourceDirectoryCommand, cmCommand);

View File

@ -723,15 +723,16 @@ bool cmCTest::AddIfExists(SetOfStrings& files, const char* file)
//---------------------------------------------------------------------- //----------------------------------------------------------------------
bool cmCTest::CTestFileExists(const std::string& filename) bool cmCTest::CTestFileExists(const std::string& filename)
{ {
std::string testingDir = this->BinaryDir + "/Testing/" + this->CurrentTag + "/" + std::string testingDir = this->BinaryDir + "/Testing/" +
filename; this->CurrentTag + "/" + filename;
return cmSystemTools::FileExists(testingDir.c_str()); return cmSystemTools::FileExists(testingDir.c_str());
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
cmCTestGenericHandler* cmCTest::GetInitializedHandler(const char* handler) cmCTestGenericHandler* cmCTest::GetInitializedHandler(const char* handler)
{ {
cmCTest::t_TestingHandlers::iterator it = this->TestingHandlers.find(handler); cmCTest::t_TestingHandlers::iterator it =
this->TestingHandlers.find(handler);
if ( it == this->TestingHandlers.end() ) if ( it == this->TestingHandlers.end() )
{ {
return 0; return 0;
@ -743,7 +744,8 @@ cmCTestGenericHandler* cmCTest::GetInitializedHandler(const char* handler)
//---------------------------------------------------------------------- //----------------------------------------------------------------------
cmCTestGenericHandler* cmCTest::GetHandler(const char* handler) cmCTestGenericHandler* cmCTest::GetHandler(const char* handler)
{ {
cmCTest::t_TestingHandlers::iterator it = this->TestingHandlers.find(handler); cmCTest::t_TestingHandlers::iterator it =
this->TestingHandlers.find(handler);
if ( it == this->TestingHandlers.end() ) if ( it == this->TestingHandlers.end() )
{ {
return 0; return 0;
@ -1369,7 +1371,8 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output)
this->ShowOnly = true; this->ShowOnly = true;
} }
if(this->CheckArgument(arg, "-SP", "--script-new-process") && i < args.size() - 1 ) if(this->CheckArgument(arg, "-SP", "--script-new-process") &&
i < args.size() - 1 )
{ {
this->RunConfigurationScript = true; this->RunConfigurationScript = true;
i++; i++;
@ -1382,7 +1385,8 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output)
} }
} }
if(this->CheckArgument(arg, "-SR", "--script-run") && i < args.size() - 1 ) if(this->CheckArgument(arg, "-SR", "--script-run") &&
i < args.size() - 1 )
{ {
SRArgumentSpecified = true; SRArgumentSpecified = true;
this->RunConfigurationScript = true; this->RunConfigurationScript = true;
@ -1701,8 +1705,8 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output)
i++; i++;
this->GetHandler("test")->SetPersistentOption("TestsToRunInformation", this->GetHandler("test")->SetPersistentOption("TestsToRunInformation",
args[i].c_str()); args[i].c_str());
this->GetHandler("memcheck")->SetPersistentOption("TestsToRunInformation", this->GetHandler("memcheck")->
args[i].c_str()); SetPersistentOption("TestsToRunInformation",args[i].c_str());
} }
if(this->CheckArgument(arg, "-U", "--union")) if(this->CheckArgument(arg, "-U", "--union"))
{ {
@ -1712,20 +1716,20 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output)
if(this->CheckArgument(arg, "-R", "--tests-regex") && i < args.size() - 1) if(this->CheckArgument(arg, "-R", "--tests-regex") && i < args.size() - 1)
{ {
i++; i++;
this->GetHandler("test")->SetPersistentOption("IncludeRegularExpression", this->GetHandler("test")->
args[i].c_str()); SetPersistentOption("IncludeRegularExpression", args[i].c_str());
this->GetHandler("memcheck")->SetPersistentOption("IncludeRegularExpression", this->GetHandler("memcheck")->
args[i].c_str()); SetPersistentOption("IncludeRegularExpression", args[i].c_str());
} }
if(this->CheckArgument(arg, "-E", "--exclude-regex") && if(this->CheckArgument(arg, "-E", "--exclude-regex") &&
i < args.size() - 1) i < args.size() - 1)
{ {
i++; i++;
this->GetHandler("test")->SetPersistentOption("ExcludeRegularExpression", this->GetHandler("test")->
args[i].c_str()); SetPersistentOption("ExcludeRegularExpression", args[i].c_str());
this->GetHandler("memcheck")->SetPersistentOption("ExcludeRegularExpression", this->GetHandler("memcheck")->
args[i].c_str()); SetPersistentOption("ExcludeRegularExpression", args[i].c_str());
} }
if(this->CheckArgument(arg, "--overwrite") && i < args.size() - 1) if(this->CheckArgument(arg, "--overwrite") && i < args.size() - 1)

View File

@ -423,8 +423,8 @@ bool cmCacheManager::SaveCache(const char* path)
fout << "########################\n"; fout << "########################\n";
fout << "\n"; fout << "\n";
for( std::map<cmStdString, CacheEntry>::const_iterator i = this->Cache.begin(); for( std::map<cmStdString, CacheEntry>::const_iterator i =
i != this->Cache.end(); ++i) this->Cache.begin(); i != this->Cache.end(); ++i)
{ {
const CacheEntry& ce = (*i).second; const CacheEntry& ce = (*i).second;
CacheEntryType t = ce.Type; CacheEntryType t = ce.Type;
@ -724,8 +724,8 @@ void cmCacheManager::PrintCache(std::ostream& out) const
{ {
out << "=================================================" << std::endl; out << "=================================================" << std::endl;
out << "CMakeCache Contents:" << std::endl; out << "CMakeCache Contents:" << std::endl;
for(std::map<cmStdString, CacheEntry>::const_iterator i = this->Cache.begin(); for(std::map<cmStdString, CacheEntry>::const_iterator i =
i != this->Cache.end(); ++i) this->Cache.begin(); i != this->Cache.end(); ++i)
{ {
if((*i).second.Type != INTERNAL) if((*i).second.Type != INTERNAL)
{ {