summaryrefslogtreecommitdiffstats
path: root/Tests/LoadCommand/CMakeCommands
Commit message (Collapse)AuthorAgeFilesLines
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-90/+56
| | | | | | | | | | | | | 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-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-2/+2
| | | | | | | | | | | | | | | | | 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-9/+9
| | | | | | | | | | | | | | | | | 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-131-20/+20
| | | | | | | | | | | | | | | | | 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/ \+$//'
* LoadCommand test: cleanupRolf Eike Beer2012-01-201-3/+0
| | | | | | This removes some useless checking. The results of these things are never properly checked so they should not count as testcases. At the end they only needlessly clutter the output.
* ENH: Remove CMAKE_ANSI_CFLAGS from testsBrad King2009-07-081-2/+0
| | | | | As of CMake 2.6 this variable is not defined, and the ANSI flags for the HP compiler are simply hard-coded in the default C flags.
* ENH: preclean some warningsKen Martin2008-03-251-0/+1
|
* ENH: make properties a bit more formal with documentation and chainingKen Martin2006-12-071-2/+8
|
* ENH: do not use c++ comments in c codeBill Hoffman2006-07-261-1/+1
|
* BUG: remove command causing issues with mid build reruns of cmake on vs70Ken Martin2006-07-251-3/+0
|
* ENH: trying a slight changeKen Martin2006-07-251-3/+3
|
* BUG: remove c++commentsKen Martin2006-07-251-2/+2
|
* BUG: temp fixKen Martin2006-07-241-1/+1
|
* ENH: add more coverageKen Martin2006-07-241-0/+18
|
* BUG: work around XCode issueKen Martin2006-07-211-1/+1
|
* ENH: increase coverage in a couple placesKen Martin2006-07-211-3/+31
|
* ENH: add support for watcom wmake and wcl386Bill Hoffman2006-01-172-7/+10
|
* ENH: increase coverage in loaded commandsKen Martin2005-09-201-3/+19
|
* ENH: Remove warningAndy Cedilnik2004-05-031-0/+4
|
* ENH: fix warnings in testBill Hoffman2004-05-031-7/+8
|
* ENH: remove warnings in testsBill Hoffman2004-05-021-1/+1
|
* ENH: More coverageAndy Cedilnik2003-07-221-0/+81
|
* use module on all platformsBill Hoffman2003-01-151-5/+2
|
* new plugin APIKen Martin2002-10-081-1/+1
|
* Fix problemAndy Cedilnik2002-09-231-1/+6
|
* Some minor fixes for macAndy Cedilnik2002-09-232-4/+4
|
* cleanupKen Martin2002-09-231-5/+1
|
* Fix test so that it will work on HPAndy Cedilnik2002-09-231-0/+3
|
* removed c++ style commentsKen Martin2002-09-201-4/+4
|
* test passing CMAKE_FLAGSKen Martin2002-09-182-0/+6
|
* added DestructorKen Martin2002-09-171-0/+10
|
* load command testKen Martin2002-09-162-0/+66