Merge topic 'add-const-qualifiers'

737c49a Add 'const' qualifier to some cmCommand members
261491f cmPropertyDefinition::IsChained is const
This commit is contained in:
David Cole 2012-03-02 11:50:07 -05:00 committed by CMake Topic Stage
commit e4382180fc
117 changed files with 421 additions and 421 deletions

View File

@ -43,12 +43,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_build";}
virtual const char* GetName() const { return "ctest_build";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Build the project.";
}
@ -57,7 +57,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" ctest_build([BUILD build_dir] [TARGET target] [RETURN_VALUE res]\n"

View File

@ -38,12 +38,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_configure";}
virtual const char* GetName() const { return "ctest_configure";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Configure the project build tree.";
}
@ -51,7 +51,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" ctest_configure([BUILD build_dir] [SOURCE source_dir] [APPEND]\n"

View File

@ -39,12 +39,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_coverage";}
virtual const char* GetName() const { return "ctest_coverage";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Collect coverage tool results.";
}
@ -52,7 +52,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" ctest_coverage([BUILD build_dir] [RETURN_VALUE res] [APPEND]\n"

View File

@ -48,12 +48,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_empty_binary_directory";}
virtual const char* GetName() const { return "ctest_empty_binary_directory";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "empties the binary directory";
}
@ -61,7 +61,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" ctest_empty_binary_directory( directory )\n"

View File

@ -41,12 +41,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_memcheck";}
virtual const char* GetName() const { return "ctest_memcheck";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Run tests with a dynamic analysis tool.";
}
@ -54,7 +54,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" ctest_memcheck([BUILD build_dir] [RETURN_VALUE res] [APPEND]\n"

View File

@ -46,12 +46,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_read_custom_files";}
virtual const char* GetName() const { return "ctest_read_custom_files";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "read CTestCustom files.";
}
@ -59,7 +59,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" ctest_read_custom_files( directory ... )\n"

View File

@ -47,12 +47,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_run_script";}
virtual const char* GetName() const { return "ctest_run_script";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "runs a ctest -S script";
}
@ -60,7 +60,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" ctest_run_script([NEW_PROCESS] script_file_name script_file_name1 \n"

View File

@ -47,12 +47,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_sleep";}
virtual const char* GetName() const { return "ctest_sleep";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "sleeps for some amount of time";
}
@ -60,7 +60,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" ctest_sleep(<seconds>)\n"

View File

@ -55,12 +55,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_start";}
virtual const char* GetName() const { return "ctest_start";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Starts the testing for a given model";
}
@ -68,7 +68,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" ctest_start(Model [TRACK <track>] [APPEND] [source [binary]])\n"

View File

@ -48,12 +48,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_submit";}
virtual const char* GetName() const { return "ctest_submit";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Submit results to a dashboard server.";
}
@ -61,7 +61,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" ctest_submit([PARTS ...] [FILES ...] [RETRY_COUNT count] "

View File

@ -39,12 +39,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_test";}
virtual const char* GetName() const { return "ctest_test";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Run tests in the project build tree.";
}
@ -52,7 +52,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" ctest_test([BUILD build_dir] [APPEND]\n"

View File

@ -59,11 +59,11 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "subdirs";}
virtual const char* GetName() const { return "subdirs";}
// Unused methods
virtual const char* GetTerseDocumentation() { return ""; }
virtual const char* GetFullDocumentation() { return ""; }
virtual const char* GetTerseDocumentation() const { return ""; }
virtual const char* GetFullDocumentation() const { return ""; }
cmTypeMacro(cmCTestSubdirCommand, cmCommand);
@ -161,11 +161,11 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "add_subdirectory";}
virtual const char* GetName() const { return "add_subdirectory";}
// Unused methods
virtual const char* GetTerseDocumentation() { return ""; }
virtual const char* GetFullDocumentation() { return ""; }
virtual const char* GetTerseDocumentation() const { return ""; }
virtual const char* GetFullDocumentation() const { return ""; }
cmTypeMacro(cmCTestAddSubdirectoryCommand, cmCommand);
@ -251,11 +251,11 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ADD_TEST";}
virtual const char* GetName() const { return "ADD_TEST";}
// Unused methods
virtual const char* GetTerseDocumentation() { return ""; }
virtual const char* GetFullDocumentation() { return ""; }
virtual const char* GetTerseDocumentation() const { return ""; }
virtual const char* GetFullDocumentation() const { return ""; }
cmTypeMacro(cmCTestAddTestCommand, cmCommand);
@ -299,11 +299,11 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "SET_TESTS_PROPERTIES";}
virtual const char* GetName() const { return "SET_TESTS_PROPERTIES";}
// Unused methods
virtual const char* GetTerseDocumentation() { return ""; }
virtual const char* GetFullDocumentation() { return ""; }
virtual const char* GetTerseDocumentation() const { return ""; }
virtual const char* GetFullDocumentation() const { return ""; }
cmTypeMacro(cmCTestSetTestsPropertiesCommand, cmCommand);

