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:
parent
6c6ab24c23
commit
9c4d88dab4
3 changed files with 5 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue