summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-04-02 07:40:59 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-04-02 07:40:59 +0000
commit4b884785f18d25196c337dee8f237e181e279652 (patch)
treed7a021b1344dd9ad91fa09d98ef0c837b83e995a /scripts
parent897d489608f37877f2d4185eb6e19c8601957d32 (diff)
add gprof tags - cpplint_to_cppcheckxml.py fixes
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/xunit@533 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: fd6945efd5d63d78fd1f5120bf708a3aebdb90f5
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cpplint_to_cppcheckxml.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/cpplint_to_cppcheckxml.py b/scripts/cpplint_to_cppcheckxml.py
index 3d553a62..2447178f 100755
--- a/scripts/cpplint_to_cppcheckxml.py
+++ b/scripts/cpplint_to_cppcheckxml.py
@@ -30,8 +30,8 @@ def parse():
# VR : sys.stderr.write('''<results>\n''')
# Add from VR + [
sys.stderr.write('''<results version="2">\n''')
- sys.stderr.write('''<cppcheck version="1.63"/>\n''')
- sys.stderr.write('''<errors>\n''')
+ sys.stderr.write(''' <cppcheck version="1.63"/>\n''')
+ sys.stderr.write(''' <errors>\n''')
# -]
# Do line-by-line conversion
@@ -48,7 +48,9 @@ def parse():
severity = cpplint_score_to_cppcheck_severity(int(score))
# VR : sys.stderr.write('''<error file="%s" line="%s" id="%s" severity="%s" msg="%s"/>\n'''%(fname, lineno, label, severity, msg))
# Add from VR + [
- sys.stderr.write('''<error file="%s" line="%s" id="%s" severity="%s" msg="%s"/>\n</error>\n'''%(fname, lineno, label, severity, msg))
+ sys.stderr.write(''' <error id="%s" severity="%s" msg="%s"/>\n'''%(label, severity, msg))
+ sys.stderr.write(''' <location file="%s" line="%s"/>\n'''%(fname, lineno))
+ sys.stderr.write(''' </error>\n'''%(fname, lineno))
# -]
# Write footer