View File

@ -39,12 +39,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_update";}
virtual const char* GetName() const { return "ctest_update";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Update the work tree from version control.";
}
@ -52,7 +52,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" ctest_update([SOURCE source] [RETURN_VALUE res])\n"

View File

@ -43,12 +43,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "ctest_upload";}
virtual const char* GetName() const { return "ctest_upload";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Upload files to a dashboard server.";
}
@ -56,7 +56,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" ctest_upload(FILES ...)\n"

View File

@ -44,12 +44,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "add_custom_command";}
virtual const char* GetName() const {return "add_custom_command";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Add a custom build rule to the generated build system.";
}
@ -57,7 +57,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
"There are two main signatures for add_custom_command "

View File

@ -42,13 +42,13 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName()
virtual const char* GetName() const
{return "add_custom_target";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Add a target with no output so it will always be built.";
}
@ -56,7 +56,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" add_custom_target(Name [ALL] [command1 [args1...]]\n"

View File

@ -41,12 +41,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "add_definitions";}
virtual const char* GetName() const {return "add_definitions";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Adds -D define flags to the compilation of source files.";
}
@ -54,7 +54,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" add_definitions(-DFOO -DBAR ...)\n"

View File

@ -40,12 +40,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "add_dependencies";}
virtual const char* GetName() const { return "add_dependencies";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Add a dependency between top-level targets.";
}
@ -53,7 +53,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" add_dependencies(target-name depend-target1\n"

View File

@ -41,12 +41,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "add_executable";}
virtual const char* GetName() const { return "add_executable";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return
"Add an executable to the project using the specified source files.";
@ -55,7 +55,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" add_executable(<name> [WIN32] [MACOSX_BUNDLE]\n"

View File

@ -41,12 +41,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "add_library";}
virtual const char* GetName() const { return "add_library";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Add a library to the project using the specified source files.";
}
@ -54,7 +54,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" add_library(<name> [STATIC | SHARED | MODULE]\n"

View File

@ -42,12 +42,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "add_subdirectory";}
virtual const char* GetName() const { return "add_subdirectory";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Add a subdirectory to the build.";
}
@ -55,7 +55,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" add_subdirectory(source_dir [binary_dir] \n"

View File

@ -41,12 +41,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "add_test";}
virtual const char* GetName() const { return "add_test";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Add a test to the project with the specified arguments.";
}
@ -54,7 +54,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" add_test(testname Exename arg1 arg2 ... )\n"

View File

@ -44,12 +44,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "aux_source_directory";}
virtual const char* GetName() const { return "aux_source_directory";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Find all source files in a directory.";
}
@ -57,7 +57,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" aux_source_directory(<dir> <variable>)\n"

View File

@ -40,17 +40,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "break";}
virtual const char* GetName() const {return "break";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Break from an enclosing foreach or while loop.";
}
@ -58,7 +58,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" break()\n"

View File

@ -50,12 +50,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "build_command";}
virtual const char* GetName() const {return "build_command";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Get the command line to build this project.";
}
@ -63,7 +63,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" build_command(<variable>\n"

View File

@ -40,17 +40,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "build_name";}
virtual const char* GetName() const {return "build_name";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return
"Deprecated. Use ${CMAKE_SYSTEM} and ${CMAKE_CXX_COMPILER} instead.";
@ -59,7 +59,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" build_name(variable)\n"
@ -69,7 +69,7 @@ public:
}
/** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged()
virtual bool IsDiscouraged() const
{
return true;
}

View File

@ -40,17 +40,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "cmake_minimum_required";}
virtual const char* GetName() const {return "cmake_minimum_required";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Set the minimum required version of cmake for a project.";
}
@ -58,7 +58,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" cmake_minimum_required(VERSION major[.minor[.patch[.tweak]]]\n"

View File

@ -41,17 +41,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "cmake_policy";}
virtual const char* GetName() const {return "cmake_policy";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Manage CMake Policy settings.";
}
@ -59,7 +59,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
"As CMake evolves it is sometimes necessary to change existing "

View File

@ -96,7 +96,7 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable()
virtual bool IsScriptable() const
{
return false;
}
@ -105,7 +105,7 @@ public:
* This determines if usage of the method is discouraged or not.
* This is currently only used for generating the documentation.
*/
virtual bool IsDiscouraged()
virtual bool IsDiscouraged() const
{
return false;
}
@ -116,7 +116,7 @@ public:
* cmMacroHelperCommand and cmFunctionHelperCommand
* which cannot provide appropriate documentation.
*/
virtual bool ShouldAppearInDocumentation()
virtual bool ShouldAppearInDocumentation() const
{
return true;
}
@ -124,17 +124,17 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() = 0;
virtual const char* GetName() const = 0;
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation() = 0;
virtual const char* GetTerseDocumentation() const = 0;
/**
* More documentation.
*/
virtual const char* GetFullDocumentation() = 0;
virtual const char* GetFullDocumentation() const = 0;
/**
* Enable the command.
@ -151,7 +151,7 @@ public:
/**
* Query whether the command is enabled.
*/
bool GetEnabled()
bool GetEnabled() const
{return this->Enabled;}
/**

View File

@ -34,17 +34,17 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "configure_file";}
virtual const char* GetName() const { return "configure_file";}
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Copy a file to another location and modify its contents.";
}
@ -52,7 +52,7 @@ public:
/**
* Longer documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" configure_file(<input> <output>\n"

View File

@ -40,12 +40,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "create_test_sourcelist";}
virtual const char* GetName() const {return "create_test_sourcelist";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Create a test driver and source list for building test programs.";
}
@ -53,7 +53,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" create_test_sourcelist(sourceListName driverName\n"

View File

@ -32,12 +32,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "define_property";}
virtual const char* GetName() const { return "define_property";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Define and document custom properties.";
}
@ -45,7 +45,7 @@ public:
/**
* Longer documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" define_property(<GLOBAL | DIRECTORY | TARGET | SOURCE |\n"

View File

@ -40,17 +40,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "else";}
virtual const char* GetName() const { return "else";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Starts the else portion of an if block.";
}
@ -58,7 +58,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" else(expression)\n"

View File

@ -40,17 +40,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "elseif";}
virtual const char* GetName() const { return "elseif";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Starts the elseif portion of an if block.";
}
@ -58,7 +58,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" elseif(expression)\n"

View File

@ -43,12 +43,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "enable_language";}
virtual const char* GetName() const {return "enable_language";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Enable a language (CXX/C/Fortran/etc)";
}
@ -56,7 +56,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" enable_language(languageName [OPTIONAL] )\n"

View File

@ -48,12 +48,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "enable_testing";}
virtual const char* GetName() const { return "enable_testing";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Enable testing for current directory and below.";
}
@ -61,7 +61,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" enable_testing()\n"

View File

@ -47,17 +47,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "endforeach";}
virtual const char* GetName() const { return "endforeach";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Ends a list of commands in a FOREACH block.";
}
@ -65,7 +65,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" endforeach(expression)\n"

View File

@ -47,17 +47,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "endfunction";}
virtual const char* GetName() const { return "endfunction";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Ends a list of commands in a function block.";
}
@ -65,7 +65,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" endfunction(expression)\n"

View File

@ -40,17 +40,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "endif";}
virtual const char* GetName() const { return "endif";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Ends a list of commands in an if block.";
}
@ -58,7 +58,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" endif(expression)\n"

View File

@ -47,17 +47,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "endmacro";}
virtual const char* GetName() const { return "endmacro";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Ends a list of commands in a macro block.";
}
@ -65,7 +65,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" endmacro(expression)\n"

View File

@ -47,17 +47,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "endwhile";}
virtual const char* GetName() const { return "endwhile";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Ends a list of commands in a while block.";
}
@ -65,7 +65,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" endwhile(expression)\n"

View File

@ -42,18 +42,18 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName()
virtual const char* GetName() const
{return "exec_program";}
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return
"Deprecated. Use the execute_process() command instead.";
@ -62,7 +62,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
"Run an executable program during the processing of the CMakeList.txt"
@ -84,7 +84,7 @@ public:
}
/** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged()
virtual bool IsDiscouraged() const
{
return true;
}

View File

@ -41,18 +41,18 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName()
virtual const char* GetName() const
{return "execute_process";}
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Execute one or more child processes.";
}
@ -60,7 +60,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" execute_process(COMMAND <cmd1> [args1...]]\n"

View File

@ -45,12 +45,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "export";}
virtual const char* GetName() const { return "export";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return
"Export targets from the build tree for use by outside projects.";
@ -59,7 +59,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" export(TARGETS [target1 [target2 [...]]] [NAMESPACE <namespace>]\n"

View File

@ -48,12 +48,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "export_library_dependencies";}
virtual const char* GetName() const { return "export_library_dependencies";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Deprecated. Use INSTALL(EXPORT) or EXPORT command.";
}
@ -61,7 +61,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
"This command generates an old-style library dependencies file. "
@ -83,7 +83,7 @@ public:
}
/** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged()
virtual bool IsDiscouraged() const
{
return true;
}

View File

@ -52,12 +52,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "fltk_wrap_ui";}
virtual const char* GetName() const { return "fltk_wrap_ui";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Create FLTK user interfaces Wrappers.";
}
@ -65,7 +65,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" fltk_wrap_ui(resultingLibraryName source1\n"

View File

@ -41,17 +41,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "file";}
virtual const char* GetName() const { return "file";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "File manipulation command.";
}
@ -59,7 +59,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" file(WRITE filename \"message to write\"... )\n"

View File

@ -108,11 +108,11 @@ void cmFindBase::GenerateDocumentation()
}
//----------------------------------------------------------------------------
const char* cmFindBase::GetFullDocumentation()
const char* cmFindBase::GetFullDocumentation() const
{
if(this->GenericDocumentation.empty())
{
this->GenerateDocumentation();
const_cast<cmFindBase *>(this)->GenerateDocumentation();
}
return this->GenericDocumentation.c_str();
}

View File

@ -31,7 +31,7 @@ public:
virtual bool ParseArguments(std::vector<std::string> const& args);
cmTypeMacro(cmFindBase, cmFindCommon);
virtual const char* GetFullDocumentation();
virtual const char* GetFullDocumentation() const;
protected:
virtual void GenerateDocumentation();

View File

@ -33,12 +33,12 @@ public:
{
return new cmFindFileCommand;
}
virtual const char* GetName() { return "find_file";}
virtual const char* GetName() const { return "find_file";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Find the full path to a file.";
}

View File

@ -44,17 +44,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "find_library";}
virtual const char* GetName() const {return "find_library";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Find a library.";
}

View File

@ -354,11 +354,11 @@ void cmFindPackageCommand::GenerateDocumentation()
}
//----------------------------------------------------------------------------
const char* cmFindPackageCommand::GetFullDocumentation()
const char* cmFindPackageCommand::GetFullDocumentation() const
{
if(this->CommandDocumentation.empty())
{
this->GenerateDocumentation();
const_cast<cmFindPackageCommand *>(this)->GenerateDocumentation();
}
return this->CommandDocumentation.c_str();
}

View File

@ -44,17 +44,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "find_package";}
virtual const char* GetName() const { return "find_package";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Load settings for an external project.";
}
@ -62,7 +62,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation();
virtual const char* GetFullDocumentation() const;
cmTypeMacro(cmFindPackageCommand, cmFindCommon);
protected:

View File

@ -44,17 +44,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "find_path";}
virtual const char* GetName() const {return "find_path";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Find the directory containing a file.";
}

View File

@ -43,17 +43,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "find_program";}
virtual const char* GetName() const { return "find_program";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Find an executable program.";
}

View File

@ -63,17 +63,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "foreach";}
virtual const char* GetName() const { return "foreach";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Evaluate a group of commands for each value in a list.";
}
@ -81,7 +81,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" foreach(loop_var arg1 arg2 ...)\n"

View File

@ -28,7 +28,7 @@ public:
* cmMacroHelperCommand and cmFunctionHelperCommand
* which cannot provide appropriate documentation.
*/
virtual bool ShouldAppearInDocumentation()
virtual bool ShouldAppearInDocumentation() const
{
return false;
}
@ -49,7 +49,7 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* This is called when the command is first encountered in
@ -64,12 +64,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return this->Args[0].c_str(); }
virtual const char* GetName() const { return this->Args[0].c_str(); }
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
std::string docs = "Function named: ";
docs += this->GetName();
@ -79,7 +79,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return this->GetTerseDocumentation();
}

View File

@ -61,17 +61,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "function";}
virtual const char* GetName() const { return "function";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Start recording a function for later invocation as a command.";
}
@ -79,7 +79,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" function(<name> [arg1 [arg2 [arg3 ...]]])\n"

View File

@ -32,17 +32,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "get_cmake_property";}
virtual const char* GetName() const { return "get_cmake_property";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Get a property of the CMake instance.";
}
@ -50,7 +50,7 @@ public:
/**
* Longer documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" get_cmake_property(VAR property)\n"

View File

@ -32,17 +32,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "get_directory_property";}
virtual const char* GetName() const { return "get_directory_property";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Get a property of DIRECTORY scope.";
}
@ -50,7 +50,7 @@ public:
/**
* Longer documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" get_directory_property(<variable> [DIRECTORY <dir>] <prop-name>)\n"

View File

@ -41,17 +41,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "get_filename_component";}
virtual const char* GetName() const { return "get_filename_component";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Get a specific component of a full filename.";
}
@ -59,7 +59,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" get_filename_component(<VAR> FileName\n"

View File

@ -34,17 +34,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "get_property";}
virtual const char* GetName() const { return "get_property";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Get a property.";
}
@ -52,7 +52,7 @@ public:
/**
* Longer documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" get_property(<variable>\n"

View File

@ -32,12 +32,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "get_source_file_property";}
virtual const char* GetName() const { return "get_source_file_property";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Get a property for a source file.";
}
@ -45,7 +45,7 @@ public:
/**
* Longer documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" get_source_file_property(VAR file property)\n"

View File

@ -32,12 +32,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "get_target_property";}
virtual const char* GetName() const { return "get_target_property";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Get a property from a target.";
}
@ -45,7 +45,7 @@ public:
/**
* Longer documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" get_target_property(VAR target property)\n"

View File

@ -32,12 +32,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "get_test_property";}
virtual const char* GetName() const { return "get_test_property";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Get a property of the test.";
}
@ -45,7 +45,7 @@ public:
/**
* Longer documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" get_test_property(test property VAR)\n"

View File

@ -72,12 +72,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "if";}
virtual const char* GetName() const { return "if";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Conditionally execute a group of commands.";
}
@ -85,12 +85,12 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" if(expression)\n"

View File

@ -43,17 +43,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "include";}
virtual const char* GetName() const {return "include";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Read CMake listfile code from the given file.";
}
@ -61,7 +61,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" include(<file|module> [OPTIONAL] [RESULT_VARIABLE <VAR>]\n"

View File

@ -41,12 +41,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "include_directories";}
virtual const char* GetName() const { return "include_directories";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Add include directories to the build.";
}
@ -54,7 +54,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)\n"

View File

@ -42,12 +42,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "include_external_msproject";}
virtual const char* GetName() const {return "include_external_msproject";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Include an external Microsoft project file in a workspace.";
}
@ -55,7 +55,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" include_external_msproject(projectname location\n"

View File

@ -41,12 +41,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "include_regular_expression";}
virtual const char* GetName() const {return "include_regular_expression";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Set the regular expression used for dependency checking.";
}
@ -54,7 +54,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" include_regular_expression(regex_match [regex_complain])\n"

View File

@ -41,12 +41,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "install";}
virtual const char* GetName() const { return "install";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Specify rules to run at install time.";
}
@ -54,7 +54,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
"This command generates installation rules for a project. "

View File

@ -41,12 +41,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "install_files";}
virtual const char* GetName() const { return "install_files";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Deprecated. Use the install(FILES ) command instead.";
}
@ -63,7 +63,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
"This command has been superceded by the install command. It "
@ -92,7 +92,7 @@ public:
}
/** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged()
virtual bool IsDiscouraged() const
{
return true;
}

View File

@ -41,12 +41,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "install_programs";}
virtual const char* GetName() const { return "install_programs";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Deprecated. Use the install(PROGRAMS ) command instead.";
}
@ -64,7 +64,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
"This command has been superceded by the install command. It "
@ -89,7 +89,7 @@ public:
}
/** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged()
virtual bool IsDiscouraged() const
{
return true;
}

View File

@ -42,12 +42,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "install_targets";}
virtual const char* GetName() const { return "install_targets";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Deprecated. Use the install(TARGETS ) command instead.";
}
@ -55,7 +55,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
"This command has been superceded by the install command. It "
@ -69,7 +69,7 @@ public:
}
/** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged()
virtual bool IsDiscouraged() const
{
return true;
}

View File

@ -43,12 +43,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "link_directories";}
virtual const char* GetName() const { return "link_directories";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Specify directories in which the linker will look for libraries.";
}
@ -56,7 +56,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" link_directories(directory1 directory2 ...)\n"

View File

@ -42,12 +42,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "link_libraries";}
virtual const char* GetName() const { return "link_libraries";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Deprecated. Use the target_link_libraries() command instead.";
}
@ -55,7 +55,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
"Link libraries to all targets added later.\n"
@ -70,7 +70,7 @@ public:
}
/** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged()
virtual bool IsDiscouraged() const
{
return true;
}

View File

@ -39,17 +39,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "list";}
virtual const char* GetName() const { return "list";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "List operations.";
}
@ -57,7 +57,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" list(LENGTH <list> <output variable>)\n"

View File

@ -40,12 +40,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "load_cache";}
virtual const char* GetName() const { return "load_cache";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Load in the values from another project's CMake cache.";
}
@ -53,7 +53,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" load_cache(pathToCacheFile READ_WITH_PREFIX\n"

View File

@ -69,12 +69,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return info.Name; }
virtual const char* GetName() const { return info.Name; }
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
if (this->info.GetTerseDocumentation)
{
@ -123,7 +123,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
if (this->info.GetFullDocumentation)
{

View File

@ -40,12 +40,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "load_command";}
virtual const char* GetName() const {return "load_command";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Load a command into a running CMake.";
}
@ -53,7 +53,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" load_command(COMMAND_NAME <loc1> [loc2 ...])\n"

View File

@ -28,7 +28,7 @@ public:
* cmMacroHelperCommand and cmFunctionHelperCommand
* which cannot provide appropriate documentation.
*/
virtual bool ShouldAppearInDocumentation()
virtual bool ShouldAppearInDocumentation() const
{
return false;
}
@ -50,7 +50,7 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* This is called when the command is first encountered in
@ -65,12 +65,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return this->Args[0].c_str(); }
virtual const char* GetName() const { return this->Args[0].c_str(); }
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
std::string docs = "Macro named: ";
docs += this->GetName();
@ -80,7 +80,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return this->GetTerseDocumentation();
}

View File

@ -61,17 +61,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "macro";}
virtual const char* GetName() const { return "macro";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Start recording a macro for later invocation as a command.";
}
@ -79,7 +79,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" macro(<name> [arg1 [arg2 [arg3 ...]]])\n"

View File

@ -44,17 +44,17 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "make_directory";}
virtual const char* GetName() const { return "make_directory";}
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Deprecated. Use the file(MAKE_DIRECTORY ) command instead.";
}
@ -62,7 +62,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" make_directory(directory)\n"
@ -72,7 +72,7 @@ public:
}
/** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged()
virtual bool IsDiscouraged() const
{
return true;
}

View File

@ -40,12 +40,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "mark_as_advanced";}
virtual const char* GetName() const {return "mark_as_advanced";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Mark cmake cached variables as advanced.";
}
@ -53,7 +53,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" mark_as_advanced([CLEAR|FORCE] VAR VAR2 VAR...)\n"
@ -75,7 +75,7 @@ public:
* make many of the modules usable in cmake/ctest scripts, (among them
* FindUnixMake.cmake used by the CTEST_BUILD command.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
cmTypeMacro(cmMarkAsAdvancedCommand, cmCommand);
};

View File

@ -39,17 +39,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "math";}
virtual const char* GetName() const { return "math";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Mathematical expressions.";
}
@ -57,7 +57,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" math(EXPR <output variable> <math expression>)\n"

View File

@ -39,17 +39,17 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "message";}
virtual const char* GetName() const { return "message";}
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Display a message to the user.";
}
@ -57,7 +57,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" message([STATUS|WARNING|AUTHOR_WARNING|FATAL_ERROR|SEND_ERROR]\n"

View File

@ -40,12 +40,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "option";}
virtual const char* GetName() const {return "option";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Provides an option that the user can optionally select.";
}
@ -53,7 +53,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" option(<option_variable> \"help string describing option\"\n"
@ -68,7 +68,7 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
cmTypeMacro(cmOptionCommand, cmCommand);
};

View File

@ -40,12 +40,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "output_required_files";}
virtual const char* GetName() const { return "output_required_files";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Deprecated. Approximate C preprocessor dependency scanning.";
}
@ -53,7 +53,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
"This command exists only because ancient CMake versions provided it. "
@ -67,7 +67,7 @@ public:
}
/** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged()
virtual bool IsDiscouraged() const
{
return true;
}

View File

@ -43,12 +43,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "project";}
virtual const char* GetName() const {return "project";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Set a name for the entire project.";
}
@ -56,7 +56,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" project(<projectname> [languageName1 languageName2 ... ] )\n"

View File

@ -31,7 +31,7 @@ public:
cmPropertyDefinition() { this->Chained = false; };
// is it chained?
bool IsChained() {return this->Chained; };
bool IsChained() const { return this->Chained; };
// Get the section if any
const std::string &GetDocumentationSection() const {

View File

@ -45,12 +45,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "qt_wrap_cpp";}
virtual const char* GetName() const { return "qt_wrap_cpp";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Create Qt Wrappers.";
}
@ -58,7 +58,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" qt_wrap_cpp(resultingLibraryName DestName\n"

View File

@ -43,12 +43,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "qt_wrap_ui";}
virtual const char* GetName() const { return "qt_wrap_ui";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Create Qt user interfaces Wrappers.";
}
@ -56,7 +56,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" qt_wrap_ui(resultingLibraryName HeadersDestName\n"

View File

@ -40,17 +40,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "remove";}
virtual const char* GetName() const {return "remove";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Deprecated. Use the list(REMOVE_ITEM ) command instead.";
}
@ -58,7 +58,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" remove(VAR VALUE VALUE ...)\n"
@ -68,7 +68,7 @@ public:
}
/** This command is kept for compatibility with older CMake versions. */
virtual bool IsDiscouraged()
virtual bool IsDiscouraged() const
{
return true;
}

