STYLE: fix line length

This commit is contained in:
Ken Martin 2006-05-10 15:08:38 -04:00
parent 14781101fd
commit bb88ef5e41
12 changed files with 58 additions and 32 deletions

View File

@ -18,6 +18,8 @@
bool cmElseCommand::InitialPass(std::vector<std::string> const&) bool cmElseCommand::InitialPass(std::vector<std::string> const&)
{ {
this->SetError("An ELSE command was found outside of a proper IF ENDIF structure. Or its arguments did not match the opening IF command."); this->SetError("An ELSE command was found outside of a proper "
"IF ENDIF structure. Or its arguments did not match "
"the opening IF command.");
return false; return false;
} }

View File

@ -17,11 +17,13 @@
#include "cmEnableLanguageCommand.h" #include "cmEnableLanguageCommand.h"
// cmEnableLanguageCommand // cmEnableLanguageCommand
bool cmEnableLanguageCommand::InitialPass(std::vector<std::string> const& args) bool cmEnableLanguageCommand
::InitialPass(std::vector<std::string> const& args)
{ {
if(args.size() < 1 ) if(args.size() < 1 )
{ {
this->SetError("ENABLE_LANGUAGE called with incorrect number of arguments"); this->SetError
("ENABLE_LANGUAGE called with incorrect number of arguments");
return false; return false;
} }
this->Makefile->EnableLanguage(args); this->Makefile->EnableLanguage(args);

View File

@ -16,9 +16,12 @@
=========================================================================*/ =========================================================================*/
#include "cmEndForEachCommand.h" #include "cmEndForEachCommand.h"
bool cmEndForEachCommand::InvokeInitialPass(std::vector<cmListFileArgument> const&) bool cmEndForEachCommand
::InvokeInitialPass(std::vector<cmListFileArgument> const&)
{ {
this->SetError("An ENDFOREACH command was found outside of a proper FOREACH ENDFOREACH structure. Or its arguments did not match the opening FOREACH command."); this->SetError("An ENDFOREACH command was found outside of a proper "
"FOREACH ENDFOREACH structure. Or its arguments did "
"not match the opening FOREACH command.");
return false; return false;
} }

View File

@ -25,7 +25,9 @@ bool cmEndIfCommand::InitialPass(std::vector<std::string> const&)
return true; return true;
} }
this->SetError("An ENDIF command was found outside of a proper IF ENDIF structure. Or its arguments did not match the opening IF command."); this->SetError("An ENDIF command was found outside of a proper "
"IF ENDIF structure. Or its arguments did not match "
"the opening IF command.");
return false; return false;
} }

View File

@ -16,9 +16,12 @@
=========================================================================*/ =========================================================================*/
#include "cmEndWhileCommand.h" #include "cmEndWhileCommand.h"
bool cmEndWhileCommand::InvokeInitialPass(std::vector<cmListFileArgument> const&) bool cmEndWhileCommand
::InvokeInitialPass(std::vector<cmListFileArgument> const&)
{ {
this->SetError("An ENDWHILE command was found outside of a proper WHILE ENDWHILE structure. Or its arguments did not match the opening WHILE command."); this->SetError("An ENDWHILE command was found outside of a proper "
"WHILE ENDWHILE structure. Or its arguments did not "
"match the opening WHILE command.");
return false; return false;
} }

View File

@ -112,7 +112,8 @@ bool cmExecProgramCommand::InitialPass(std::vector<std::string> const& args)
} }
else else
{ {
result = cmSystemTools::RunCommand(command.c_str(), output, retVal, 0, verbose); result = cmSystemTools::RunCommand(command.c_str(), output,
retVal, 0, verbose);
} }
if(!result) if(!result)
{ {

View File

@ -22,7 +22,8 @@
void cmExecuteProcessCommandFixText(std::vector<char>& output); void cmExecuteProcessCommandFixText(std::vector<char>& output);
// cmExecuteProcessCommand // cmExecuteProcessCommand
bool cmExecuteProcessCommand::InitialPass(std::vector<std::string> const& args) bool cmExecuteProcessCommand
::InitialPass(std::vector<std::string> const& args)
{ {
if(args.size() < 1 ) if(args.size() < 1 )
{ {
@ -241,11 +242,13 @@ bool cmExecuteProcessCommand::InitialPass(std::vector<std::string> const& args)
} }
if(!output_file.empty()) if(!output_file.empty())
{ {
cmsysProcess_SetPipeFile(cp, cmsysProcess_Pipe_STDOUT, output_file.c_str()); cmsysProcess_SetPipeFile(cp, cmsysProcess_Pipe_STDOUT,
output_file.c_str());
} }
if(!error_file.empty()) if(!error_file.empty())
{ {
cmsysProcess_SetPipeFile(cp, cmsysProcess_Pipe_STDERR, error_file.c_str()); cmsysProcess_SetPipeFile(cp, cmsysProcess_Pipe_STDERR,
error_file.c_str());
} }
// Set the timeout if any. // Set the timeout if any.
@ -297,11 +300,13 @@ bool cmExecuteProcessCommand::InitialPass(std::vector<std::string> const& args)
// Store the output obtained. // Store the output obtained.
if(!output_variable.empty() && tempOutput.size()) if(!output_variable.empty() && tempOutput.size())
{ {
this->Makefile->AddDefinition(output_variable.c_str(), &*tempOutput.begin()); this->Makefile->AddDefinition(output_variable.c_str(),
&*tempOutput.begin());
} }
if(!merge_output && !error_variable.empty() && tempError.size()) if(!merge_output && !error_variable.empty() && tempError.size())
{ {
this->Makefile->AddDefinition(error_variable.c_str(), &*tempError.begin()); this->Makefile->AddDefinition(error_variable.c_str(),
&*tempError.begin());
} }
// Store the result of running the process. // Store the result of running the process.

View File

@ -91,9 +91,9 @@ public:
"the result of running the processes. This will be an integer return " "the result of running the processes. This will be an integer return "
"code from the last child or a string describing an error condition. " "code from the last child or a string describing an error condition. "
"If OUTPUT_VARIABLE or ERROR_VARIABLE are given the variable named " "If OUTPUT_VARIABLE or ERROR_VARIABLE are given the variable named "
"will be set with the contents of the standard output and standard error " "will be set with the contents of the standard output and standard "
"pipes respectively. If the same variable is named for both pipes " "error pipes respectively. If the same variable is named for both "
"their output will be merged in the order produced. " "pipes their output will be merged in the order produced. "
"If INPUT_FILE, OUTPUT_FILE, or ERROR_FILE is given the file named " "If INPUT_FILE, OUTPUT_FILE, or ERROR_FILE is given the file named "
"will be attached to the standard input of the first process, " "will be attached to the standard input of the first process, "
"standard output of the last process, or standard error of all " "standard output of the last process, or standard error of all "

View File

@ -23,12 +23,12 @@
#include <cmsys/auto_ptr.hxx> #include <cmsys/auto_ptr.hxx>
// cmExecutableCommand // cmExecutableCommand
bool cmExportLibraryDependenciesCommand::InitialPass(std::vector<std::string> const& args) bool cmExportLibraryDependenciesCommand
::InitialPass(std::vector<std::string> const& args)
{ {
// First argument is the name of the test // First argument is the name of the test Second argument is the name of
// Second argument is the name of the executable to run (a target or external // the executable to run (a target or external program) Remaining arguments
// program) // are the arguments to pass to the executable
// Remaining arguments are the arguments to pass to the executable
if(args.size() < 1 ) if(args.size() < 1 )
{ {
this->SetError("called with incorrect number of arguments"); this->SetError("called with incorrect number of arguments");

View File

@ -22,7 +22,8 @@
/** \class cmExportLibraryDependenciesCommand /** \class cmExportLibraryDependenciesCommand
* \brief Add a test to the lists of tests to run. * \brief Add a test to the lists of tests to run.
* *
* cmExportLibraryDependenciesCommand adds a test to the list of tests to run . * cmExportLibraryDependenciesCommand adds a test to the list of tests to run
*
*/ */
class cmExportLibraryDependenciesCommand : public cmCommand class cmExportLibraryDependenciesCommand : public cmCommand
{ {
@ -57,7 +58,8 @@ public:
*/ */
virtual const char* GetTerseDocumentation() virtual const char* GetTerseDocumentation()
{ {
return "Write out the dependency information for all targets of a project."; return
"Write out the dependency information for all targets of a project.";
} }
/** /**

View File

@ -165,7 +165,8 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
#define YY_LESS_LINENO(n) #define YY_LESS_LINENO(n)
/* Return all but the first "n" matched characters back to the input stream. */ /* Return all but the first "n" matched characters back to the input
stream. */
#define yyless(n) \ #define yyless(n) \
do \ do \
{ \ { \
@ -264,8 +265,8 @@ struct yy_buffer_state
? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \ ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
: NULL) : NULL)
/* Same as previous macro, but useful when we know that the buffer stack is not /* Same as previous macro, but useful when we know that the buffer stack is
* NULL or when we need an lvalue. For internal use only. * not NULL or when we need an lvalue. For internal use only.
*/ */
#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
@ -327,7 +328,8 @@ typedef int yy_state_type;
#define yytext_ptr yytext_r #define yytext_ptr yytext_r
static yy_state_type yy_get_previous_state (yyscan_t yyscanner ); static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,
yyscan_t yyscanner);
static int yy_get_next_buffer (yyscan_t yyscanner ); static int yy_get_next_buffer (yyscan_t yyscanner );
static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner ); static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
@ -456,7 +458,8 @@ This file must be translated to C and modified to build everywhere.
Run flex like this: Run flex like this:
flex --prefix=cmExpr_yy --header-file=cmExprLexer.h -ocmExprLexer.cxx cmExprLexer.in.l flex --prefix=cmExpr_yy --header-file=cmExprLexer.h -ocmExprLexer.cxx
cmExprLexer.in.l
Modify cmExprLexer.cxx: Modify cmExprLexer.cxx:
- remove TABs - remove TABs
@ -535,7 +538,8 @@ struct yyguts_t
/* User-defined. Not touched by flex. */ /* User-defined. Not touched by flex. */
YY_EXTRA_TYPE yyextra_r; YY_EXTRA_TYPE yyextra_r;
/* The rest are the same as the globals declared in the non-reentrant scanner. */ /* The rest are the same as the globals declared in the non-reentrant
scanner. */
FILE *yyin_r, *yyout_r; FILE *yyin_r, *yyout_r;
size_t yy_buffer_stack_top; /**< index of top of stack. */ size_t yy_buffer_stack_top; /**< index of top of stack. */
size_t yy_buffer_stack_max; /**< capacity of stack. */ size_t yy_buffer_stack_max; /**< capacity of stack. */
@ -1137,7 +1141,8 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
return ret_val; return ret_val;
} }
/* yy_get_previous_state - get the state just before the EOB char was reached */ /* yy_get_previous_state - get the state just before the EOB char was
reached */
static yy_state_type yy_get_previous_state (yyscan_t yyscanner) static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
{ {

View File

@ -300,7 +300,8 @@ extern int cmExpr_yylex (yyscan_t yyscanner);
#define YY_DECL int cmExpr_yylex (yyscan_t yyscanner) #define YY_DECL int cmExpr_yylex (yyscan_t yyscanner)
#endif /* !YY_DECL */ #endif /* !YY_DECL */
/* yy_get_previous_state - get the state just before the EOB char was reached */ /* yy_get_previous_state - get the state just before the EOB char was
reached */
#undef YY_NEW_FILE #undef YY_NEW_FILE
#undef YY_FLUSH_BUFFER #undef YY_FLUSH_BUFFER