Skip to content

Commit

Permalink
cr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jmecosta committed Apr 9, 2016
1 parent 7de8cbb commit f83feea
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,7 @@ BigInteger evalFunctionlikeMacro(AstNode exprAst) {
String macroName = exprAst.getChild(0).getTokenValue(); //@toto deprecated
List<Token> tokens = exprAst.getTokens();
List<Token> restTokens = tokens.subList(1, tokens.size());
String value = "";

value = preprocessor.expandFunctionLikeMacro(macroName, restTokens);
String value = preprocessor.expandFunctionLikeMacro(macroName, restTokens);

if (value == null || "".equals(value)) {
LOG.error("Undefined functionlike macro '{}' assuming 0", macroName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public BullseyeParser(final String baseDir) {
@Override
public void processReport(final Project project, final SensorContext context, File report, final Map<String, CoverageMeasuresBuilder> coverageData)
throws XMLStreamException {
CxxUtils.LOG.debug("Parsing 'Bullseye' format");
StaxParser topLevelparser = new StaxParser(new StaxParser.XmlStreamHandler() {
/**
* {@inheritDoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public CoberturaParser(final String baseDir) {
@Override
public void processReport(final Project project, final SensorContext context, File report, final Map<String, CoverageMeasuresBuilder> coverageData)
throws XMLStreamException {
CxxUtils.LOG.debug("Parsing 'Cobertura' format");
StaxParser parser = new StaxParser(new StaxParser.XmlStreamHandler() {
/**
* {@inheritDoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public VisualStudioParser(final String baseDir) {
@Override
public void processReport(final Project project, final SensorContext context, File report, final Map<String, CoverageMeasuresBuilder> coverageData)
throws XMLStreamException {
CxxUtils.LOG.debug("Parsing 'Visual Studio' format");
StaxParser parser = new StaxParser(new StaxParser.XmlStreamHandler() {
/**
* {@inheritDoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public CppcheckParserV1(CxxCppCheckSensor sensor) {
@Override
public void processReport(final Project project, final SensorContext context, File report)
throws javax.xml.stream.XMLStreamException {

CxxUtils.LOG.debug("Parsing 'Cppcheck V1' format");
StaxParser parser = new StaxParser(new StaxParser.XmlStreamHandler() {
/**
* {@inheritDoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public CppcheckParserV2(CxxCppCheckSensor sensor) {
@Override
public void processReport(final Project project, final SensorContext context, File report)
throws javax.xml.stream.XMLStreamException {

CxxUtils.LOG.debug("Parsing 'Cppcheck V2' format");
StaxParser parser = new StaxParser(new StaxParser.XmlStreamHandler() {
/**
* {@inheritDoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ protected String reportPathKey() {

@Override
protected void processReport(final Project project, final SensorContext context, File report) throws javax.xml.stream.XMLStreamException {

CxxUtils.LOG.debug("Parsing 'other' format");

StaxParser parser = new StaxParser(new StaxParser.XmlStreamHandler() {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ protected String reportPathKey() {
@Override
protected void processReport(final Project project, final SensorContext context, File report)
throws javax.xml.stream.XMLStreamException {

CxxUtils.LOG.debug("Parsing 'PC-Lint' format");

StaxParser parser = new StaxParser(new StaxParser.XmlStreamHandler() {
/**
* {@inheritDoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ protected String reportPathKey() {
@Override
protected void processReport(final Project project, final SensorContext context, File report)
throws org.jdom.JDOMException, java.io.IOException {
CxxUtils.LOG.debug("Parsing 'RATS' format");

try {
SAXBuilder builder = new SAXBuilder(false);
Element root = builder.build(report).getRootElement();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ protected String reportPathKey() {
@Override
protected void processReport(final Project project, final SensorContext context, File report)
throws javax.xml.stream.XMLStreamException {
CxxUtils.LOG.debug("Parsing 'Valgrind' format");
ValgrindReportParser parser = new ValgrindReportParser();
saveErrors(project, context, parser.processReport(project, context, report));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected String reportPathKey() {
@Override
protected void processReport(final Project project, final SensorContext context, File report)
throws javax.xml.stream.XMLStreamException {

CxxUtils.LOG.debug("Parsing 'Vera++' format");
try {
StaxParser parser = new StaxParser(new StaxParser.XmlStreamHandler() {
/**
Expand Down

0 comments on commit f83feea

Please sign in to comment.