[cmake-commits] alex committed CMakeLists.txt 1.1 1.2
CMakeMoreChecks.kws.xml.in NONE 1.1
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Aug 31 14:07:55 EDT 2007
Update of /cvsroot/CMake/CMake/Utilities/KWStyle
In directory public:/mounts/ram/cvs-serv29648
Modified Files:
CMakeLists.txt
Added Files:
CMakeMoreChecks.kws.xml.in
Log Message:
STYLE: add makefile target MoreStyleChecks, which runs KWStyle with more
checks enabled and creates the html files.
Alex
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Utilities/KWStyle/CMakeLists.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CMakeLists.txt 10 May 2007 19:13:52 -0000 1.1
+++ CMakeLists.txt 31 Aug 2007 18:07:53 -0000 1.2
@@ -26,6 +26,8 @@
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/Utilities/KWStyle/CMake.kws.xml.in
${CMAKE_BINARY_DIR}/CMake.kws.xml)
+ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/Utilities/KWStyle/CMakeMoreChecks.kws.xml.in
+ ${CMAKE_BINARY_DIR}/CMakeMoreChecks.kws.xml)
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/Utilities/KWStyle/CMakeFiles.txt.in
${CMAKE_BINARY_DIR}/CMakeKWSFiles.txt)
@@ -36,6 +38,13 @@
ARGS -xml ${CMAKE_BINARY_DIR}/CMake.kws.xml -o ${CMAKE_SOURCE_DIR}/Utilities/KWStyle/CMakeOverwrite.txt -v ${KWSTYLE_ARGUMENTS} -D ${CMAKE_BINARY_DIR}/CMakeKWSFiles.txt
COMMENT "Coding Style Checker"
)
+
+ ADD_CUSTOM_TARGET(MoreStyleChecks
+ COMMAND ${KWSTYLE_EXECUTABLE}
+ -xml ${CMAKE_BINARY_DIR}/CMakeMoreChecks.kws.xml -html ${CMAKE_BINARY_DIR}/html -o ${CMAKE_SOURCE_DIR}/Utilities/KWStyle/CMakeOverwrite.txt -v ${KWSTYLE_ARGUMENTS} -D ${CMAKE_BINARY_DIR}/CMakeKWSFiles.txt
+ COMMENT "Coding Style Checker, more checks enabled"
+ )
+
ADD_CUSTOM_TARGET(StyleCheck DEPENDS ${CMAKE_BINARY_DIR}/KWStyleReport.txt)
ENDIF(CMAKE_USE_KWSTYLE)
--- NEW FILE: CMakeMoreChecks.kws.xml.in ---
<?xml version="1.0" encoding="iso-8859-1"?>
<Description>
<ErrorThreshold>10</ErrorThreshold>
<LineLength>79</LineLength>
<Header>"@CMAKE_SOURCE_DIR@/Utilities/KWStyle/Headers",false,true</Header>
<Functions>
<regex>^(cm)?[A-Z]</regex>
<length>200</length>
</Functions>
<InternalVariables>
<regex>^[A-Z]</regex>
<alignment>0</alignment>
</InternalVariables>
<SemicolonSpace>0</SemicolonSpace>
<DeclarationOrder>
<public>0</public>
<protected>1</protected>
<private>2</private>
</DeclarationOrder>
<Tabs>1</Tabs>
<EmptyLines>4</EmptyLines>
<StatementPerLine>
<maxNumber>1</maxNumber>
<checkInline>0</checkInline>
</StatementPerLine>
<VariablePerLine>
<maxNumber>1</maxNumber>
</VariablePerLine>
<BadCharacters>true</BadCharacters>
</Description>
More information about the Cmake-commits
mailing list