1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2010-08-24 05:16:01 +00:00
parent 0bef556cd0
commit 411edba679
2 changed files with 11 additions and 10 deletions

View file

@ -92,7 +92,6 @@ import org.eclipse.core.runtime.OperationCanceledException;
* @since 4.0
*/
public class CModelBuilder2 implements IContributedModelBuilder {
private final static boolean DEBUG= Util.isActive(DebugLogConstants.MODEL);
private final TranslationUnit fTranslationUnit;
@ -145,11 +144,13 @@ public class CModelBuilder2 implements IContributedModelBuilder {
final IASTTranslationUnit ast;
try {
ast= fTranslationUnit.getAST(index, parseFlags, fProgressMonitor);
if (DEBUG) Util.debugLog("CModelBuilder2: parsing " //$NON-NLS-1$
if (DEBUG) {
Util.debugLog("CModelBuilder2: parsing " //$NON-NLS-1$
+ fTranslationUnit.getElementName()
+ " mode="+ (quickParseMode ? "skip all " : "skip indexed ") //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ " time="+ ( System.currentTimeMillis() - startTime ) + "ms", //$NON-NLS-1$ //$NON-NLS-2$
DebugLogConstants.MODEL, false);
}
} catch (ParseError e) {
checkCanceled();
throw e;