mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
Cosmetics.
This commit is contained in:
parent
f248dc94b2
commit
0d95c85386
3 changed files with 18 additions and 21 deletions
|
@ -551,6 +551,7 @@ public class IndexBugsTests extends BaseTestCase {
|
|||
fIndex.releaseReadLock();
|
||||
}
|
||||
}
|
||||
|
||||
public void test164360_1() throws Exception {
|
||||
waitForIndexer();
|
||||
IFile include= TestSourceReader.createFile(fCProject.getProject(), "test164360.h", "");
|
||||
|
@ -696,8 +697,7 @@ public class IndexBugsTests extends BaseTestCase {
|
|||
if (bindings[0] instanceof ICompositeType) {
|
||||
struct= bindings[0];
|
||||
typedef= bindings[1];
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
struct= bindings[1];
|
||||
typedef= bindings[0];
|
||||
}
|
||||
|
@ -730,8 +730,7 @@ public class IndexBugsTests extends BaseTestCase {
|
|||
if (bindings[0] instanceof ICPPClassType) {
|
||||
struct= bindings[0];
|
||||
typedef= bindings[1];
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
struct= bindings[1];
|
||||
typedef= bindings[0];
|
||||
}
|
||||
|
@ -1149,8 +1148,7 @@ public class IndexBugsTests extends BaseTestCase {
|
|||
assertEquals(1, bindings.length);
|
||||
IIndexBinding binding = bindings[0];
|
||||
assertTrue(binding instanceof IVariable);
|
||||
IIndexName[] names = index.findNames(binding,
|
||||
IIndex.FIND_ALL_OCCURRENCES);
|
||||
IIndexName[] names = index.findNames(binding, IIndex.FIND_ALL_OCCURRENCES);
|
||||
assertEquals(1, names.length);
|
||||
assertEquals(f4.getFullPath().toString(), names[0].getFile().getLocation().getFullPath());
|
||||
|
||||
|
|
|
@ -197,8 +197,7 @@ public class PDOMCStructure extends PDOMBinding implements ICompositeType, ICCom
|
|||
} catch (CoreException e) {
|
||||
if (e.getStatus().equals(Status.OK_STATUS)) {
|
||||
result= visitor.getField();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
CCorePlugin.log(e);
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue