summaryrefslogtreecommitdiffstats
path: root/Source/cmCommand.h
Commit message (Collapse)AuthorAgeFilesLines
* Simplify CMake per-source license noticesBrad King2016-09-271-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* use CM_NULLPTRDaniel Pfeifer2016-06-281-1/+1
|
* mark functions with CM_OVERRIDEDaniel Pfeifer2016-06-271-1/+1
|
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-41/+30
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Format include directive blocks and ordering with clang-formatBrad King2016-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sort include directives within each block (separated by a blank line) in lexicographic order (except to prioritize `sys/types.h` first). First run `clang-format` with the config file: --- SortIncludes: false ... Commit the result temporarily. Then run `clang-format` again with: --- SortIncludes: true IncludeCategories: - Regex: 'sys/types.h' Priority: -1 ... Commit the result temporarily. Start a new branch and cherry-pick the second commit. Manually resolve conflicts to preserve indentation of re-ordered includes. This cleans up the include ordering without changing any other style. Use the following command to run `clang-format`: $ git ls-files -z -- \ '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' | egrep -z -v '(Lexer|Parser|ParserHelper)\.' | egrep -z -v '^Source/cm_sha2' | egrep -z -v '^Source/(kwsys|CursesDialog/form)/' | egrep -z -v '^Utilities/(KW|cm).*/' | egrep -z -v '^Tests/Module/GenerateExportHeader' | egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' | xargs -0 clang-format -i This selects source files that do not come from a third-party. Inspired-by: Daniel Pfeifer <daniel@pfeifer-mail.de>
* Source: Stabilize include orderBrad King2016-04-291-0/+1
| | | | | Each source file has a logical first include file. Include it in an isolated block so that tools that sort includes do not move them.
* cmCommand: Remove IsDiscouraged interface.Stephen Kelly2015-09-271-9/+0
| | | | | This used to affect documentation, but does not affect the Sphinx documentation.
* Port to static cmPolicies API.Stephen Kelly2015-05-041-1/+1
|
* Replace 'foo.length() == 0' pattern with foo.empty().Stephen Kelly2015-01-181-1/+1
|
* Remove extra semicolons from C++ code.Stephen Kelly2014-04-031-1/+1
| | | | | Clang based tools running over the code complain about these, but clang has a fixit for removing them.
* stringapi: Command namesBen Boeckel2014-03-081-1/+1
|
* stringapi: Accept strings when setting command errorsBen Boeckel2014-03-081-1/+1
|
* Add infrastructure for policies that disallow commandsBrad King2013-10-221-0/+19
| | | | | | | | Add cmCommand::Disallowed helper to check the setting of a policy that disallows the command. Add a RunCMake.DisallowedCommands test placeholder. Add a Help/policy/DISALLOWED_COMMAND.txt file for inclusion by each policy document to avoid duplication of the common text.
* Drop builtin command documentationBrad King2013-10-161-10/+0
| | | | | Drop all GetTerseDocumentation and GetFullDocumentation methods from commands. The command documentation is now in Help/command/*.rst files.
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-11/+11
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* Add 'const' qualifier to some cmCommand membersYury G. Kudryashov2012-02-291-7/+7
| | | | | Use const_cast for the special case in cmFindBase where GetFullDocumentation calls GenerateDocumentation.
* CPack Documentation extraction from CMake script begins to workEric NOULARD2012-01-221-0/+11
| | | | | | | | | | - Enhance extract doc parser. Seems robust now. The legacy module documentation parser works as before ignoring the new markup. - Proof of concept for CPack (generic), CPack RPM and CPack Deb generator for macro and variables. Try cpack --help-command and cpack --help-variables
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* ENH: Keep only FinalPass commands in memoryBrad King2009-07-241-0/+5
| | | | | | In cmMakefile we save all invoked commands so that FinalPass can be called on them later. Most commands have no final pass, so we should keep only the few that do.
* BUG: Skip a command if its arguments fail to parseBrad King2008-09-241-1/+6
| | | | | | | | If the arguments to a command fail to parse correctly due to a syntax error, the command should not be invoked. This avoids problems created by processing of commands with bad arguments. Even though the build system will not be generated, the command may affect files on disk that persist across CMake runs.
* ENH: add first cut and policies still need to add the doc supportKen Martin2008-03-011-8/+0
|
* ENH: add return and break support to cmake, also change basic command ↵Ken Martin2008-01-231-3/+5
| | | | invocation signature to be able to return extra informaiton via the cmExecutionStatus class
* ENH: add framework for unified handling of arguments to cmake commands,Alexander Neundorf2007-07-021-0/+2
| | | | | | example see cmExportCommand.cxx Alex
* ENH: Patch from Alex to add IsDiscouraged method for future use in ↵Brad King2006-08-311-0/+9
| | | | generating separate documentation for old commands. Also modified documentation of MAKE_DIRECTORY and REMOVE commands to indicate they should not be used.
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-18/+18
|
* ENH: Add superclass for all commands and handlers. Improve handlers to have ↵Andy Cedilnik2005-06-171-45/+4
| | | | initialization code, and start initializing ctest when start is invoked
* COMP: Fix build error on WindowsAndy Cedilnik2005-06-161-2/+2
|
* ENH: Add classname to commandsAndy Cedilnik2005-06-161-0/+6
|
* ENH: Add accessor for Makefile and make SetError publicAndy Cedilnik2005-06-151-1/+6
|
* ENH: big change that includes immediate subdir support, removing the notion ↵Ken Martin2005-03-181-9/+0
| | | | of inherited commands, makefiles no longer read in the parent makefiles but instead inherit thier parent makefiles current settings
* ENH: Start includding the scripting supportAndy Cedilnik2003-10-291-0/+8
|
* removed redundent includesKen Martin2003-08-101-1/+0
|
* ENH: Initial framework for deprecated commandsAndy Cedilnik2003-07-211-0/+8
|
* ENH: Moved ExpandListVariables out of individual commands. Argument ↵Brad King2002-12-111-2/+16
| | | | evaluation rules are now very consistent. Double quotes can always be used to create exactly one argument, regardless of contents inside.
* ENH: Added reference to Copyright.txt. Removed old reference to ITK ↵Brad King2002-10-231-3/+3
| | | | copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
* removed some includesKen Martin2002-09-271-1/+1
|
* ENH:Updated copyrightWill Schroeder2002-01-211-30/+6
|
* ENH: change InitialPass to take a const reference to the argument string, to ↵Bill Hoffman2001-09-201-1/+1
| | | | avoid changes to the file cache
* ERR:Spelling mistakeWill Schroeder2001-07-061-1/+1
|
* ENH: rename Invoke to InitialPassBill Hoffman2001-06-061-1/+1
|
* ENH: change find library and find program to look for more than one nameBill Hoffman2001-05-091-1/+1
|
* ENH:New copyrightWill Schroeder2001-04-271-5/+30
|
* ENH: Improved error handling when GetError is called on a command that has ↵Brad King2001-03-121-1/+8
| | | | not called SetError.
* ENH: Added safe downcast support (without RTTI) to cmCommand and its subclasses.Brad King2001-02-261-0/+37
|
* ERR: Fixed warnings (int->unsigned int and a few others).Brad King2001-02-231-0/+5
|
* ENH: first pass at cache, clean up the unix generator, clean up configure.in ↵Bill Hoffman2001-02-191-6/+2
| | | | some
* ENH:Reworked CMake for consistencyWill Schroeder2001-01-181-0/+138