View File

@ -42,12 +42,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "remove_definitions";}
virtual const char* GetName() const {return "remove_definitions";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Removes -D define flags added by add_definitions.";
}
@ -55,7 +55,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" remove_definitions(-DFOO -DBAR ...)\n"

View File

@ -40,17 +40,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "return";}
virtual const char* GetName() const {return "return";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Return from a file, directory or function.";
}
@ -58,7 +58,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" return()\n"

View File

@ -40,17 +40,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "separate_arguments";}
virtual const char* GetName() const {return "separate_arguments";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return
"Parse space-separated arguments into a semicolon-separated list.";
@ -59,7 +59,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" separate_arguments(<var> <UNIX|WINDOWS>_COMMAND \"<args>\")\n"

View File

@ -40,17 +40,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() {return "set";}
virtual const char* GetName() const {return "set";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Set a CMAKE variable to a given value.";
}
@ -58,7 +58,7 @@ public:
/**
* More documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" set(<variable> <value>\n"

View File

@ -32,17 +32,17 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "set_directory_properties";}
virtual const char* GetName() const { return "set_directory_properties";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Set a property of the directory.";
}
@ -58,7 +58,7 @@ public:
/**
* Longer documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" set_directory_properties(PROPERTIES prop1 value1 prop2 value2)\n"

View File

@ -34,12 +34,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "set_property";}
virtual const char* GetName() const { return "set_property";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Set a named property in a given scope.";
}
@ -47,7 +47,7 @@ public:
/**
* Longer documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" set_property(<GLOBAL |\n"
@ -86,7 +86,7 @@ public:
/**
* This determines if the command is invoked when in script mode.
*/
virtual bool IsScriptable() { return true; }
virtual bool IsScriptable() const { return true; }
cmTypeMacro(cmSetPropertyCommand, cmCommand);

View File

@ -32,12 +32,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "set_source_files_properties";}
virtual const char* GetName() const { return "set_source_files_properties";}
/**
* Succinct documentation.
*/
virtual const char* GetTerseDocumentation()
virtual const char* GetTerseDocumentation() const
{
return "Source files can have properties that affect how they are built.";
}
@ -45,7 +45,7 @@ public:
/**
* Longer documentation.
*/
virtual const char* GetFullDocumentation()
virtual const char* GetFullDocumentation() const
{
return
" set_source_files_properties([file1 [file2 [...]]]\n"

Some files were not shown because too many files have changed in this diff Show More