Skip to content

Commit

Permalink
And the other one as well
Browse files Browse the repository at this point in the history
  • Loading branch information
rodinaarssen committed Sep 13, 2017
1 parent a8a7519 commit 116a98b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/lang/cpp/internal/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -964,13 +964,15 @@ public int visit(IASTProblemDeclaration declaration) {
ISourceLocation loc = getSourceLocation(declaration);
IASTProblem problem = declaration.getProblem();
String raw = declaration.getRawSignature();
if (!(raw.contains("$fail$") || raw.contains("�") || raw.contains("__int64(24)")
|| raw.contains("CString default"))) {
err("ProblemDeclaration: ");
prefix += 4;
err(Integer.toHexString(problem.getID()) + ": " + problem.getMessageWithLocation() + ", " + loc);
err(raw);
prefix -= 4;
if (doProblemLogging) {
if (!(raw.contains("$fail$") || raw.contains("�") || raw.contains("__int64(24)")
|| raw.contains("CString default"))) {
err("ProblemDeclaration: ");
prefix += 4;
err(Integer.toHexString(problem.getID()) + ": " + problem.getMessageWithLocation() + ", " + loc);
err(raw);
prefix -= 4;
}
}
stack.push(builder.Declaration_problemDeclaration(loc));
return PROCESS_ABORT;
Expand Down

0 comments on commit 116a98b

Please sign in to comment.