summaryrefslogtreecommitdiffstats
path: root/Utilities/KWStyle
Commit message (Collapse)AuthorAgeFilesLines
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-3/+3
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Convert CMake-language commands to lower caseKitware Robot2012-08-131-30/+30
| | | | | | | | | | | | | | | | | Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-132-2/+2
| | | | | | | | | | | | | | | | | 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/ \+$//'
* KWStyle Test: Activate by default if KWStyle is foundDavid Cole2011-09-071-6/+22
| | | | | | | | Re-arrange the logic to look for KWStyle in the typical install locations and under the Dashboards/Support directory for the typical CMake dashboard machine. If it's there, turn on CMAKE_USE_KWSTYLE by default, thereby activating the KWStyle related custom targets and the KWStyle test.
* Refer to self with CMake_(SOURCE|BINARY)_DIR (#10046)Brad King2010-07-294-24/+24
| | | | | This is good practice, and is necessary to support building CMake as a subdirectory of another project.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-282-14/+21
| | | | | | | 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: 80 is fine, i guess notBill Hoffman2009-06-261-1/+1
|
* ENH: 80 is fineBill Hoffman2009-06-261-1/+1
|
* ENH: add more exclusions for kwstyleBill Hoffman2007-10-051-0/+2
|
* STYLE: disable header checkAlexander Neundorf2007-08-311-1/+1
| | | | Alex
* STYLE: add makefile target MoreStyleChecks, which runs KWStyle with moreAlexander Neundorf2007-08-312-0/+39
| | | | | | checks enabled and creates the html files. Alex
* ENH: add quotes around the file names, so kwstyle can handle it if there areAlexander Neundorf2007-07-201-12/+12
| | | | | | spaces in the path Alex
* ENH: try to tone down kwstyleBill Hoffman2007-05-191-0/+2
|
* ENH: add KWStyle supportBill Hoffman2007-05-105-0/+79