1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-05 15:25:49 +02:00

Minor adjustment to tracing.

Change-Id: I16910a0d8e3fb78ae9fc74fa3b0a87b0c72fc37a
This commit is contained in:
Sergey Prigogin 2017-02-27 19:58:57 -08:00
parent a98b07b8d3
commit 68a8cf3205

View file

@ -685,7 +685,7 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
if (log.isTracing()) { if (log.isTracing()) {
ITranslationUnit tu = ast.getOriginatingTranslationUnit(); ITranslationUnit tu = ast.getOriginatingTranslationUnit();
String name = tu == null ? "<unknown>" : tu.getElementName(); //$NON-NLS-1$ String name = tu == null ? "<unknown>" : tu.getElementName(); //$NON-NLS-1$
String message = String.format("Parsed %s: %d ms %s. Ambiguity resolution: %d ms", //$NON-NLS-1$ String message = String.format("Parsed %s: %d ms%s. Ambiguity resolution: %d ms", //$NON-NLS-1$
name, t1 - t0, parsePassed ? "" : " - parse failure", System.currentTimeMillis() - t1); //$NON-NLS-1$//$NON-NLS-2$ name, t1 - t0, parsePassed ? "" : " - parse failure", System.currentTimeMillis() - t1); //$NON-NLS-1$//$NON-NLS-2$
log.traceLog(message); log.traceLog(message);
} }