Commit 27e78da0 authored by wiebel's avatar wiebel
Browse files

[FIX] adapted our code generator and stylechecker to the new name of the tool

parent c34fb6bf
......@@ -66,7 +66,7 @@ Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...]
<file> [file] ...
The style guidelines this tries to follow are those in
http://aristoteles.informatik.uni-leipzig.de/trac/BrainCognize/wiki/CodingStandard
http://aristoteles.informatik.uni-leipzig.de/trac/OpenWalnut/wiki/CodingStandard
Every problem is given a confidence score from 1-5, with 5 meaning we are
certain of the problem, and 1 meaning it could be a legitimate construct.
......@@ -832,24 +832,24 @@ def CheckForCompleteCommentHeader(filename, lines, error):
# dummy line at the front.
if ( not (re.match(r'//---------------------------------------------------------------------------', lines[1])
and re.match(r'//', lines[2])
and re.match(r'// Project: BrainCognize', lines[3])
and re.match(r'// Project: OpenWalnut', lines[3])
and re.match(r'//', lines[4])
and re.match(r'// Copyright 2009 ', lines[5])
and re.match(r'//', lines[6])
and re.match(r'// This file is part of BrainCognize.', lines[7])
and re.match(r'// This file is part of OpenWalnut.', lines[7])
and re.match(r'//', lines[8])
and re.match(r'// BrainCognize is free software: you can redistribute it and/or modify', lines[9])
and re.match(r'// OpenWalnut is free software: you can redistribute it and/or modify', lines[9])
and re.match(r'// it under the terms of the GNU Lesser General Public License as published by', lines[10])
and re.match(r'// the Free Software Foundation, either version 3 of the License, or', lines[11])
and re.match(r'// \(at your option\) any later version.', lines[12])
and re.match(r'//', lines[13])
and re.match(r'// BrainCognize is distributed in the hope that it will be useful,', lines[14])
and re.match(r'// OpenWalnut is distributed in the hope that it will be useful,', lines[14])
and re.match(r'// but WITHOUT ANY WARRANTY; without even the implied warranty of', lines[15])
and re.match(r'// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the', lines[16])
and re.match(r'// GNU Lesser General Public License for more details.', lines[17])
and re.match(r'//', lines[18])
and re.match(r'// You should have received a copy of the GNU Lesser General Public License', lines[19])
and re.match(r'// along with BrainCognize. If not, see <http://www.gnu.org/licenses/>.', lines[20])
and re.match(r'// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.', lines[20])
and re.match(r'//', lines[21])
and re.match(r'//---------------------------------------------------------------------------', lines[22])
and re.match(r'$', lines[23])
......
......@@ -7,31 +7,31 @@ import sys
class RawCode(object):
def __init__(self, name, attr, structors):
self._structors = structors
self._name = "B" + name
self._name = "W" + name
self._attr = attr
self._indent = " "
self._header = \
"""\
//---------------------------------------------------------------------------
//
// Project: BrainCognize
// Project: OpenWalnut
//
// Copyright 2009 SomeCopyrightowner
//
// This file is part of BrainCognize.
// This file is part of OpenWalnut.
//
// BrainCognize is free software: you can redistribute it and/or modify
// OpenWalnut is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// BrainCognize is distributed in the hope that it will be useful,
// OpenWalnut is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with BrainCognize. If not, see <http://www.gnu.org/licenses/>.
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
//
//---------------------------------------------------------------------------
......@@ -197,7 +197,7 @@ def main():
synopsis = "\n\t%prog [options] Classname"
synopsis += "\n\t%prog --help\n"
synopsis += "Example:"
synopsis += "\n\t%prog --class --header --member=int,plistId --member=BSomeOtherClass,myMemeberVar BSomeClass"
synopsis += "\n\t%prog --class --header --member=int,plistId --member=WSomeOtherClass,myMemeberVar WSomeClass"
synopsis += "\n\n%prog automatically writes the code to the corresponding files"
synopsis += "\n(cpp, h) and exists if it already exists."
parser = OptionParser(usage=synopsis, version="%prog 0.0_pre_alpha (USE AT YOUR OWN RISK)")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment