diff options
author | Sergey Prigogin | 2013-09-06 20:46:48 +0000 |
---|---|---|
committer | Sergey Prigogin | 2013-09-10 16:42:29 +0000 |
commit | 2272e31185e465163d54344c48fcfc939ad8775d (patch) | |
tree | 8a54798b00389659b7954b140d8068605669bb1b /core/org.eclipse.cdt.core/parser/org | |
parent | a2a8a1dd8ccb458b38730d9cd3ad53f4744acfc9 (diff) | |
download | org.eclipse.cdt-2272e31185e465163d54344c48fcfc939ad8775d.tar.gz org.eclipse.cdt-2272e31185e465163d54344c48fcfc939ad8775d.tar.xz org.eclipse.cdt-2272e31185e465163d54344c48fcfc939ad8775d.zip |
Cosmetics.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org')
3 files changed, 8 insertions, 12 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java index c59ad4c0ed0..b2080de38f1 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java @@ -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); diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFileSet.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFileSet.java index 1db48d50325..3a27ba8276e 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFileSet.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFileSet.java @@ -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; diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMLinkage.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMLinkage.java index a0b15d7ed01..b3ed6a1eabb 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMLinkage.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMLinkage.java @@ -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; |