mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
Cosmetics.
This commit is contained in:
parent
6631c857b9
commit
1ebd5e456e
3 changed files with 8 additions and 12 deletions
|
@ -233,9 +233,7 @@ public class CPPSemantics {
|
|||
* The maximum depth to search ancestors before assuming infinite looping.
|
||||
*/
|
||||
public static final int MAX_INHERITANCE_DEPTH= 16;
|
||||
//
|
||||
// public static final ASTNodeProperty STRING_LOOKUP_PROPERTY =
|
||||
// new ASTNodeProperty("CPPSemantics.STRING_LOOKUP_PROPERTY - STRING_LOOKUP"); //$NON-NLS-1$
|
||||
|
||||
public static final String EMPTY_NAME = ""; //$NON-NLS-1$
|
||||
public static final char[] OPERATOR_ = new char[] {'o','p','e','r','a','t','o','r',' '};
|
||||
public static final IType VOID_TYPE = new CPPBasicType(Kind.eVoid, 0);
|
||||
|
|
|
@ -118,8 +118,7 @@ public class IndexFileSet implements IIndexFileSet {
|
|||
IIndexFragmentBinding fb;
|
||||
if (binding instanceof IIndexFragmentBinding) {
|
||||
fb= (IIndexFragmentBinding) binding;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
fb= (IIndexFragmentBinding) binding.getAdapter(IIndexFragmentBinding.class);
|
||||
}
|
||||
try {
|
||||
|
@ -128,8 +127,7 @@ public class IndexFileSet implements IIndexFileSet {
|
|||
if (subSet != null && subSet.containsFileOfLocalBinding(fb)) {
|
||||
ok.set(i);
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
ok.set(i);
|
||||
}
|
||||
} catch (CoreException e) {
|
||||
|
@ -164,9 +162,9 @@ public class IndexFileSet implements IIndexFileSet {
|
|||
if (!(file instanceof IIndexFragmentFile))
|
||||
return invert;
|
||||
|
||||
IIndexFragmentFile ifile= (IIndexFragmentFile) file;
|
||||
IIndexFragmentFileSet subSet= fSubSets.get(ifile.getIndexFragment());
|
||||
if (subSet != null && subSet.contains(ifile)) {
|
||||
IIndexFragmentFile fragmentFile= (IIndexFragmentFile) file;
|
||||
IIndexFragmentFileSet subSet= fSubSets.get(fragmentFile.getIndexFragment());
|
||||
if (subSet != null && subSet.contains(fragmentFile)) {
|
||||
return !invert;
|
||||
}
|
||||
return invert;
|
||||
|
|
|
@ -394,7 +394,7 @@ public abstract class PDOMLinkage extends PDOMNamedNode implements IIndexLinkage
|
|||
*/
|
||||
public PDOMBinding[] getBindingsViaCache(char[] name, IProgressMonitor monitor) throws CoreException {
|
||||
CharArrayMap<PDOMBinding[]> map = getBindingMap();
|
||||
synchronized(map) {
|
||||
synchronized (map) {
|
||||
PDOMBinding[] result= map.get(name);
|
||||
if (result != null)
|
||||
return result;
|
||||
|
@ -404,7 +404,7 @@ public abstract class PDOMLinkage extends PDOMNamedNode implements IIndexLinkage
|
|||
visitor.setMonitor(monitor);
|
||||
getIndex().accept(visitor);
|
||||
PDOMBinding[] result= visitor.getBindings();
|
||||
synchronized(map) {
|
||||
synchronized (map) {
|
||||
map.put(name, result);
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Add table
Reference in a new issue