mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 21:05:37 +02:00
Minor fix to ASTView.
This commit is contained in:
parent
bcedb9a5c1
commit
7f65d614a3
1 changed files with 5 additions and 6 deletions
|
@ -32,7 +32,6 @@ import org.eclipse.cdt.core.dom.ast.c.ICASTDesignatedInitializer;
|
|||
import org.eclipse.cdt.core.dom.ast.c.ICASTDesignator;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.ASTNode;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.c.CVisitor.CBaseVisitorAction;
|
||||
import org.eclipse.cdt.internal.core.parser.scanner2.LocationMap.ASTObjectMacro;
|
||||
|
||||
/**
|
||||
* @author dsteffle
|
||||
|
@ -170,8 +169,8 @@ public class CPopulateASTViewAction extends CBaseVisitorAction implements IPopul
|
|||
private void mergeNode(ASTNode node) {
|
||||
addRoot(node);
|
||||
|
||||
if (node instanceof ASTObjectMacro)
|
||||
addRoot(((ASTObjectMacro)node).getName());
|
||||
if (node instanceof IASTPreprocessorMacroDefinition )
|
||||
addRoot(((IASTPreprocessorMacroDefinition)node).getName());
|
||||
}
|
||||
|
||||
private void mergeMacros(IASTPreprocessorMacroDefinition[] macros) {
|
||||
|
|
Loading…
Add table
Reference in a new issue