mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Cosmetics.
This commit is contained in:
parent
3cb3c4832b
commit
4b2dc9b25f
2 changed files with 8 additions and 9 deletions
|
@ -60,14 +60,14 @@ public class InclusionTests extends PreprocessorTestsBase {
|
|||
|
||||
public final static int SIZEOF_TRUTHTABLE = 10;
|
||||
|
||||
private IFile importFile(String fileName, String contents ) throws Exception{
|
||||
private IFile importFile(String fileName, String contents) throws Exception {
|
||||
if (fProject == null) {
|
||||
fProject= CProjectHelper.createCProject(getClass().getName(), null, PDOMNullIndexer.ID);
|
||||
}
|
||||
return TestSourceReader.createFile(fProject.getProject(), fileName, contents);
|
||||
}
|
||||
|
||||
private IFolder importFolder(String name) throws Exception{
|
||||
private IFolder importFolder(String name) throws Exception {
|
||||
if (fProject == null) {
|
||||
fProject= CProjectHelper.createCProject(getClass().getName(), null, PDOMNullIndexer.ID);
|
||||
}
|
||||
|
@ -152,8 +152,7 @@ public class InclusionTests extends PreprocessorTestsBase {
|
|||
validateEOF();
|
||||
}
|
||||
|
||||
public void testIncludePathOrdering() throws Exception
|
||||
{
|
||||
public void testIncludePathOrdering() throws Exception {
|
||||
// create directory structure:
|
||||
// project/base.cpp
|
||||
// project/foo.h
|
||||
|
|
|
@ -57,7 +57,7 @@ final class ScannerContext {
|
|||
}
|
||||
|
||||
public ScannerContext(ILocationCtx ctx, ScannerContext parent, TokenList tokens) {
|
||||
this (ctx, parent, (Lexer) null);
|
||||
this(ctx, parent, (Lexer) null);
|
||||
fTokens= tokens.first();
|
||||
fInactiveState= CodeState.eSkipInactive; // no branches in result of macro expansion
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ final class ScannerContext {
|
|||
}
|
||||
|
||||
private int getOldNestingLevel(BranchKind kind, int nesting) {
|
||||
switch(kind) {
|
||||
switch (kind) {
|
||||
case eIf:
|
||||
return nesting-1;
|
||||
case eElif:
|
||||
|
|
Loading…
Add table
Reference in a new issue