mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Enable folding for namespaces
This commit is contained in:
parent
7aa686b631
commit
498ff7334e
1 changed files with 3 additions and 1 deletions
|
@ -1189,7 +1189,7 @@ public class DefaultCFoldingStructureProvider implements ICFoldingStructureProvi
|
|||
private Map<Object, List<Tuple>> computeCurrentStructure(FoldingStructureComputationContext ctx) {
|
||||
boolean includeBranches= fPreprocessorBranchFoldingEnabled && ctx.fAST != null;
|
||||
boolean includeStmts= fStatementsFoldingEnabled && ctx.fAST != null;
|
||||
boolean includeCModel= ctx.fAST != null && isConsistent(fInput);
|
||||
boolean includeCModel= ctx.fAST != null || !(fPreprocessorBranchFoldingEnabled || fStatementsFoldingEnabled);
|
||||
Map<Object, List<Tuple>> map= new HashMap<Object, List<Tuple>>();
|
||||
ProjectionAnnotationModel model= ctx.getModel();
|
||||
Iterator e= model.getAnnotationIterator();
|
||||
|
@ -1601,6 +1601,8 @@ public class DefaultCFoldingStructureProvider implements ICFoldingStructureProvi
|
|||
case ICElement.C_TEMPLATE_METHOD:
|
||||
collapse= ctx.collapseMethods();
|
||||
break;
|
||||
case ICElement.C_NAMESPACE:
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue