Skip to content

Commit 116a98b

Browse files
committed
And the other one as well
1 parent a8a7519 commit 116a98b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/lang/cpp/internal/Parser.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -964,13 +964,15 @@ public int visit(IASTProblemDeclaration declaration) {
964964
ISourceLocation loc = getSourceLocation(declaration);
965965
IASTProblem problem = declaration.getProblem();
966966
String raw = declaration.getRawSignature();
967-
if (!(raw.contains("$fail$") || raw.contains("�") || raw.contains("__int64(24)")
968-
|| raw.contains("CString default"))) {
969-
err("ProblemDeclaration: ");
970-
prefix += 4;
971-
err(Integer.toHexString(problem.getID()) + ": " + problem.getMessageWithLocation() + ", " + loc);
972-
err(raw);
973-
prefix -= 4;
967+
if (doProblemLogging) {
968+
if (!(raw.contains("$fail$") || raw.contains("�") || raw.contains("__int64(24)")
969+
|| raw.contains("CString default"))) {
970+
err("ProblemDeclaration: ");
971+
prefix += 4;
972+
err(Integer.toHexString(problem.getID()) + ": " + problem.getMessageWithLocation() + ", " + loc);
973+
err(raw);
974+
prefix -= 4;
975+
}
974976
}
975977
stack.push(builder.Declaration_problemDeclaration(loc));
976978
return PROCESS_ABORT;

0 commit comments

Comments
 (0)