~ubuntu-branches/ubuntu/wily/aspectc++/wily

« back to all changes in this revision

Viewing changes to Puma/src/parser/Semantic.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-06-15 10:17:02 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090615101702-qsr30iptwbxylmo2
Tags: 1.0pre4~svn.20090615-1
* New upstream release.
* don't ignore errors in the postrm script
* avoid spurious creation of empty dir ./usr/sbin/
* improve short descriptions of libpuma-doc and libpuma-dev
* bump Standards-Version to 3.8.1
* bump debhelper compat level to level 7 (latest in stable)

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
/*DEBUG*/           info->AttributeInfo()?"Attribute":info->ArgumentInfo()?"Argument":
109
109
/*DEBUG*/           info->EnumInfo()?"Enum":info->EnumeratorInfo()?"Enumerator":
110
110
/*DEBUG*/           info->LabelInfo()?"Label":info->TypedefInfo()?"Typedef":
111
 
/*DEBUG*/           info->MemberAliasInfo()?"MemberAlias":info->TemplateInfo()?"Template":"File")
 
111
/*DEBUG*/           info->MemberAliasInfo()?"MemberAlias":info->TemplateInfo()?"Template":
 
112
/*DEBUG*/           info->FileInfo()?"File":"Namespace")
112
113
/*DEBUG*/        <<" "<<info->Name()<<")"<<endl;
113
114
/*DEBUG*/  }
114
115
/*DEBUG*/  PtrStack<CObjectInfo>::Push (info);
131
132
  for (int i = 0; i < tree->Sons (); i++) 
132
133
    undo (tree->Son (i));
133
134
 
134
 
  /*DEBUG*/if (TRACE_UNDO) cerr<<"UNDO: "<<tree->NodeName()<<"  ("<<(void*)tree<<")"<<endl;
 
135
  /*DEBUG*/if (TRACE_UNDO) {
 
136
  /*DEBUG*/  cerr<<"UNDO: "<<tree->NodeName();
 
137
  /*DEBUG*/  if (tree->NodeName()==CT_Token::NodeId() && tree->token())
 
138
  /*DEBUG*/    cerr<<" '"<<tree->token()->text()<<"'";
 
139
  /*DEBUG*/  cerr<<"  ("<<(void*)tree<<")"<<endl;
 
140
  /*DEBUG*/}
135
141
  if (tree->NodeName () == CT_DeclSpecSeq::NodeId ()) {
136
142
    if (in_decl () && (sem_decl_specs ()->DeclSpecSeq () == tree))
137
143
      decl_end ();
190
196
  /*DEBUG*/if (TRACE_SCOPES) cerr<<(void*)this<<": +SCOPE: "<<(void*)scp<<" ("
191
197
  /*DEBUG*/    <<(scp->TemplateInfo()?"Template":scp->LocalScope()?"Local":scp->FunctionInfo()?"Function":
192
198
  /*DEBUG*/       scp->ClassInfo()?"Class":scp->UnionInfo()?"Union":"File")
193
 
  /*DEBUG*/    <<" "<<(scp->Name()?scp->Name().c_str():"<?>")<<")"<<endl;
 
199
  /*DEBUG*/    <<(scp->isTemplateInstance()?"Instance ":" ")<<(scp->Name()?scp->Name().c_str():"<?>")<<")"<<endl;
194
200
  scp->Parent (current_scope);
195
201
  current_scope = scp;
196
202
  Push (scp);
200
206
  /*DEBUG*/if (TRACE_SCOPES) cerr<<(void*)this<<": +SCOPE: "<<(void*)scp<<" ("
201
207
  /*DEBUG*/    <<(scp->TemplateInfo()?"Template":scp->LocalScope()?"Local":scp->FunctionInfo()?"Function":
202
208
  /*DEBUG*/       scp->ClassInfo()?"Class":scp->UnionInfo()?"Union":"File")
203
 
  /*DEBUG*/    <<" "<<(scp->Name()?scp->Name().c_str():"<?>")<<")"<<endl;
 
209
  /*DEBUG*/    <<(scp->isTemplateInstance()?"Instance ":" ")<<(scp->Name()?scp->Name().c_str():"<?>")<<")"<<endl;
204
210
  current_scope = scp;
205
211
}
206
212
 
213
219
      /*DEBUG*/if (TRACE_SCOPES) cerr<<(void*)this<<": -SCOPE: "<<(void*)info<<" ("
214
220
      /*DEBUG*/    <<(info->TemplateInfo()?"Template":info->LocalScope()?"Local":info->FunctionInfo()?"Function":
215
221
      /*DEBUG*/       info->ClassInfo()?"Class":info->UnionInfo()?"Union":"File")
216
 
      /*DEBUG*/    <<" "<<(info->Name()?info->Name().c_str():"<?>")<<")"<<endl;
 
222
      /*DEBUG*/    <<(info->isTemplateInstance()?"Instance ":" ")<<(info->Name()?info->Name().c_str():"<?>")<<")"<<endl;
217
223
      current_scope = info->ScopeInfo ()->Parent ()->Structure ();
218
224
      break; // outermost scope found
219
225
    }