tabs to spaces, remove trailing spaces and extra empty lines at the end of files
This commit is contained in:
parent
5101243c64
commit
9b5c245899
|
@ -55,4 +55,3 @@ Install pcre:
|
||||||
Ensure /path/to/pcre.h is in CXXFLAGS, e.g:
|
Ensure /path/to/pcre.h is in CXXFLAGS, e.g:
|
||||||
|
|
||||||
export CXXFLAGS=${CXXFLAGS}:/opt/local/include
|
export CXXFLAGS=${CXXFLAGS}:/opt/local/include
|
||||||
|
|
||||||
|
|
|
@ -73,4 +73,3 @@ git archive --format=tar --prefix=$releasename/ $tag | bzip2 > ~/$releasename.ta
|
||||||
git archive --format=zip -9 --prefix=$releasename/ $tag > ~/$releasename.zip
|
git archive --format=zip -9 --prefix=$releasename/ $tag > ~/$releasename.zip
|
||||||
|
|
||||||
scp ../$releasename.* danielmarjamaki,cppcheck@frs.sourceforge.net:/home/frs/project/c/cp/cppcheck/cppcheck/$tag/
|
scp ../$releasename.* danielmarjamaki,cppcheck@frs.sourceforge.net:/home/frs/project/c/cp/cppcheck/cppcheck/$tag/
|
||||||
|
|
||||||
|
|
|
@ -7,20 +7,19 @@
|
||||||
# cppcheck lib folder
|
# cppcheck lib folder
|
||||||
cppchecklib=cppcheck-$1/lib
|
cppchecklib=cppcheck-$1/lib
|
||||||
|
|
||||||
echo Download..
|
echo Downloading...
|
||||||
wget https://downloads.sourceforge.net/project/cppcheck/cppcheck/$1/cppcheck-$1.tar.bz2
|
wget https://downloads.sourceforge.net/project/cppcheck/cppcheck/$1/cppcheck-$1.tar.bz2
|
||||||
|
|
||||||
echo Unpack..
|
echo Unpacking...
|
||||||
tar xjvf cppcheck-$1.tar.bz2
|
tar xjvf cppcheck-$1.tar.bz2
|
||||||
rm cppcheck-$1.tar.bz2
|
rm cppcheck-$1.tar.bz2
|
||||||
rm cppcheck-$1/Changelog
|
rm cppcheck-$1/Changelog
|
||||||
|
|
||||||
echo Building..
|
echo Building...
|
||||||
g++ -O2 -o democlient-$1.cgi -I$cppchecklib cppcheck-$1/democlient/democlient.cpp $cppchecklib/*.cpp
|
g++ -O2 -o democlient-$1.cgi -I$cppchecklib cppcheck-$1/democlient/democlient.cpp $cppchecklib/*.cpp
|
||||||
|
|
||||||
echo Copy cgi to webspace..
|
echo Copy cgi to webspace...
|
||||||
cp democlient-$1.cgi /home/project-web/cppcheck/cgi-bin/democlient.cgi
|
cp democlient-$1.cgi /home/project-web/cppcheck/cgi-bin/democlient.cgi
|
||||||
chmod +rx /home/project-web/cppcheck/cgi-bin/democlient.cgi
|
chmod +rx /home/project-web/cppcheck/cgi-bin/democlient.cgi
|
||||||
|
|
||||||
echo Done!
|
echo Done!
|
||||||
|
|
||||||
|
|
|
@ -143,4 +143,4 @@ add Cppcheck as an external tool.</p>
|
||||||
</div> <!-- .wrap -->
|
</div> <!-- .wrap -->
|
||||||
</div> <!-- #content -->
|
</div> <!-- #content -->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -16,104 +16,104 @@ with syntax highlighted source code.
|
||||||
|
|
||||||
STYLE_FILE = """
|
STYLE_FILE = """
|
||||||
body.body {
|
body.body {
|
||||||
font-family: Arial;
|
font-family: Arial;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.error {
|
.error {
|
||||||
font-family: Arial;
|
font-family: Arial;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
background-color: #ffb7b7;
|
background-color: #ffb7b7;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#page-header {
|
#page-header {
|
||||||
clear: both;
|
clear: both;
|
||||||
width: 900px;
|
width: 900px;
|
||||||
margin: 20px auto 0px auto;
|
margin: 20px auto 0px auto;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
border-bottom-width: 2px;
|
border-bottom-width: 2px;
|
||||||
border-bottom-style: solid;
|
border-bottom-style: solid;
|
||||||
border-bottom-color: #aaaaaa;
|
border-bottom-color: #aaaaaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
#page {
|
#page {
|
||||||
width: 860px;
|
width: 860px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
border-left-width: 2px;
|
border-left-width: 2px;
|
||||||
border-left-style: solid;
|
border-left-style: solid;
|
||||||
border-left-color: #aaaaaa;
|
border-left-color: #aaaaaa;
|
||||||
border-right-width: 2px;
|
border-right-width: 2px;
|
||||||
border-right-style: solid;
|
border-right-style: solid;
|
||||||
border-right-color: #aaaaaa;
|
border-right-color: #aaaaaa;
|
||||||
background-color: White;
|
background-color: White;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#page-footer {
|
#page-footer {
|
||||||
clear: both;
|
clear: both;
|
||||||
width: 900px;
|
width: 900px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
border-top-width: 2px;
|
border-top-width: 2px;
|
||||||
border-top-style: solid;
|
border-top-style: solid;
|
||||||
border-top-color: #aaaaaa;
|
border-top-color: #aaaaaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header {
|
#header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 70px;
|
height: 70px;
|
||||||
background-image: url(logo.png);
|
background-image: url(logo.png);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: left top;
|
background-position: left top;
|
||||||
|
|
||||||
border-bottom-style: solid;
|
border-bottom-style: solid;
|
||||||
border-bottom-width: thin;
|
border-bottom-width: thin;
|
||||||
border-bottom-color: #aaaaaa;
|
border-bottom-color: #aaaaaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu {
|
#menu {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
float: left;
|
float: left;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu > a {
|
#menu > a {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content {
|
#content {
|
||||||
float: left;
|
float: left;
|
||||||
width: 720px;
|
width: 720px;
|
||||||
|
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
padding: 0px 10px 10px 10px;
|
padding: 0px 10px 10px 10px;
|
||||||
|
|
||||||
border-left-style: solid;
|
border-left-style: solid;
|
||||||
border-left-width: thin;
|
border-left-width: thin;
|
||||||
border-left-color: #aaaaaa;
|
border-left-color: #aaaaaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer {
|
#footer {
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
border-top-style: solid;
|
border-top-style: solid;
|
||||||
border-top-width: thin;
|
border-top-width: thin;
|
||||||
border-top-color: #aaaaaa;
|
border-top-color: #aaaaaa;
|
||||||
clear: both;
|
clear: both;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer > div {
|
#footer > div {
|
||||||
float: left;
|
float: left;
|
||||||
width: 33%;
|
width: 33%;
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -4,4 +4,3 @@ xsltproc -o manual.html /usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.x
|
||||||
|
|
||||||
xsltproc -o intermediate-fo-file.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl manual.docbook
|
xsltproc -o intermediate-fo-file.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl manual.docbook
|
||||||
fop -pdf manual.pdf -fo intermediate-fo-file.fo
|
fop -pdf manual.pdf -fo intermediate-fo-file.fo
|
||||||
|
|
||||||
|
|
|
@ -92,4 +92,3 @@ If you want to use --rule and --rule-file then dependencies are needed:
|
||||||
## Webpage ##
|
## Webpage ##
|
||||||
|
|
||||||
http://cppcheck.sourceforge.net/
|
http://cppcheck.sourceforge.net/
|
||||||
|
|
||||||
|
|
|
@ -80,4 +80,3 @@ Cross compiling Win32 (CLI) version of Cppcheck in Linux
|
||||||
Webpage
|
Webpage
|
||||||
|
|
||||||
http://cppcheck.sourceforge.net/
|
http://cppcheck.sourceforge.net/
|
||||||
|
|
||||||
|
|
|
@ -60,4 +60,3 @@ To update translations:
|
||||||
To compile translations:
|
To compile translations:
|
||||||
- run lrelease gui.pro to compile .ts files to .qm files which are used by the
|
- run lrelease gui.pro to compile .ts files to .qm files which are used by the
|
||||||
executable.
|
executable.
|
||||||
|
|
||||||
|
|
|
@ -10,25 +10,25 @@
|
||||||
<rule version="1">
|
<rule version="1">
|
||||||
<pattern>(?U)Token :: Match \([^,]+,\s+"[^%|!\[\]]+"</pattern>
|
<pattern>(?U)Token :: Match \([^,]+,\s+"[^%|!\[\]]+"</pattern>
|
||||||
<message>
|
<message>
|
||||||
<id>UseTokensimpleMatch</id>
|
<id>UseTokensimpleMatch</id>
|
||||||
<severity>error</severity>
|
<severity>error</severity>
|
||||||
<summary>Token::simpleMatch should be used to match tokens
|
<summary>Token::simpleMatch should be used to match tokens
|
||||||
without special pattern requirements.</summary>
|
without special pattern requirements.</summary>
|
||||||
</message>
|
</message>
|
||||||
</rule>
|
</rule>
|
||||||
<rule version="1">
|
<rule version="1">
|
||||||
<pattern>\b[\w_]+ \. tokAt \( 0 \)</pattern>
|
<pattern>\b[\w_]+ \. tokAt \( 0 \)</pattern>
|
||||||
<message>
|
<message>
|
||||||
<id>TokentokAt0</id>
|
<id>TokentokAt0</id>
|
||||||
<severity>error</severity>
|
<severity>error</severity>
|
||||||
<summary>tok->tokAt(0) is a slow way to say tok.</summary>
|
<summary>tok->tokAt(0) is a slow way to say tok.</summary>
|
||||||
</message>
|
</message>
|
||||||
</rule>
|
</rule>
|
||||||
<rule version="1">
|
<rule version="1">
|
||||||
<pattern>\b[\w_]+ \. strAt \( 0 \)</pattern>
|
<pattern>\b[\w_]+ \. strAt \( 0 \)</pattern>
|
||||||
<message>
|
<message>
|
||||||
<id>TokenstrAt0</id>
|
<id>TokenstrAt0</id>
|
||||||
<severity>error</severity>
|
<severity>error</severity>
|
||||||
<summary>tok->strAt(0) is a slow way to say tok->str()</summary>
|
<summary>tok->strAt(0) is a slow way to say tok->str()</summary>
|
||||||
</message>
|
</message>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# The version check in this script is used to avoid commit battles
|
# The version check in this script is used to avoid commit battles
|
||||||
# between different developers that use different astyle versions as
|
# between different developers that use different astyle versions as
|
||||||
# different versions might have different output (this has happened in
|
# different versions might have different output (this has happened in
|
||||||
# the past).
|
# the past).
|
||||||
|
@ -9,8 +9,8 @@
|
||||||
ASTYLE_VERSION="Artistic Style Version 2."
|
ASTYLE_VERSION="Artistic Style Version 2."
|
||||||
|
|
||||||
if [[ "`astyle --version 2>&1`" != ${ASTYLE_VERSION}* ]]; then
|
if [[ "`astyle --version 2>&1`" != ${ASTYLE_VERSION}* ]]; then
|
||||||
echo "You should use: ${ASTYLE_VERSION}";
|
echo "You should use: ${ASTYLE_VERSION}";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
style="--style=stroustrup --indent=spaces=4 --indent-namespaces --lineend=linux --min-conditional-indent=0"
|
style="--style=stroustrup --indent=spaces=4 --indent-namespaces --lineend=linux --min-conditional-indent=0"
|
||||||
|
@ -30,4 +30,3 @@ astyle $style $options test/*.h
|
||||||
astyle $style $options tools/*.cpp
|
astyle $style $options tools/*.cpp
|
||||||
astyle $style $options --recursive "samples/*.c"
|
astyle $style $options --recursive "samples/*.c"
|
||||||
astyle $style $options --recursive "samples/*.cpp"
|
astyle $style $options --recursive "samples/*.cpp"
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ class Extract:
|
||||||
if res != None:
|
if res != None:
|
||||||
testclass = res.group(1)
|
testclass = res.group(1)
|
||||||
|
|
||||||
# end of testclass
|
# end of testclass
|
||||||
if re.match('};', line) != None:
|
if re.match('};', line) != None:
|
||||||
testclass = None
|
testclass = None
|
||||||
|
|
||||||
|
@ -230,8 +230,8 @@ if filename != None:
|
||||||
|
|
||||||
# create files for each functionName
|
# create files for each functionName
|
||||||
for functionName in functionNames:
|
for functionName in functionNames:
|
||||||
writeHtmlFile(e.nodes,
|
writeHtmlFile(e.nodes,
|
||||||
functionName,
|
functionName,
|
||||||
htmldir + 'errors-' + functionName + '.htm',
|
htmldir + 'errors-' + functionName + '.htm',
|
||||||
True)
|
True)
|
||||||
writeHtmlFile(e.nodes,
|
writeHtmlFile(e.nodes,
|
||||||
|
@ -278,4 +278,3 @@ if filename != None:
|
||||||
else:
|
else:
|
||||||
for node in e.nodes:
|
for node in e.nodes:
|
||||||
print node['functionName']
|
print node['functionName']
|
||||||
|
|
||||||
|
|
|
@ -14,4 +14,3 @@ mv doxyoutput/html devinfo/doxyoutput
|
||||||
~/pmd-4.2.6/bin/cpd.sh lib/ > devinfo/cpd.txt
|
~/pmd-4.2.6/bin/cpd.sh lib/ > devinfo/cpd.txt
|
||||||
|
|
||||||
scp -r devinfo/ danielmarjamaki,cppcheck@web.sourceforge.net:/home/groups/c/cp/cppcheck/htdocs
|
scp -r devinfo/ danielmarjamaki,cppcheck@web.sourceforge.net:/home/groups/c/cp/cppcheck/htdocs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue