Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenWalnut Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
44
Issues
44
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
8f018cae
Commit
8f018cae
authored
Apr 08, 2010
by
Christian Heine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] split long parameter list for brainlint
parent
8f35249d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
src/CMakeLists.txt
src/CMakeLists.txt
+20
-10
No files found.
src/CMakeLists.txt
View file @
8f018cae
...
...
@@ -228,20 +228,30 @@ FOREACH( dirname ${EXCLUDE_DIRS} )
LIST
(
REMOVE_ITEM STYLE_CPP
${
fname
}
)
ENDFOREACH
(
fname
)
ENDFOREACH
(
dirname
)
IF
(
CMAKE_COLOR_MAKEFILE
)
ADD_CUSTOM_TARGET
(
stylecheck
COMMAND
${
PROJECT_SOURCE_DIR
}
/../tools/brainlint.py --color
${
STYLE_CPP
}
${
STYLE_H
}
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
COMMENT
"Check if code complies to CodingStandard"
)
SET
(
STYLECHECK_OPTIONS
"--color"
)
ELSE
()
SET
(
STYLECHECK_OPTIONS
""
)
ENDIF
()
IF
(
CMAKE_HOST_WIN32
)
SET
(
XARGS_OPTIONS
"-n 128"
)
ELSE
()
ADD_CUSTOM_TARGET
(
stylecheck
COMMAND
${
PROJECT_SOURCE_DIR
}
/../tools/brainlint.py
${
STYLE_CPP
}
${
STYLE_H
}
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
COMMENT
"Check if code complies to CodingStandard and use noncolored output for violation messages"
)
SET
(
XARGS_OPTIONS
""
)
ENDIF
()
FILE
(
WRITE
${
PROJECT_BINARY_DIR
}
/brainlintlist
""
)
FOREACH
(
fname
${
STYLE_CPP
}
${
STYLE_H
}
)
FILE
(
APPEND
${
PROJECT_BINARY_DIR
}
/brainlintlist
"
${
fname
}
\n
"
)
ENDFOREACH
()
ADD_CUSTOM_TARGET
(
stylecheck
COMMAND cat
${
PROJECT_BINARY_DIR
}
/brainlintlist | xargs
${
XARGS_OPTIONS
}
${
PROJECT_SOURCE_DIR
}
/../tools/brainlint.py
${
STYLECHECK_OPTIONS
}
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
COMMENT
"Check if code complies to CodingStandard"
)
#-------------------------------------------------------------------------------------------------------------
# Writes information about the revision of the current code to a file
ADD_CUSTOM_TARGET
(
identify
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment