Kitware Robot
77543bde41
Convert CMake-language commands to lower case
...
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
2012-08-13 14:19:16 -04:00
Kitware Robot
7bbaa4283d
Remove trailing whitespace from most CMake and C/C++ code
...
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/ \+$//'
2012-08-13 14:18:39 -04:00
Eric NOULARD
83729f978f
Install editors helper files
2012-04-23 20:49:33 +02:00
Eric NOULARD
5b97942cbb
Enhancement of bash completion scripts given by Igor Murzov.
...
The orginal patch has been reworked in order to follow
CMake source tree layout habit.
Inspired-By: Igor Murzov <e-mail@date.by>
2012-04-23 20:46:08 +02:00
Christopher Sean Morrison
ab9824e14f
cmake-mode.el: Make indentation case-insensitive ( #12995 )
...
Convert the block open and close matching expressions to be explicitly
insensitive to case. This way it will not matter whether Emacs is
sensitive to case when evaluating 'string-match'.
2012-02-24 13:22:22 -05:00
David Cole
4f9c114dfa
Merge topic 'ImproveCPackDoc-reloaded'
...
d4b77eb
Avoid discovering system infos for documentation. Adding some path is enough.
9002f73
Fix non existent std::string::clear on VS6
02ccb32
Create getDocumentedModulesListInDir which may be used in other context.
24fbc28
Add missing section markup for CPackComponent
bafd8a9
Example of builtin variable documentation (i.e. only used in C++ source code).
543f1ad
Make the load of script documentation more efficient and dynamic.
cdbd1a9
Fix another compiler warning due to a typo
52c53de
Really avoid compiler warning about unused vars
37f90ed
Calm down compiler warning about unused var
7c82b7f
Fix potential bad memory access, thanks to Eike
62b589b
Suppress unused var, beautify code, avoid 1 extra newline.
751713f
Update bash completion file in order to handle new CPack doc options.
1629615
CPack Documentation extraction from CMake script begins to work
83e34dd
Implement simple CMake script comment markup language.
c6a0169
CPack begin the implementation of --help-command* and --help-variables*
2012-02-14 16:14:56 -05:00
Brad King
7da35e6550
cmake-mode.el: Indent after multiline argument ( #12908 )
...
After a multiline argument ending in a non-empty line e.g.
if(TEST)
set(VAR "
...")
unset(VAR)
endif()
we previously failed to indent following lines like the "unset". Use
cmake-line-starts-inside-string to keep walking back through multiline
arguments until we find an indented line.
Suggested-by: Christopher Sean Morrison <brlcad@mac.com>
2012-01-23 13:59:27 -05:00
Eric NOULARD
751713f54b
Update bash completion file in order to handle new CPack doc options.
2012-01-22 13:37:39 +01:00
Eric NOULARD
4d253d1a9d
Enhance bash completion file for cmake and ctest
...
- filter out cmake/ctest version line
- provide -R as -E completion with ctest
2012-01-03 18:12:56 +01:00
Matthias Kretz
ce013215d2
Inline help in vim with vertical split.
...
Added a small script to open a vertical split window with the output of
cmake --help-command for the word under the cursor.
2010-12-13 13:25:27 -05:00
Eric NOULARD
1715c96b3c
Improve cmake-completion (install doc, ctest -R completion)
2010-08-13 17:11:42 +02:00
Eric NOULARD
e41f813d12
Proposal for bash-completion support file
2010-08-01 14:31:32 +02:00
Bill Hoffman
3b34523bc0
Add cmake-help-command function.
2009-09-30 09:49:52 -04:00
Brad King
96afb12087
Convert CMake to OSI-approved BSD License
...
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.
2009-09-28 11:43:28 -04:00
Brad King
8597f01acd
BUG: Fix cmake-mode.el indentation cursor motion
...
This makes cursor motion in the indent function consistent with emacs
conventions. Patch from Mike Wittman. See issue #8625 .
2009-02-26 13:28:01 -05:00
Brad King
33e865c041
ENH: Add unset() command.
...
This introduces the unset() command to make it easy to unset CMake
variables, environment variables, and CMake cache variables. Previously
it was not even possible to unset ENV or CACHE variables (as in
completely remove them). Changes based on patch from Philip Lowman.
See issue #7507 .
2008-08-25 10:31:29 -04:00
Sebastien Barre
5d2b90097d
ENH: add simple function to convert all CMake commands to lowercase
2008-03-11 10:54:40 -04:00
Karthik Krishnan
25e00a332b
ENH: ~/CMake/src/Docs
...
* Additions for cmake-command highligting.
* Additions for operator-highlighting
2008-01-16 11:53:53 -05:00
Alexander Neundorf
903eaa7f0e
BUG: fix vim highlighting, see #6238
...
Alex
2008-01-14 19:20:42 -05:00
Brad King
ec05369d04
ENH: Enable indentation of FUNCTION/ENDFUNCTION blocks in emacs.
2008-01-02 17:32:58 -05:00
Alexander Neundorf
d1f4fa6bb7
STYLE: apply patch from #6166 , better cmake syntax highlighting in vim,
...
seems to fix the issues mentioned in the bug report and the rest also still
seems to be ok
Alex
2007-12-17 16:15:26 -05:00
Brad King
f75958b8cb
ENH: Adding elseif to VIM syntax and indentation files. See bug #3781 .
2006-09-23 17:09:08 -04:00
Brad King
1c429da781
ENH: Adding elseif indentation. See bug#3781.
2006-09-23 16:32:34 -04:00
Ken Martin
9336a3f876
ENH: remove old files
2006-07-28 14:20:07 -04:00
Brad King
92ea0a077c
BUG: In example .emacs code use \' for end-of-string instead of $ for end-of-line.
2006-04-26 15:54:58 -04:00
Brad King
c8e355b6a1
BUG: Mode should only be used if CMakeLists.txt is at the end of the buffer name.
2006-04-26 14:28:56 -04:00
Brad King
0a9d238def
BUG: Tabs around a function name are allowed.
2006-04-26 14:22:43 -04:00
Brad King
7b5c4abc74
ENH: Using suggestion from Stuart Herring to avoid needing a list of command names in the highlighting table.
2006-04-26 13:04:31 -04:00
Brad King
2172a64ff1
ENH: Cleaned-up mode in preparation for inclusion in emacs upstream.
2006-04-25 11:52:48 -04:00
Andy Cedilnik
9c754bfc44
BUG: Fix typo
2006-04-21 16:33:35 -04:00
Andy Cedilnik
e3d7dbd2f8
ENH: Add While support
2006-04-21 07:17:03 -04:00
Andy Cedilnik
c2aac58e21
STYLE: Add missing command
2006-04-20 10:20:53 -04:00
Andy Cedilnik
0ec43f7abd
ENH: Cleanup header and make license compatible with VIM
2006-04-18 10:32:28 -04:00
Andy Cedilnik
32cd4a8c58
ENH: Cleanup, make case insensitive, remove macro since it does not work anyway
2006-04-16 13:49:25 -04:00
Andy Cedilnik
58641b2ceb
ENH: Unify the comment
2006-04-12 21:24:15 -04:00
Andy Cedilnik
5171493586
ENH: More system variables, more operators, more commands, fix some string issues and some cmake arguments issues
2006-04-12 21:20:38 -04:00
Brad King
8de6e9557b
ENH: Added highlighting for LIST command.
2006-02-10 14:15:58 -05:00
Brad King
b8a33fb424
ENH: Added INSTALL command as a placeholder for a future generic install specification interface. Currently it supports only a SCRIPT option specifying a script to run during the install stage.
2006-02-10 13:54:36 -05:00
Brad King
44f96ff101
ENH: Adding new EXECUTE_PROCESS command that interfaces to KWSys Process Execution.
2006-02-03 16:55:38 -05:00
Ken Martin
c09a1fa799
ENH: missing get_directory_property command
2005-09-13 10:33:06 -04:00
Ken Martin
8ea0a1a237
ENH: added while command
2005-06-30 13:39:10 -04:00
Ken Martin
ff99d6885f
ENH: added while command
2005-06-30 13:27:18 -04:00
Ken Martin
26c53fe14c
ENH: modified GET_TARGET_PROPERTIES to work with all targets
2005-06-20 14:00:48 -04:00
Ken Martin
dc05f1585b
ENH: updated emacs mode to include lowercase commands and missing command ENDMACRO
2005-06-20 11:47:57 -04:00
Brad King
894fa6a8c7
ENH: Experimenting with auto-dated copyright.
2005-06-08 09:59:59 -04:00
Ken Martin
2ab429b9bf
ENH: updated commands
2005-06-02 15:14:30 -04:00
Ken Martin
a4ae84c100
ENH: updated to remove ABSTRACT_FILES and add ADD_SUBDIRECTORY
2005-06-02 14:21:46 -04:00
Brad King
419df21c06
BUG: Only count block open tokens if they are followed by an open paren.
2004-08-26 18:00:57 -04:00
Brad King
97391045bd
BUG: Fixed parsing of unquoted arguments to allow double-quotes within the argument.
2004-06-18 10:54:45 -04:00
Brad King
ece9ae97e2
BUG: Fixed identification of ( and ) tokens to avoid finding them in string literals.
2004-02-19 10:28:57 -05:00