1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Fix up a few formatting things and the version number for tags.

This commit is contained in:
Doug Schaefer 2013-02-26 23:08:13 -05:00
parent 6c6ab24c23
commit 9c4d88dab4
3 changed files with 5 additions and 6 deletions

View file

@ -1008,7 +1008,7 @@ public abstract class AbstractIndexerTask extends PDOMWriter {
if (ast != null) {
// Give the new AST-TU a chance to recognize its translation unit before it is written
// to the index.
( (ASTTranslationUnit)ast ).setOriginatingTranslationUnit( (ITranslationUnit)tu );
((ASTTranslationUnit)ast).setOriginatingTranslationUnit((ITranslationUnit)tu);
writeToIndex(lang.getLinkageID(), ast, codeReader, ctx, pm);
}
} catch (CoreException e) {

View file

@ -465,10 +465,9 @@ public class PDOM extends PlatformObject implements IPDOM {
}
public PDOMTagIndex getTagIndex() throws CoreException {
if (tagIndex == null)
{
// tag index can only be stored in database versions 139.1 or greater
tagIndex = new PDOMTagIndex( db.getVersion() >= version( 139, 1 ) ? db : null, TAG_INDEX );
if (tagIndex == null) {
// tag index can only be stored in database versions 140.1 or greater
tagIndex = new PDOMTagIndex(db.getVersion() >= version(140, 1) ? db : null, TAG_INDEX);
}
return tagIndex;
}

View file

@ -378,7 +378,7 @@ class PDOMCPPLinkage extends PDOMLinkage implements IIndexCPPBindingConstants {
// Update the tags based on the tags from the new binding. This was in PDOMBinding.update, but
// I found that not all subclasses (e.g., PDOMCPPFunction) call the parent implementation.
TagManager.getInstance().syncTags( pdomBinding, fromBinding );
TagManager.getInstance().syncTags(pdomBinding, fromBinding);
}
return pdomBinding;