Commit e4382180 authored by David Cole's avatar David Cole Committed by Kitware Robot

Merge topic 'add-const-qualifiers'

737c49a3 Add 'const' qualifier to some cmCommand members
261491fe cmPropertyDefinition::IsChained is const
parents b9beb660 737c49a3
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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] "
......
......@@ -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"
......
......@@ -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);
......
......@@ -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"
......
......@@ -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"
......
......@@ -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 "
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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;
}
......