mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 12:03:16 +02:00
Cosmetics.
This commit is contained in:
parent
b2e2842a39
commit
8723964b8e
1 changed files with 3 additions and 3 deletions
|
@ -41,12 +41,12 @@ public class DefinitionFinderTest extends RefactoringTest {
|
|||
IFile file = project.getFile(fileName);
|
||||
ICElement element = CCorePlugin.getDefault().getCoreModel().create(file);
|
||||
if (element instanceof ITranslationUnit) {
|
||||
IASTTranslationUnit unit = astCache.getAST((ITranslationUnit) element, null);
|
||||
for (IASTDeclaration declaration : unit.getDeclarations()) {
|
||||
IASTTranslationUnit ast = astCache.getAST((ITranslationUnit) element, null);
|
||||
for (IASTDeclaration declaration : ast.getDeclarations()) {
|
||||
if (declaration instanceof IASTSimpleDeclaration) {
|
||||
assertNotNull(DefinitionFinder2.getDefinition((IASTSimpleDeclaration) declaration, astCache));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue