ROSE  0.11.51.0
sageGeneric.h
Go to the documentation of this file.
1 #ifndef _SAGEGENERIC_H
2 
3 #define _SAGEGENERIC_H 1
4 
11 
12 // note: the comments are right aligned to support code-blocks doxygen 1.3.X :)
13 
14 #include <type_traits>
15 
16 #if !defined(NDEBUG)
17 #include <typeinfo>
18 #include <sstream>
19 #endif /* NDEBUG */
20 
21 #define WITH_BINARY_NODES 0
22 #define WITH_UNTYPED_NODES 0
23 
24 // #include "Cxx_Grammar.h"
25 
26 // DQ (10/5/2014): We can't include this here.
27 // #include "rose.h"
28 
29 #define SG_UNEXPECTED_NODE(X) (sg::unexpected_node(X, __FILE__, __LINE__))
30 #define SG_DEREF(X) (sg::deref(X, __FILE__, __LINE__))
31 #define SG_ASSERT_TYPE(SAGENODE, N) (sg::assert_sage_type<SAGENODE>(N, __FILE__, __LINE__))
32 #define SG_ERROR_IF(COND, MSG) (sg::report_error_if(COND, MSG, __FILE__, __LINE__))
33 
34 
36 namespace sg
37 {
38  //
39  // non sage specific utilities
40 
43  template <class T>
44  static inline
45  void unused(const T&) {}
46 
48  template <class T1, class T2>
49  struct ConstLike
50  {
51  typedef T2 type;
52  };
53 
54  template <class T1, class T2>
55  struct ConstLike<const T1, T2>
56  {
57  typedef const T2 type;
58  };
59 
60  //
61  // error reporting
62 
64  template <class T, class E>
65  static inline
66  T conv(const E& el)
67  {
68  T res;
69 #if !defined(NDEBUG)
70  std::stringstream s;
71 
72  s << el;
73  s >> res;
74 #endif /* NDEBUG */
75  return res;
76  }
77 
78  // \note implemented in SageInterfaceAda.h
79  // \{
80  [[noreturn]]
81  void report_error(std::string desc, const char* file = nullptr, size_t ln = 0);
82 
83  [[noreturn]]
84  void unexpected_node(const SgNode& n, const char* file = nullptr, size_t ln = 0);
86 
87 
88  static inline
89  void report_error_if(bool iserror, const std::string& desc, const char* file = nullptr, size_t ln = 0)
90  {
91  if (!iserror) return;
92 
93  report_error(desc, file, ln);
94  }
95 
97  template <class T>
98  T& deref(T* ptr, const char* file = 0, size_t ln = 0)
99  {
100  report_error_if(!ptr, "assertion failed: null dereference ", file, ln);
101  return *ptr;
102  }
103 
104  // \note implemented in SageInterfaceAda.h
105 
116  template <class _ReturnType>
118  {
119  typedef _ReturnType ReturnType;
121 
123  : res()
124  {}
125 
126  explicit
127  DispatchHandler(const ReturnType& defaultval)
128  : res(defaultval)
129  {}
130 
131  operator ReturnType() const { return res; }
132 
133  protected:
134  ReturnType res;
135  };
136 
137 
138  //
139  // Sage query functions
140 
142  template <class SageNode>
143  static inline
144  SageNode& assume_sage_type(SgNode& n)
145  {
146  return static_cast<SageNode&>(n);
147  }
148 
151  template <class SageNode>
152  static inline
153  const SageNode& assume_sage_type(const SgNode& n)
154  {
155  return static_cast<const SageNode&>(n);
156  }
157 
158 #define GEN_VISIT(X) \
159  void visit(X * n) { rv.handle(*n); }
160 
161  template <class RoseVisitor>
163  {
164  // rvalue ctor
165  VisitDispatcher(RoseVisitor&& rosevisitor, std::false_type)
166  : rv(std::move(rosevisitor))
167  {}
168 
169  // lvalue ctor
170  VisitDispatcher(const RoseVisitor& rosevisitor, std::true_type)
171  : rv(rosevisitor)
172  {}
173 
174  GEN_VISIT(SgAccessModifier)
175  GEN_VISIT(SgActualArgumentExpression)
176  GEN_VISIT(SgAbsOp)
177  GEN_VISIT(SgAdaAccessType)
178  GEN_VISIT(SgAdaAcceptStmt)
179  GEN_VISIT(SgAdaComponentClause)
180  GEN_VISIT(SgAdaDelayStmt)
181  GEN_VISIT(SgAdaEntryDecl)
182  GEN_VISIT(SgAdaExitStmt)
183  GEN_VISIT(SgAdaFloatType)
184  GEN_VISIT(SgAdaFloatVal)
185  GEN_VISIT(SgAdaFormalType)
186  GEN_VISIT(SgAdaFormalTypeDecl)
187  GEN_VISIT(SgAdaFunctionRenamingDecl)
188  GEN_VISIT(SgAdaGenericDecl)
189  GEN_VISIT(SgAdaGenericInstanceDecl)
190  GEN_VISIT(SgAdaGenericDefn)
191  GEN_VISIT(SgAdaIndexConstraint)
192  GEN_VISIT(SgAdaLengthClause)
193  GEN_VISIT(SgAdaLoopStmt)
194  GEN_VISIT(SgAdaModularType)
195  GEN_VISIT(SgAdaPackageBody)
196  GEN_VISIT(SgAdaPackageBodyDecl)
197  GEN_VISIT(SgAdaPackageSpec)
198  GEN_VISIT(SgAdaPackageSpecDecl)
199  GEN_VISIT(SgAdaPackageSymbol)
200  GEN_VISIT(SgAdaRangeConstraint)
203  GEN_VISIT(SgAdaRenamingDecl)
204  GEN_VISIT(SgAdaSelectStmt)
205  GEN_VISIT(SgAdaSelectAlternativeStmt)
206  GEN_VISIT(SgAdaSubtype)
207  GEN_VISIT(SgAdaDerivedType)
208  GEN_VISIT(SgAdaAttributeExp)
209  GEN_VISIT(SgAdaTaskBody)
210  GEN_VISIT(SgAdaTaskBodyDecl)
211  GEN_VISIT(SgAdaTaskSpec)
212  GEN_VISIT(SgAdaTaskSpecDecl)
213  GEN_VISIT(SgAdaTaskSymbol)
214  GEN_VISIT(SgAdaRenamingSymbol)
215  GEN_VISIT(SgAdaTaskRefExp)
216  GEN_VISIT(SgAdaRenamingRefExp)
217  GEN_VISIT(SgAdaTaskType)
218  GEN_VISIT(SgAdaTaskTypeDecl)
219  GEN_VISIT(SgAdaTerminateStmt)
220  GEN_VISIT(SgAdaTypeConstraint)
221  GEN_VISIT(SgAddOp)
222  GEN_VISIT(SgAddressOfOp)
223  GEN_VISIT(SgAggregateInitializer)
224  GEN_VISIT(SgAliasSymbol)
225  GEN_VISIT(SgAllocateStatement)
226  GEN_VISIT(SgAndAssignOp)
227  GEN_VISIT(SgAndOp)
228  GEN_VISIT(SgArithmeticIfStatement)
229  GEN_VISIT(SgArrayType)
230  GEN_VISIT(SgArrowExp)
231  GEN_VISIT(SgArrowStarOp)
232 #if WITH_BINARY_NODES
233  GEN_VISIT(SgAsmAarch64AtOperand)
234  GEN_VISIT(SgAsmAarch64BarrierOperand)
235  GEN_VISIT(SgAsmAarch64CImmediateOperand)
236  GEN_VISIT(SgAsmAarch64Instruction)
237  GEN_VISIT(SgAsmAarch64PrefetchOperand)
238  GEN_VISIT(SgAsmAarch64SysMoveOperand)
239  GEN_VISIT(SgAsmBasicString)
240  GEN_VISIT(SgAsmBinaryAdd)
241  GEN_VISIT(SgAsmBinaryAddPostupdate)
242  GEN_VISIT(SgAsmBinaryAddPreupdate)
243  GEN_VISIT(SgAsmBinaryAsr)
244  GEN_VISIT(SgAsmBinaryDivide)
245  GEN_VISIT(SgAsmBinaryExpression)
246  GEN_VISIT(SgAsmBinaryLsl)
247  GEN_VISIT(SgAsmBinaryLsr)
248  GEN_VISIT(SgAsmBinaryMod)
249  GEN_VISIT(SgAsmBinaryMsl)
250  GEN_VISIT(SgAsmBinaryMultiply)
251  GEN_VISIT(SgAsmBinaryRor)
252  GEN_VISIT(SgAsmBinarySubtract)
253  GEN_VISIT(SgAsmBinarySubtractPostupdate)
254  GEN_VISIT(SgAsmBinarySubtractPreupdate)
255  GEN_VISIT(SgAsmBlock)
256  GEN_VISIT(SgAsmCoffStrtab)
257  GEN_VISIT(SgAsmCoffSymbol)
258  GEN_VISIT(SgAsmCoffSymbolList)
259  GEN_VISIT(SgAsmCoffSymbolTable)
260  GEN_VISIT(SgAsmCommonSubExpression)
261  GEN_VISIT(SgAsmControlFlagsExpression)
262  GEN_VISIT(SgAsmConstantExpression)
263  GEN_VISIT(SgAsmDOSExtendedHeader)
264  GEN_VISIT(SgAsmDOSFileHeader)
266  GEN_VISIT(SgAsmSynthesizedDeclaration)
268  GEN_VISIT(SgAsmDwarfAccessDeclaration)
269  GEN_VISIT(SgAsmDwarfArrayType)
270  GEN_VISIT(SgAsmDwarfBaseType)
271  GEN_VISIT(SgAsmDwarfCatchBlock)
272  GEN_VISIT(SgAsmDwarfClassTemplate)
273  GEN_VISIT(SgAsmDwarfClassType)
274  GEN_VISIT(SgAsmDwarfCommonBlock)
275  GEN_VISIT(SgAsmDwarfCommonInclusion)
276  GEN_VISIT(SgAsmDwarfCompilationUnit)
278  GEN_VISIT(SgAsmDwarfCondition)
279  GEN_VISIT(SgAsmDwarfConstType)
280  GEN_VISIT(SgAsmDwarfConstant)
281  GEN_VISIT(SgAsmDwarfConstruct)
282  GEN_VISIT(SgAsmDwarfConstructList)
283  GEN_VISIT(SgAsmDwarfDwarfProcedure)
284  GEN_VISIT(SgAsmDwarfEntryPoint)
285  GEN_VISIT(SgAsmDwarfEnumerationType)
286  GEN_VISIT(SgAsmDwarfEnumerator)
287  GEN_VISIT(SgAsmDwarfFileType)
288  GEN_VISIT(SgAsmDwarfFormalParameter)
289  GEN_VISIT(SgAsmDwarfFormatLabel)
290  GEN_VISIT(SgAsmDwarfFriend)
291  GEN_VISIT(SgAsmDwarfFunctionTemplate)
293  GEN_VISIT(SgAsmDwarfImportedModule)
294  GEN_VISIT(SgAsmDwarfImportedUnit)
295  GEN_VISIT(SgAsmDwarfInformation)
296  GEN_VISIT(SgAsmDwarfInheritance)
297  GEN_VISIT(SgAsmDwarfInlinedSubroutine)
298  GEN_VISIT(SgAsmDwarfInterfaceType)
299  GEN_VISIT(SgAsmDwarfLabel)
300  GEN_VISIT(SgAsmDwarfLexicalBlock)
301  GEN_VISIT(SgAsmDwarfLine)
302  GEN_VISIT(SgAsmDwarfLineList)
303  GEN_VISIT(SgAsmDwarfMacro)
304  GEN_VISIT(SgAsmDwarfMacroList)
305  GEN_VISIT(SgAsmDwarfMember)
306  GEN_VISIT(SgAsmDwarfModule)
307  GEN_VISIT(SgAsmDwarfMutableType)
308  GEN_VISIT(SgAsmDwarfNamelist)
309  GEN_VISIT(SgAsmDwarfNamelistItem)
310  GEN_VISIT(SgAsmDwarfNamespace)
311  GEN_VISIT(SgAsmDwarfPackedType)
312  GEN_VISIT(SgAsmDwarfPartialUnit)
313  GEN_VISIT(SgAsmDwarfPointerType)
314  GEN_VISIT(SgAsmDwarfPtrToMemberType)
315  GEN_VISIT(SgAsmDwarfReferenceType)
316  GEN_VISIT(SgAsmDwarfRestrictType)
317  GEN_VISIT(SgAsmDwarfSetType)
318  GEN_VISIT(SgAsmDwarfSharedType)
319  GEN_VISIT(SgAsmDwarfStringType)
320  GEN_VISIT(SgAsmDwarfStructureType)
321  GEN_VISIT(SgAsmDwarfSubprogram)
322  GEN_VISIT(SgAsmDwarfSubrangeType)
323  GEN_VISIT(SgAsmDwarfSubroutineType)
326  GEN_VISIT(SgAsmDwarfThrownType)
327  GEN_VISIT(SgAsmDwarfTryBlock)
328  GEN_VISIT(SgAsmDwarfTypedef)
329  GEN_VISIT(SgAsmDwarfUnionType)
330  GEN_VISIT(SgAsmDwarfUnknownConstruct)
332  GEN_VISIT(SgAsmDwarfUnspecifiedType)
333  GEN_VISIT(SgAsmDwarfUpcRelaxedType)
334  GEN_VISIT(SgAsmDwarfUpcSharedType)
335  GEN_VISIT(SgAsmDwarfUpcStrictType)
336  GEN_VISIT(SgAsmDwarfVariable)
337  GEN_VISIT(SgAsmDwarfVariant)
338  GEN_VISIT(SgAsmDwarfVariantPart)
339  GEN_VISIT(SgAsmDwarfVolatileType)
340  GEN_VISIT(SgAsmDwarfWithStmt)
341  GEN_VISIT(SgAsmElfDynamicEntry)
342  GEN_VISIT(SgAsmElfDynamicEntryList)
343  GEN_VISIT(SgAsmElfDynamicSection)
344  GEN_VISIT(SgAsmElfEHFrameEntryCI)
345  GEN_VISIT(SgAsmElfEHFrameEntryCIList)
346  GEN_VISIT(SgAsmElfEHFrameEntryFD)
347  GEN_VISIT(SgAsmElfEHFrameEntryFDList)
348  GEN_VISIT(SgAsmElfEHFrameSection)
349  GEN_VISIT(SgAsmElfFileHeader)
350  GEN_VISIT(SgAsmElfNoteEntry)
351  GEN_VISIT(SgAsmElfNoteEntryList)
352  GEN_VISIT(SgAsmElfNoteSection)
353  GEN_VISIT(SgAsmElfRelocEntry)
354  GEN_VISIT(SgAsmElfRelocEntryList)
355  GEN_VISIT(SgAsmElfRelocSection)
356  GEN_VISIT(SgAsmElfSection)
357  GEN_VISIT(SgAsmElfSectionTable)
358  GEN_VISIT(SgAsmElfSectionTableEntry)
359  GEN_VISIT(SgAsmElfSegmentTable)
360  GEN_VISIT(SgAsmElfSegmentTableEntry)
362  GEN_VISIT(SgAsmElfStringSection)
363  GEN_VISIT(SgAsmElfStrtab)
364  GEN_VISIT(SgAsmElfSymbol)
365  GEN_VISIT(SgAsmElfSymbolList)
366  GEN_VISIT(SgAsmElfSymbolSection)
367  GEN_VISIT(SgAsmElfSymverDefinedAux)
369  GEN_VISIT(SgAsmElfSymverDefinedEntry)
372  GEN_VISIT(SgAsmElfSymverEntry)
373  GEN_VISIT(SgAsmElfSymverEntryList)
374  GEN_VISIT(SgAsmElfSymverNeededAux)
375  GEN_VISIT(SgAsmElfSymverNeededAuxList)
376  GEN_VISIT(SgAsmElfSymverNeededEntry)
378  GEN_VISIT(SgAsmElfSymverNeededSection)
379  GEN_VISIT(SgAsmElfSymverSection)
380  GEN_VISIT(SgAsmExecutableFileFormat)
381  GEN_VISIT(SgAsmExprListExp)
382  GEN_VISIT(SgAsmExpression)
384  GEN_VISIT(SgAsmFloatType)
385  GEN_VISIT(SgAsmFloatValueExpression)
386  GEN_VISIT(SgAsmFunction)
387  GEN_VISIT(SgAsmGenericDLL)
388  GEN_VISIT(SgAsmGenericDLLList)
389  GEN_VISIT(SgAsmGenericFile)
390  GEN_VISIT(SgAsmGenericFileList)
391  GEN_VISIT(SgAsmGenericFormat)
392  GEN_VISIT(SgAsmGenericHeader)
393  GEN_VISIT(SgAsmGenericHeaderList)
394  GEN_VISIT(SgAsmGenericSection)
395  GEN_VISIT(SgAsmGenericSectionList)
396  GEN_VISIT(SgAsmGenericString)
397  GEN_VISIT(SgAsmGenericStrtab)
398  GEN_VISIT(SgAsmGenericSymbol)
399  GEN_VISIT(SgAsmGenericSymbolList)
401  GEN_VISIT(SgAsmInstruction)
402  GEN_VISIT(SgAsmIntegerValueExpression)
403  GEN_VISIT(SgAsmIntegerType)
404  GEN_VISIT(SgAsmInterpretation)
405  GEN_VISIT(SgAsmInterpretationList)
406  GEN_VISIT(SgAsmLEEntryPoint)
407  GEN_VISIT(SgAsmLEEntryTable)
408  GEN_VISIT(SgAsmLEFileHeader)
409  GEN_VISIT(SgAsmLENameTable)
410  GEN_VISIT(SgAsmLEPageTable)
411  GEN_VISIT(SgAsmLEPageTableEntry)
412  GEN_VISIT(SgAsmLERelocTable)
413  GEN_VISIT(SgAsmLESection)
414  GEN_VISIT(SgAsmLESectionTable)
415  GEN_VISIT(SgAsmLESectionTableEntry)
416  GEN_VISIT(SgAsmM68kInstruction)
418  GEN_VISIT(SgAsmMipsInstruction)
419  GEN_VISIT(SgAsmNEEntryPoint)
420  GEN_VISIT(SgAsmNEEntryTable)
421  GEN_VISIT(SgAsmNEFileHeader)
422  GEN_VISIT(SgAsmNEModuleTable)
423  GEN_VISIT(SgAsmNENameTable)
424  GEN_VISIT(SgAsmNERelocEntry)
425  GEN_VISIT(SgAsmNERelocTable)
426  GEN_VISIT(SgAsmNESection)
427  GEN_VISIT(SgAsmNESectionTable)
428  GEN_VISIT(SgAsmNESectionTableEntry)
429  GEN_VISIT(SgAsmNEStringTable)
430  GEN_VISIT(SgAsmNode)
431  GEN_VISIT(SgAsmOp)
432  GEN_VISIT(SgAsmOperandList)
433  GEN_VISIT(SgAsmPEExportDirectory)
434  GEN_VISIT(SgAsmPEExportEntry)
435  GEN_VISIT(SgAsmPEExportEntryList)
436  GEN_VISIT(SgAsmPEExportSection)
437  GEN_VISIT(SgAsmPEFileHeader)
438  GEN_VISIT(SgAsmPEImportDirectory)
439  GEN_VISIT(SgAsmPEImportDirectoryList)
440  GEN_VISIT(SgAsmPEImportItem)
441  GEN_VISIT(SgAsmPEImportItemList)
442  GEN_VISIT(SgAsmPEImportSection)
443  GEN_VISIT(SgAsmPERVASizePair)
444  GEN_VISIT(SgAsmPERVASizePairList)
445  GEN_VISIT(SgAsmPESection)
446  GEN_VISIT(SgAsmPESectionTable)
447  GEN_VISIT(SgAsmPESectionTableEntry)
448  GEN_VISIT(SgAsmPEStringSection)
449  GEN_VISIT(SgAsmPowerpcInstruction)
450  GEN_VISIT(SgAsmRegisterNames)
452  GEN_VISIT(SgAsmRiscOperation)
453  GEN_VISIT(SgAsmScalarType)
454  GEN_VISIT(SgAsmStatement)
455  GEN_VISIT(SgAsmStaticData)
456  GEN_VISIT(SgAsmStmt)
457  GEN_VISIT(SgAsmStoredString)
458  GEN_VISIT(SgAsmStringStorage)
459  GEN_VISIT(SgAsmType)
460  GEN_VISIT(SgAsmUnaryExpression)
461  GEN_VISIT(SgAsmUnaryMinus)
462  GEN_VISIT(SgAsmUnaryPlus)
463  GEN_VISIT(SgAsmUnaryRrx)
464  GEN_VISIT(SgAsmUnarySignedExtend)
465  GEN_VISIT(SgAsmUnaryUnsignedExtend)
466  GEN_VISIT(SgAsmUnaryTruncate)
467  GEN_VISIT(SgAsmValueExpression)
468  GEN_VISIT(SgAsmVectorType)
469  GEN_VISIT(SgAsmX86Instruction)
470  GEN_VISIT(SgAsmBinaryAddressSymbol)
471  GEN_VISIT(SgAsmBinaryDataSymbol)
472 #endif /* WITH_BINARY_NODES */
473  GEN_VISIT(SgAssertStmt)
474  GEN_VISIT(SgAssignInitializer)
475  GEN_VISIT(SgAssignOp)
476  GEN_VISIT(SgAssignStatement)
477  GEN_VISIT(SgAssignedGotoStatement)
478  GEN_VISIT(SgAssociateStatement)
479  GEN_VISIT(SgAsteriskShapeExp)
480  GEN_VISIT(SgAtOp)
481  GEN_VISIT(SgAttribute)
483  GEN_VISIT(SgAutoType)
484  GEN_VISIT(SgAwaitExpression)
485  GEN_VISIT(SgBackspaceStatement)
486  GEN_VISIT(SgBaseClass)
487  GEN_VISIT(SgExpBaseClass)
488  GEN_VISIT(SgBaseClassModifier)
489  GEN_VISIT(SgBasicBlock)
490  GEN_VISIT(SgBidirectionalGraph)
491  GEN_VISIT(SgBinaryOp)
492  GEN_VISIT(SgBitAndOp)
493  GEN_VISIT(SgBitAttribute)
494  GEN_VISIT(SgBitComplementOp)
495  GEN_VISIT(SgBitEqvOp)
496  GEN_VISIT(SgBitOrOp)
497  GEN_VISIT(SgBitXorOp)
498  GEN_VISIT(SgBlockDataStatement)
499  GEN_VISIT(SgBoolValExp)
500  GEN_VISIT(SgBreakStmt)
501  GEN_VISIT(SgBracedInitializer)
503  GEN_VISIT(SgCaseOptionStmt)
504  GEN_VISIT(SgCastExp)
505  GEN_VISIT(SgCatchOptionStmt)
506  GEN_VISIT(SgCatchStatementSeq)
507  GEN_VISIT(SgCharVal)
508  GEN_VISIT(SgChar16Val)
509  GEN_VISIT(SgChar32Val)
510  GEN_VISIT(SgChooseExpression)
511  GEN_VISIT(SgClassDecl_attr)
512  GEN_VISIT(SgClassDeclaration)
513  GEN_VISIT(SgClassDefinition)
514  GEN_VISIT(SgClassNameRefExp)
515  GEN_VISIT(SgClassSymbol)
516  GEN_VISIT(SgClassType)
518  GEN_VISIT(SgClinkageEndStatement)
519  GEN_VISIT(SgClinkageStartStatement)
520  GEN_VISIT(SgCloseStatement)
521  GEN_VISIT(SgColonShapeExp)
522  GEN_VISIT(SgCommaOpExp)
523  GEN_VISIT(SgCommonBlock)
524  GEN_VISIT(SgCommonBlockObject)
525  GEN_VISIT(SgCommonSymbol)
526  GEN_VISIT(SgComplexVal)
527  GEN_VISIT(SgComprehension)
528  GEN_VISIT(SgCompoundAssignOp)
529  GEN_VISIT(SgCompoundInitializer)
530  GEN_VISIT(SgCompoundLiteralExp)
531  GEN_VISIT(SgComputedGotoStatement)
532  GEN_VISIT(SgConcatenationOp)
533  GEN_VISIT(SgConditionalExp)
534  GEN_VISIT(SgConjugateOp)
535  GEN_VISIT(SgConstVolatileModifier)
536  GEN_VISIT(SgConstructorInitializer)
537  GEN_VISIT(SgContainsStatement)
538  GEN_VISIT(SgContinueStmt)
539  GEN_VISIT(SgCtorInitializerList)
540  GEN_VISIT(SgDataStatementGroup)
541  GEN_VISIT(SgDataStatementObject)
542  GEN_VISIT(SgDataStatementValue)
543  GEN_VISIT(SgDeadIfDirectiveStatement)
544  GEN_VISIT(SgDeallocateStatement)
545  GEN_VISIT(SgDeclarationModifier)
546  GEN_VISIT(SgDeclarationScope)
547  GEN_VISIT(SgDeclarationStatement)
548  GEN_VISIT(SgDeclType)
549  GEN_VISIT(SgDefaultOptionStmt)
550  GEN_VISIT(SgDefaultSymbol)
551  GEN_VISIT(SgDefineDirectiveStatement)
552  GEN_VISIT(SgDeleteExp)
553  GEN_VISIT(SgDerivedTypeStatement)
554  GEN_VISIT(SgDesignatedInitializer)
555  GEN_VISIT(SgDictionaryComprehension)
556  GEN_VISIT(SgDictionaryExp)
557  GEN_VISIT(SgDimensionObject)
558  GEN_VISIT(SgDirectory)
559  GEN_VISIT(SgDirectoryList)
560  GEN_VISIT(SgDivAssignOp)
561  GEN_VISIT(SgDivideOp)
562  GEN_VISIT(SgDoWhileStmt)
563  GEN_VISIT(SgDotExp)
564  GEN_VISIT(SgDotStarOp)
565  GEN_VISIT(SgDoubleVal)
566  GEN_VISIT(SgElaboratedTypeModifier)
567  GEN_VISIT(SgElementwiseOp)
568  GEN_VISIT(SgElementwiseAddOp)
569  GEN_VISIT(SgElementwiseDivideOp)
570  GEN_VISIT(SgElementwiseLeftDivideOp)
571  GEN_VISIT(SgElementwiseMultiplyOp)
572  GEN_VISIT(SgElementwisePowerOp)
573  GEN_VISIT(SgElementwiseSubtractOp)
574  GEN_VISIT(SgElseDirectiveStatement)
575  GEN_VISIT(SgElseWhereStatement)
576  GEN_VISIT(SgElseifDirectiveStatement)
577  GEN_VISIT(SgEmptyDeclaration)
578  GEN_VISIT(SgEmptyDirectiveStatement)
579  GEN_VISIT(SgEndfileStatement)
580  GEN_VISIT(SgEndifDirectiveStatement)
581  GEN_VISIT(SgEntryStatement)
582  GEN_VISIT(SgEnumDeclaration)
583  GEN_VISIT(SgEnumFieldSymbol)
584  GEN_VISIT(SgEnumSymbol)
585  GEN_VISIT(SgEnumType)
586  GEN_VISIT(SgEnumVal)
587  GEN_VISIT(SgEqualityOp)
588  GEN_VISIT(SgEquivalenceStatement)
589  GEN_VISIT(SgErrorDirectiveStatement)
590  GEN_VISIT(SgExecStatement)
591  GEN_VISIT(SgExponentiationOp)
592  GEN_VISIT(SgExponentiationAssignOp)
593  GEN_VISIT(SgExprListExp)
594  GEN_VISIT(SgExprStatement)
595  GEN_VISIT(SgExpression)
596  GEN_VISIT(SgExpressionRoot)
597  GEN_VISIT(SgFile)
598  GEN_VISIT(SgFileList)
599  GEN_VISIT(SgFloatVal)
600  GEN_VISIT(SgFloat128Val)
601  GEN_VISIT(SgFloat80Val)
602  GEN_VISIT(SgFoldExpression)
603  GEN_VISIT(SgFlushStatement)
604  GEN_VISIT(SgForAllStatement)
605  GEN_VISIT(SgForInitStatement)
606  GEN_VISIT(SgForStatement)
607  GEN_VISIT(SgFormatItem)
608  GEN_VISIT(SgFormatItemList)
609  GEN_VISIT(SgFormatStatement)
610  GEN_VISIT(SgFortranDo)
611  GEN_VISIT(SgFortranIncludeLine)
612  GEN_VISIT(SgFortranNonblockedDo)
613  GEN_VISIT(SgFuncDecl_attr)
614  GEN_VISIT(SgFunctionCallExp)
615  GEN_VISIT(SgFunctionDeclaration)
616  GEN_VISIT(SgFunctionDefinition)
617  GEN_VISIT(SgFunctionParameterScope)
618  GEN_VISIT(SgFunctionModifier)
619  GEN_VISIT(SgFunctionParameterList)
620  GEN_VISIT(SgFunctionParameterRefExp)
621  GEN_VISIT(SgFunctionParameterTypeList)
622  GEN_VISIT(SgFunctionRefExp)
623  GEN_VISIT(SgFunctionSymbol)
624  GEN_VISIT(SgFunctionType)
625  GEN_VISIT(SgFunctionTypeSymbol)
626  GEN_VISIT(SgFunctionTypeTable)
627  GEN_VISIT(SgTypeTable)
628  GEN_VISIT(SgGlobal)
629  GEN_VISIT(SgGotoStatement)
630  GEN_VISIT(SgGraph)
631  GEN_VISIT(SgGraphEdge)
632  GEN_VISIT(SgGraphEdgeList)
633  GEN_VISIT(SgGraphNode)
634  GEN_VISIT(SgGraphNodeList)
635  GEN_VISIT(SgGreaterOrEqualOp)
636  GEN_VISIT(SgGreaterThanOp)
637  GEN_VISIT(SgIOItemExpression)
638  GEN_VISIT(SgIOStatement)
639  GEN_VISIT(SgIdentDirectiveStatement)
640  GEN_VISIT(SgIfDirectiveStatement)
641  GEN_VISIT(SgIfStmt)
642  GEN_VISIT(SgIfdefDirectiveStatement)
643  GEN_VISIT(SgIfndefDirectiveStatement)
644  GEN_VISIT(SgImageControlStatement)
645  GEN_VISIT(SgImagPartOp)
646  GEN_VISIT(SgImplicitStatement)
647  GEN_VISIT(SgImpliedDo)
648  GEN_VISIT(SgImportStatement)
649  GEN_VISIT(SgIncidenceDirectedGraph)
650  GEN_VISIT(SgIncidenceUndirectedGraph)
651  GEN_VISIT(SgIncludeDirectiveStatement)
652  GEN_VISIT(SgIncludeFile)
654  GEN_VISIT(SgInitializedName)
655  GEN_VISIT(SgInitializer)
656  GEN_VISIT(SgInquireStatement)
658  GEN_VISIT(SgIntVal)
659  GEN_VISIT(SgIntegerDivideOp)
660  GEN_VISIT(SgIntegerDivideAssignOp)
661  GEN_VISIT(SgInterfaceBody)
662  GEN_VISIT(SgHeaderFileBody)
663  GEN_VISIT(SgHeaderFileReport)
664  GEN_VISIT(SgInterfaceStatement)
665  GEN_VISIT(SgInterfaceSymbol)
666  GEN_VISIT(SgIntrinsicSymbol)
667  GEN_VISIT(SgIsOp)
668  GEN_VISIT(SgIsNotOp)
669  GEN_VISIT(SgIorAssignOp)
670  GEN_VISIT(SgJovialBitType)
671  GEN_VISIT(SgJovialBitVal)
672  GEN_VISIT(SgJovialTableType)
673  GEN_VISIT(SgJovialCompoolStatement)
674  GEN_VISIT(SgJovialForThenStatement)
675  GEN_VISIT(SgJovialDefineDeclaration)
676  GEN_VISIT(SgJovialDirectiveStatement)
677  GEN_VISIT(SgJovialOverlayDeclaration)
678  GEN_VISIT(SgJovialTablePresetExp)
679  GEN_VISIT(SgJovialTableStatement)
680  GEN_VISIT(SgKeyDatumPair)
681  GEN_VISIT(SgCudaKernelExecConfig)
682  GEN_VISIT(SgCudaKernelCallExp)
683  GEN_VISIT(SgLabelRefExp)
684  GEN_VISIT(SgLabelStatement)
685  GEN_VISIT(SgJavaLabelStatement)
686  GEN_VISIT(SgLabelSymbol)
687  GEN_VISIT(SgJavaLabelSymbol)
688  GEN_VISIT(SgLambdaCapture)
689  GEN_VISIT(SgLambdaCaptureList)
690  GEN_VISIT(SgLambdaExp)
691  GEN_VISIT(SgLambdaRefExp)
692  GEN_VISIT(SgLeftDivideOp)
693  GEN_VISIT(SgLessOrEqualOp)
694  GEN_VISIT(SgLessThanOp)
695  GEN_VISIT(SgLineDirectiveStatement)
697  GEN_VISIT(SgLinkageModifier)
698  GEN_VISIT(SgListComprehension)
699  GEN_VISIT(SgListExp)
700  GEN_VISIT(SgLocatedNode)
701  GEN_VISIT(SgLocatedNodeSupport)
702  GEN_VISIT(SgLongDoubleVal)
703  GEN_VISIT(SgLongIntVal)
704  GEN_VISIT(SgLongLongIntVal)
705  GEN_VISIT(SgLshiftAssignOp)
706  GEN_VISIT(SgLshiftOp)
707  GEN_VISIT(SgMagicColonExp)
708  GEN_VISIT(SgMatrixExp)
709  GEN_VISIT(SgMatrixTransposeOp)
710  GEN_VISIT(SgMatlabForStatement)
711  GEN_VISIT(SgMemberFunctionDeclaration)
712  GEN_VISIT(SgMemberFunctionRefExp)
713  GEN_VISIT(SgMemberFunctionSymbol)
714  GEN_VISIT(SgMemberFunctionType)
715  GEN_VISIT(SgMembershipOp)
717  GEN_VISIT(SgMinusAssignOp)
718  GEN_VISIT(SgMinusMinusOp)
719  GEN_VISIT(SgMinusOp)
720  GEN_VISIT(SgModAssignOp)
721  GEN_VISIT(SgModOp)
722  GEN_VISIT(SgModifier)
723  GEN_VISIT(SgModifierNodes)
724  GEN_VISIT(SgModifierType)
725  GEN_VISIT(SgModuleStatement)
726  GEN_VISIT(SgModuleSymbol)
727  GEN_VISIT(SgMultAssignOp)
728  GEN_VISIT(SgMultiplyOp)
729  GEN_VISIT(SgName)
730  GEN_VISIT(SgNameGroup)
731  GEN_VISIT(SgNamedType)
732  GEN_VISIT(SgNamelistStatement)
736  GEN_VISIT(SgNamespaceSymbol)
737  GEN_VISIT(SgNaryOp)
738  GEN_VISIT(SgNaryBooleanOp)
739  GEN_VISIT(SgNaryComparisonOp)
740  GEN_VISIT(SgNewExp)
741  GEN_VISIT(SgNode)
742  GEN_VISIT(SgNoexceptOp)
743  GEN_VISIT(SgNotEqualOp)
744  GEN_VISIT(SgNotOp)
745  GEN_VISIT(SgNonMembershipOp)
746  GEN_VISIT(SgNonrealDecl)
747  GEN_VISIT(SgNonrealRefExp)
748  GEN_VISIT(SgNonrealSymbol)
749  GEN_VISIT(SgNonrealType)
750  GEN_VISIT(SgNonrealBaseClass)
751  GEN_VISIT(SgNullExpression)
752  GEN_VISIT(SgNullptrValExp)
753  GEN_VISIT(SgNullStatement)
754  GEN_VISIT(SgNullifyStatement)
755  GEN_VISIT(SgOmpAtomicStatement)
756  GEN_VISIT(SgOmpBarrierStatement)
757  GEN_VISIT(SgOmpCriticalStatement)
758  GEN_VISIT(SgOmpClauseBodyStatement)
759  GEN_VISIT(SgOmpBodyStatement)
760  GEN_VISIT(SgOmpDoStatement)
761  GEN_VISIT(SgOmpFlushStatement)
762  GEN_VISIT(SgOmpDeclareSimdStatement)
763  GEN_VISIT(SgOmpForStatement)
764  GEN_VISIT(SgOmpForSimdStatement)
765  GEN_VISIT(SgOmpMasterStatement)
766  GEN_VISIT(SgOmpOrderedStatement)
767  GEN_VISIT(SgOmpParallelStatement)
768  GEN_VISIT(SgOmpSectionStatement)
769  GEN_VISIT(SgOmpSectionsStatement)
770  GEN_VISIT(SgOmpSingleStatement)
771  GEN_VISIT(SgOmpTaskStatement)
772  GEN_VISIT(SgOmpTaskwaitStatement)
773  GEN_VISIT(SgOmpThreadprivateStatement)
774  GEN_VISIT(SgOmpWorkshareStatement)
775  GEN_VISIT(SgOmpTargetStatement)
776  GEN_VISIT(SgOmpTargetDataStatement)
777  GEN_VISIT(SgOmpSimdStatement)
778  GEN_VISIT(SgOmpClause)
779  GEN_VISIT(SgOmpBeginClause)
780  GEN_VISIT(SgOmpCollapseClause)
781  GEN_VISIT(SgOmpCopyinClause)
782  GEN_VISIT(SgOmpCopyprivateClause)
783  GEN_VISIT(SgOmpDefaultClause)
784  GEN_VISIT(SgOmpEndClause)
785  GEN_VISIT(SgOmpExpressionClause)
786  GEN_VISIT(SgOmpFirstprivateClause)
787  GEN_VISIT(SgOmpIfClause)
788  GEN_VISIT(SgOmpFinalClause)
789  GEN_VISIT(SgOmpPriorityClause)
790  GEN_VISIT(SgOmpDeviceClause)
791  GEN_VISIT(SgOmpLastprivateClause)
792  GEN_VISIT(SgOmpNowaitClause)
793  GEN_VISIT(SgOmpNumThreadsClause)
794  GEN_VISIT(SgOmpOrderedClause)
795  GEN_VISIT(SgOmpPrivateClause)
796  GEN_VISIT(SgOmpReductionClause)
797  GEN_VISIT(SgOmpScheduleClause)
798  GEN_VISIT(SgOmpSharedClause)
799  GEN_VISIT(SgOmpUntiedClause)
800  GEN_VISIT(SgOmpMergeableClause)
801  GEN_VISIT(SgOmpVariablesClause)
802  GEN_VISIT(SgOmpMapClause)
803  GEN_VISIT(SgOmpSafelenClause)
804  GEN_VISIT(SgOmpSimdlenClause)
805  GEN_VISIT(SgOmpLinearClause)
806  GEN_VISIT(SgOmpUniformClause)
807  GEN_VISIT(SgOmpAlignedClause)
808  GEN_VISIT(SgOmpProcBindClause)
809  GEN_VISIT(SgOmpAtomicClause)
810  GEN_VISIT(SgOmpInbranchClause)
811  GEN_VISIT(SgOmpNotinbranchClause)
812  GEN_VISIT(SgOmpDependClause)
813  GEN_VISIT(SgOpenclAccessModeModifier)
814  GEN_VISIT(SgOpenStatement)
815  GEN_VISIT(SgOptions)
816  GEN_VISIT(SgOrOp)
817  GEN_VISIT(SgParameterStatement)
819  GEN_VISIT(SgPartialFunctionType)
820  GEN_VISIT(SgPassStatement)
821  GEN_VISIT(SgPlusAssignOp)
822  GEN_VISIT(SgPlusPlusOp)
823  GEN_VISIT(SgPntrArrRefExp)
824  GEN_VISIT(SgPointerAssignOp)
825  GEN_VISIT(SgPointerDerefExp)
826  GEN_VISIT(SgPointerMemberType)
827  GEN_VISIT(SgPointerType)
828  GEN_VISIT(SgPowerOp)
829  GEN_VISIT(SgPragma)
830  GEN_VISIT(SgPragmaDeclaration)
831  GEN_VISIT(SgPrintStatement)
832  GEN_VISIT(SgProcedureHeaderStatement)
833  GEN_VISIT(SgProgramHeaderStatement)
834  GEN_VISIT(SgProject)
835  GEN_VISIT(SgPseudoDestructorRefExp)
836  GEN_VISIT(SgPythonGlobalStmt)
837  GEN_VISIT(SgPythonPrintStmt)
838  GEN_VISIT(SgQualifiedName)
839  GEN_VISIT(SgQualifiedNameType)
840  GEN_VISIT(SgRangeExp)
841  GEN_VISIT(SgRangeBasedForStatement)
842  GEN_VISIT(SgReadStatement)
843  GEN_VISIT(SgRealPartOp)
844  GEN_VISIT(SgRefExp)
845  GEN_VISIT(SgReferenceType)
846  GEN_VISIT(SgRemOp)
847  GEN_VISIT(SgRenamePair)
848  GEN_VISIT(SgRenameSymbol)
849  GEN_VISIT(SgReplicationOp)
850  GEN_VISIT(SgReturnStmt)
851  GEN_VISIT(SgRewindStatement)
852  GEN_VISIT(SgRshiftAssignOp)
853  GEN_VISIT(SgRshiftOp)
854  GEN_VISIT(SgRvalueReferenceType)
856  GEN_VISIT(SgJavaUnsignedRshiftOp)
857  GEN_VISIT(SgScopeOp)
858  GEN_VISIT(SgScopeStatement)
859  GEN_VISIT(SgSequenceStatement)
860  GEN_VISIT(SgSetComprehension)
861  GEN_VISIT(SgShortVal)
862  GEN_VISIT(SgSizeOfOp)
863  GEN_VISIT(SgAlignOfOp)
864  GEN_VISIT(SgJavaInstanceOfOp)
865  GEN_VISIT(SgSourceFile)
866  GEN_VISIT(SgSpaceshipOp)
867  GEN_VISIT(SgSpawnStmt)
868  GEN_VISIT(SgSyncAllStatement)
869  GEN_VISIT(SgSyncImagesStatement)
870  GEN_VISIT(SgSyncMemoryStatement)
871  GEN_VISIT(SgSyncTeamStatement)
872  GEN_VISIT(SgLockStatement)
873  GEN_VISIT(SgUnlockStatement)
874  GEN_VISIT(SgJavaThrowStatement)
875  GEN_VISIT(SgJavaForEachStatement)
876  GEN_VISIT(SgJavaSynchronizedStatement)
877  GEN_VISIT(SgJavaParameterizedType)
878  GEN_VISIT(SgJavaWildcardType)
879  GEN_VISIT(SgProcessControlStatement)
880  GEN_VISIT(SgSpecialFunctionModifier)
881  GEN_VISIT(SgStatement)
883  GEN_VISIT(SgStmtDeclarationStatement)
884  GEN_VISIT(SgStatementExpression)
886  GEN_VISIT(SgStorageModifier)
887  GEN_VISIT(SgStringConversion)
889  GEN_VISIT(SgStringVal)
890  GEN_VISIT(SgStructureModifier)
891  GEN_VISIT(SgSubscriptExpression)
892  GEN_VISIT(SgSubtractOp)
893  GEN_VISIT(SgSupport)
894  GEN_VISIT(SgSwitchStatement)
895  GEN_VISIT(SgSymbol)
896  GEN_VISIT(SgSymbolTable)
897  GEN_VISIT(SgTemplateArgument)
898  GEN_VISIT(SgTemplateArgumentList)
899  GEN_VISIT(SgTemplateDeclaration)
900  GEN_VISIT(SgTemplateClassDeclaration)
901  GEN_VISIT(SgTemplateClassSymbol)
903  GEN_VISIT(SgTemplateFunctionRefExp)
904  GEN_VISIT(SgTemplateFunctionSymbol)
909  GEN_VISIT(SgTemplateTypedefSymbol)
911  GEN_VISIT(SgTemplateVariableSymbol)
912  GEN_VISIT(SgTemplateClassDefinition)
914  GEN_VISIT(SgTemplateInstantiationDecl)
915  GEN_VISIT(SgTemplateInstantiationDefn)
920  GEN_VISIT(SgTemplateParameter)
921  GEN_VISIT(SgTemplateParameterVal)
922  GEN_VISIT(SgTemplateParameterList)
923  GEN_VISIT(SgTemplateSymbol)
924  GEN_VISIT(SgTemplateType)
925  GEN_VISIT(SgThisExp)
926  GEN_VISIT(SgTypeTraitBuiltinOperator)
927  GEN_VISIT(SgSuperExp)
928  GEN_VISIT(SgThrowOp)
929  GEN_VISIT(SgToken)
930  GEN_VISIT(SgTryStmt)
931  GEN_VISIT(SgTupleExp)
932  GEN_VISIT(SgType)
933  GEN_VISIT(SgTypeBool)
934  GEN_VISIT(SgTypeChar)
935  GEN_VISIT(SgTypeChar16)
936  GEN_VISIT(SgTypeChar32)
937  GEN_VISIT(SgTypeComplex)
938  GEN_VISIT(SgTypeDefault)
939  GEN_VISIT(SgTypeExpression)
940  GEN_VISIT(SgTypeLabel)
941  GEN_VISIT(SgTypeDouble)
942  GEN_VISIT(SgTypeEllipse)
943  GEN_VISIT(SgTypeFixed)
944  GEN_VISIT(SgTypeFloat)
945  GEN_VISIT(SgTypeFloat128)
946  GEN_VISIT(SgTypeFloat80)
947  GEN_VISIT(SgTypeGlobalVoid)
948  GEN_VISIT(SgTypeIdOp)
949  GEN_VISIT(SgTypeImaginary)
950  GEN_VISIT(SgTypeInt)
951  GEN_VISIT(SgTypeLong)
952  GEN_VISIT(SgTypeLongDouble)
953  GEN_VISIT(SgTypeLongLong)
954  GEN_VISIT(SgTypeModifier)
955  GEN_VISIT(SgTypeMatrix)
956  GEN_VISIT(SgTypeTuple)
957  GEN_VISIT(SgTypeNullptr)
958  GEN_VISIT(SgTypeOfType)
959  GEN_VISIT(SgTypeShort)
960  GEN_VISIT(SgTypeSigned128bitInteger)
961  GEN_VISIT(SgTypeSignedChar)
962  GEN_VISIT(SgTypeSignedInt)
963  GEN_VISIT(SgTypeSignedLong)
964  GEN_VISIT(SgTypeSignedLongLong)
965  GEN_VISIT(SgTypeSignedShort)
966  GEN_VISIT(SgTypeString)
967  GEN_VISIT(SgTypeUnknown)
968  GEN_VISIT(SgTypeUnsigned128bitInteger)
969  GEN_VISIT(SgTypeUnsignedChar)
970  GEN_VISIT(SgTypeUnsignedInt)
971  GEN_VISIT(SgTypeUnsignedLong)
972  GEN_VISIT(SgTypeUnsignedLongLong)
973  GEN_VISIT(SgTypeUnsignedShort)
974  GEN_VISIT(SgTypeVoid)
975  GEN_VISIT(SgTypeWchar)
976  GEN_VISIT(SgTypedefDeclaration)
977  GEN_VISIT(SgTypedefSeq)
978  GEN_VISIT(SgTypedefSymbol)
979  GEN_VISIT(SgTypedefType)
980  GEN_VISIT(SgUPC_AccessModifier)
981  GEN_VISIT(SgUnaryAddOp)
982  GEN_VISIT(SgUnaryOp)
983  GEN_VISIT(SgUndefDirectiveStatement)
984  GEN_VISIT(SgUndirectedGraphEdge)
986  GEN_VISIT(SgUnknownFile)
987  GEN_VISIT(SgUnparse_Info)
988  GEN_VISIT(SgUnsignedCharVal)
989  GEN_VISIT(SgUnsignedIntVal)
990  GEN_VISIT(SgUnsignedLongLongIntVal)
991  GEN_VISIT(SgUnsignedLongVal)
992  GEN_VISIT(SgUnsignedShortVal)
993  GEN_VISIT(SgUpcBarrierStatement)
994  GEN_VISIT(SgUpcBlocksizeofExpression)
995  GEN_VISIT(SgUpcElemsizeofExpression)
996  GEN_VISIT(SgUpcFenceStatement)
997  GEN_VISIT(SgUpcForAllStatement)
998  GEN_VISIT(SgUpcLocalsizeofExpression)
999  GEN_VISIT(SgUpcMythread)
1000  GEN_VISIT(SgUpcNotifyStatement)
1001  GEN_VISIT(SgUpcThreads)
1002  GEN_VISIT(SgUpcWaitStatement)
1003  GEN_VISIT(SgUseStatement)
1004  GEN_VISIT(SgUserDefinedBinaryOp)
1005  GEN_VISIT(SgUserDefinedUnaryOp)
1006  GEN_VISIT(SgUsingDeclarationStatement)
1007  GEN_VISIT(SgUsingDirectiveStatement)
1008  GEN_VISIT(SgValueExp)
1009  GEN_VISIT(SgVarArgCopyOp)
1010  GEN_VISIT(SgVarArgEndOp)
1011  GEN_VISIT(SgVarArgOp)
1012  GEN_VISIT(SgVarArgStartOneOperandOp)
1013  GEN_VISIT(SgVarArgStartOp)
1014  GEN_VISIT(SgVarRefExp)
1015  GEN_VISIT(SgVariableDeclaration)
1016  GEN_VISIT(SgVariableDefinition)
1017  GEN_VISIT(SgVariableSymbol)
1018  GEN_VISIT(SgVariantExpression)
1019  GEN_VISIT(SgVariantStatement)
1020  GEN_VISIT(SgVoidVal)
1021  GEN_VISIT(SgWaitStatement)
1022  GEN_VISIT(SgWarningDirectiveStatement)
1023  GEN_VISIT(SgWithStatement)
1024  GEN_VISIT(SgWcharVal)
1025  GEN_VISIT(SgWhereStatement)
1026  GEN_VISIT(SgWhileStmt)
1027  GEN_VISIT(SgWriteStatement)
1028  GEN_VISIT(SgXorAssignOp)
1029  GEN_VISIT(SgYieldExpression)
1030  GEN_VISIT(Sg_File_Info)
1031  GEN_VISIT(SgTypeCAFTeam)
1032  GEN_VISIT(SgCAFWithTeamStatement)
1033  GEN_VISIT(SgCAFCoExpression)
1034  GEN_VISIT(SgCallExpression)
1035  GEN_VISIT(SgTypeCrayPointer)
1036  GEN_VISIT(SgJavaImportStatement)
1037  GEN_VISIT(SgJavaPackageDeclaration)
1038  GEN_VISIT(SgJavaPackageStatement)
1039  GEN_VISIT(SgJavaImportStatementList)
1040  GEN_VISIT(SgJavaClassDeclarationList)
1041  GEN_VISIT(SgJavaMemberValuePair)
1042  GEN_VISIT(SgJavaAnnotation)
1043  GEN_VISIT(SgJavaMarkerAnnotation)
1044  GEN_VISIT(SgJavaSingleMemberAnnotation)
1045  GEN_VISIT(SgJavaNormalAnnotation)
1046  GEN_VISIT(SgJavaTypeExpression)
1047  GEN_VISIT(SgJavaQualifiedType)
1048  GEN_VISIT(SgClassExp)
1049  GEN_VISIT(SgJavaUnionType)
1050  GEN_VISIT(SgJavaParameterType)
1051  GEN_VISIT(SgAsyncStmt)
1052  GEN_VISIT(SgFinishStmt)
1053  GEN_VISIT(SgAtStmt)
1054  GEN_VISIT(SgAtomicStmt)
1055 // GEN_VISIT(SgClassPropertyList)
1056  GEN_VISIT(SgWhenStmt)
1057  GEN_VISIT(SgAtExp)
1058  GEN_VISIT(SgFinishExp)
1059  GEN_VISIT(SgHereExp)
1060  GEN_VISIT(SgDotDotExp)
1061  GEN_VISIT(SgAdaOthersExp)
1062  GEN_VISIT(SgAdaUnitRefExp)
1063  GEN_VISIT(SgAdaDiscriminatedTypeDecl)
1064  GEN_VISIT(SgAdaDiscriminatedType)
1065  GEN_VISIT(SgAdaDiscriminantConstraint)
1066  GEN_VISIT(SgAdaVariantFieldDecl)
1067 
1068 #if WITH_BINARY_NODES
1069  GEN_VISIT(SgAsmNullInstruction)
1070 #endif /* WITH_BINARY_NODES */
1071 
1072 /*
1073  GEN_VISIT(SgBinaryComposite)
1074  GEN_VISIT(SgComprehensionList)
1075  *
1076  GEN_VISIT(SgDirectedGraph)
1077  GEN_VISIT(SgDirectedGraphEdge)
1078  GEN_VISIT(SgDirectedGraphNode)
1079 
1080  GEN_VISIT(SgUnknownMemberFunctionType)
1081 */
1082 
1083  RoseVisitor rv;
1084  };
1085 
1086 #undef GEN_VISIT
1087 
1088  template <class RoseVisitor>
1089  inline
1090  typename std::remove_const<typename std::remove_reference<RoseVisitor>::type>::type
1091  _dispatch(RoseVisitor&& rv, SgNode* n)
1092  {
1093  typedef typename std::remove_reference<RoseVisitor>::type RoseVisitorNoref;
1094  typedef typename std::remove_const<RoseVisitorNoref>::type RoseHandler;
1095 
1096  ROSE_ASSERT(n);
1097 
1098  VisitDispatcher<RoseHandler> vis( std::forward<RoseVisitor>(rv),
1099  std::is_lvalue_reference<RoseVisitor>()
1100  );
1101 
1102  n->accept(vis);
1103  return std::move(vis).rv;
1104  }
1105 
1106 
1162 #if 0
1163 #endif
1174 
1175  template <class RoseVisitor>
1176  inline
1177  typename std::remove_const<typename std::remove_reference<RoseVisitor>::type>::type
1178  dispatch(RoseVisitor&& rv, SgNode* n)
1179  {
1180  //~ return std::move(rv);
1181  return _dispatch(std::forward<RoseVisitor>(rv), n);
1182  }
1183 
1184  template <class RoseVisitor>
1185  inline
1186  typename std::remove_const<typename std::remove_reference<RoseVisitor>::type>::type
1187  dispatch(RoseVisitor&& rv, const SgNode* n)
1188  {
1189  //~ return std::move(rv);
1190  return _dispatch(std::forward<RoseVisitor>(rv), const_cast<SgNode*>(n));
1191  }
1192 
1202  template <class SageNode>
1204  {
1205  void handle(SageNode&) {}
1206  };
1207 
1215  template <class AncestorNode, class QualSgNode>
1216  struct AncestorTypeFinder : DefaultHandler<const SgProject>
1217  {
1219  typedef std::pair<AncestorNode*, QualSgNode*> Pair;
1220 
1221  Pair res;
1222 
1224  : Base(), res(NULL, NULL)
1225  {}
1226 
1227  // handling of const SgProject is outsourced to DefaultHandler
1228  // thus, AncestorNode = const SgProject does not cause conflicts
1229  using Base::handle;
1230 
1231  void handle(QualSgNode& n) { res.second = n.get_parent(); }
1232  void handle(AncestorNode& n) { res.first = &n; }
1233 
1234  operator Pair() const { return res; }
1235  };
1236 
1239  template <class AncestorNode, class QualSgNode>
1240  AncestorNode* _ancestor(QualSgNode& n)
1241  {
1242  typedef AncestorTypeFinder<AncestorNode, QualSgNode> AncestorFinder;
1243 
1244  typename AncestorFinder::Pair res(NULL, n.get_parent());
1245 
1246  while (res.second != NULL)
1247  {
1248  res = (typename AncestorFinder::Pair) sg::dispatch(AncestorFinder(), res.second);
1249  }
1250 
1251  return res.first;
1252  }
1253 
1265  template <class AncestorNode>
1266  AncestorNode* ancestor(SgNode* n)
1267  {
1268  if (n == NULL) return NULL;
1269 
1270  return _ancestor<AncestorNode>(*n);
1271  }
1272 
1274  template <class AncestorNode>
1275  const AncestorNode* ancestor(const SgNode* n)
1276  {
1277  if (n == NULL) return NULL;
1278 
1279  return _ancestor<const AncestorNode>(*n);
1280  }
1281 
1283  template <class AncestorNode>
1284  AncestorNode& ancestor(SgNode& n)
1285  {
1286  AncestorNode* res = _ancestor<AncestorNode>(n);
1287 
1288  ROSE_ASSERT(res);
1289  return *res;
1290  }
1291 
1293  template <class AncestorNode>
1294  const AncestorNode& ancestor(const SgNode& n)
1295  {
1296  const AncestorNode* res = _ancestor<const AncestorNode>(n);
1297 
1298  ROSE_ASSERT(res);
1299  return *res;
1300  }
1301 
1303  template <class SageNode>
1304  struct TypeRecoveryHandler
1305  {
1306  typedef typename ConstLike<SageNode, SgNode>::type SgBaseNode;
1307 
1308  TypeRecoveryHandler(const char* f = 0, size_t ln = 0)
1309  : res(NULL), loc(f), loc_ln(ln)
1310  {}
1311 
1312  TypeRecoveryHandler(TypeRecoveryHandler&&) = default;
1313  TypeRecoveryHandler& operator=(TypeRecoveryHandler&&) = default;
1314 
1315  operator SageNode* ()&& { return res; }
1316 
1317  void handle(SgBaseNode& n) { unexpected_node(n, loc, loc_ln); }
1318  void handle(SageNode& n) { res = &n; }
1319 
1320  private:
1321  SageNode* res;
1322  const char* loc;
1323  size_t loc_ln;
1324 
1325  TypeRecoveryHandler() = delete;
1326  TypeRecoveryHandler(const TypeRecoveryHandler&) = delete;
1327  TypeRecoveryHandler& operator=(const TypeRecoveryHandler&) = delete;
1328  };
1329 
1330 
1339  template <class SageNode>
1340  SageNode* assert_sage_type(SgNode* n, const char* f = 0, size_t ln = 0)
1341  {
1342  return sg::dispatch(TypeRecoveryHandler<SageNode>(f, ln), n);
1343  }
1344 
1345  template <class SageNode>
1346  const SageNode* assert_sage_type(const SgNode* n, const char* f = 0, size_t ln = 0)
1347  {
1348  return sg::dispatch(TypeRecoveryHandler<const SageNode>(f, ln), n);
1349  }
1350 
1351  template <class SageNode>
1352  SageNode& assert_sage_type(SgNode& n, const char* f = 0, size_t ln = 0)
1353  {
1354  return *sg::dispatch(TypeRecoveryHandler<SageNode>(f, ln), &n);
1355  }
1356 
1357  template <class SageNode>
1358  const SageNode& assert_sage_type(const SgNode& n, const char* f = 0, size_t ln = 0)
1359  {
1360  return *sg::dispatch(TypeRecoveryHandler<const SageNode>(f, ln), &n);
1361  }
1363 
1366  static inline
1367  void swap_parent(SgNode* lhs, SgNode* rhs)
1368  {
1369  SgNode* tmp = lhs->get_parent();
1370 
1371  lhs->set_parent(rhs->get_parent());
1372  rhs->set_parent(tmp);
1373  }
1374 
1378  static inline
1379  void swap_parent(void*, void*) {}
1380 
1388  template <class SageNode, class SageChild>
1389  void swap_child(SageNode& lhs, SageNode& rhs, SageChild* (SageNode::*getter) () const, void (SageNode::*setter) (SageChild*))
1390  {
1391  SageChild* lhs_child = (lhs.*getter)();
1392  SageChild* rhs_child = (rhs.*getter)();
1393  ROSE_ASSERT(lhs_child && rhs_child);
1394 
1395  (lhs.*setter)(rhs_child);
1396  (rhs.*setter)(lhs_child);
1397 
1398  swap_parent(lhs_child, rhs_child);
1399  }
1400 
1401 
1404  template <class SageNode>
1406  {
1407  typedef void (*TransformHandlerFn)(SageNode*);
1408 
1409  explicit
1410  TraversalFunction(TransformHandlerFn fun)
1411  : fn(fun)
1412  {}
1413 
1414  void handle(SgNode&) { /* ignore */ }
1415  void handle(SageNode& n) { fn(&n); }
1416 
1417  TransformHandlerFn fn;
1418  };
1419 
1422  template <class SageNode>
1423  static inline
1425  createTraversalFunction(void (* fn)(SageNode*))
1426  {
1427  return TraversalFunction<SageNode>(fn);
1428  }
1429 
1430  //
1431  // function type extractor
1432  // see https://stackoverflow.com/questions/28033251/can-you-extract-types-from-template-parameter-function-signature
1433 
1434 
1435  template <class GVisitor>
1437  {
1438  explicit
1439  TraversalClass(GVisitor gv)
1440  : gvisitor(gv)
1441  //~ : gvisitor(std::move(gv))
1442  {}
1443 
1444  void visit(SgNode* n)
1445  {
1446  gvisitor = sg::dispatch(gvisitor, n);
1447  }
1448 
1449  // GVisitor&& visitor() { return std::move(gvisitor); }
1450  GVisitor visitor() { return gvisitor; }
1451 
1452  GVisitor gvisitor;
1453  };
1454 
1455 
1456 
1463  template <class F>
1464  static inline
1465  F
1466  forAllNodes(F fn, SgNode* root, AstSimpleProcessing::Order order = postorder)
1467  {
1468  ROSE_ASSERT(root);
1469 
1470  TraversalClass<F> tt(fn);
1471  //~ TraversalClass<F> tt(std::move(fn));
1472 
1473  tt.traverse(root, order);
1474  return tt.visitor();
1475  }
1476 
1477  template <class SageNode>
1478  static inline
1479  void
1480  forAllNodes(void (*fn)(SageNode*), SgNode* root, AstSimpleProcessing::Order order = postorder)
1481  {
1482  forAllNodes(createTransformExecutor(fn), root, order);
1483  }
1484 
1485 #if !defined(NDEBUG)
1486  static inline
1487  std::string nodeType(const SgNode& n)
1488  {
1489  return typeid(n).name();
1490  }
1491 
1492  static inline
1493  std::string nodeType(const SgNode* n)
1494  {
1495  if (n == NULL) return "<null>";
1496 
1497  return nodeType(*n);
1498  }
1499 #endif
1500 
1501  template <class GVisitor>
1503  {
1504  explicit
1505  DispatchHelper(GVisitor gv, SgNode* p)
1506  : gvisitor(std::move(gv)), parent(p), cnt(0)
1507  {}
1508 
1509  void operator()(SgNode* n)
1510  {
1511  ++cnt;
1512 
1513 #if 0
1514  if (n == NULL)
1515  {
1516  std::cerr << "succ(" << nodeType(parent) << ", " << cnt << ") is null" << std::endl;
1517  return;
1518  }
1519 #endif
1520 
1521  if (n != NULL) gvisitor = sg::dispatch(std::move(gvisitor), n);
1522  }
1523 
1524  operator GVisitor()&& { return std::move(gvisitor); }
1525 
1526  GVisitor gvisitor;
1527  SgNode* parent;
1528  size_t cnt;
1529  };
1530 
1531 
1532  template <class GVisitor>
1533  static inline
1535  dispatchHelper(GVisitor gv, SgNode* parent = NULL)
1536  {
1537  return DispatchHelper<GVisitor>(std::move(gv), parent);
1538  }
1539 
1540  template <class GVisitor>
1541  static inline
1542  GVisitor traverseChildren(GVisitor gv, SgNode& n)
1543  {
1544  std::vector<SgNode*> successors = n.get_traversalSuccessorContainer();
1545 
1546  return std::for_each(successors.begin(), successors.end(), dispatchHelper(std::move(gv), &n));
1547  }
1548 
1549  template <class GVisitor>
1550  static inline
1551  GVisitor traverseChildren(GVisitor gv, SgNode* n)
1552  {
1553  return traverseChildren(gv, sg::deref(n));
1554  }
1555 
1556  template <class SageParent, class SageChild>
1557  void linkParentChild(SageParent& parent, SageChild& child, void (SageParent::*setter)(SageChild*))
1558  {
1559  (parent.*setter)(&child);
1560  child.set_parent(&parent);
1561  }
1562 }
1563 #endif /* _SAGEGENERIC_H */
This class represents modifiers for SgDeclaration (declaration statements).
List of pointers to file sections.
This class represents the notion of an initializer for a variable declaration or expression in a func...
This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).
The GNU symbol version definitions.
This class represents the concept of a C++ template instantiation directive.
This class represents the concept of an instantiation of member function template or a member functio...
This class represents the concept of a class declaration statement. It includes the concept of an ins...
This class represents the concept of a declaration list.
This class represents a boolean value (expression value).
One entry of the ELF symbol version needed table.
This class represents a OLD concept of the structure require for qualified names when they were in th...
This class represents the notion of an n-ary comparison operation. This node is intended for use with...
String associated with a binary file.
Expression that adds two operands.
This class represents the concept of an instantiated class template.
This class represents the notion of an value (expression value).
This class represents the concept of a C or C++ goto statement.
List of dynamic linking section entries.
Contiguous region of a file.
This class represents the concept of the dynamic execution of a string, file, or code object...
This class represents the concept of a C or C++ statement which contains a expression.
Expression representing a (no-op) unary plus operation.
Base class for references to a machine register.
This class represents the notion of a binary operator. It is derived from a SgExpression because oper...
Expression that performs a right rotate.
Auxiliary info for needed symbol version.
Instruction basic block.
Base class for all binary analysis IR nodes.
This class represents a source file for a project (which may contian many source files and or directo...
List of entries for the ELF symbol version definition table.
This class represents the variable declaration or variable initialization withn a for loop...
One entry of an ELF relocation table.
This class represents the concept of a C++ sequence of catch statements.
This class represents the notion of a unary operator. It is derived from a SgExpression because opera...
Represents the file header of an ELF binary container.
This class represents the GNU extension "statement expression" (thus is non-standard C and C++)...
Class for traversing the AST.
This class represents the C++ throw expression (handled as a unary operator).
This class represents the rhs of a variable declaration which includes an optional assignment (e...
Portable Executable Import Section.
This class represents the concept of a C++ using directive.
AncestorNode * _ancestor(QualSgNode &n)
implements the ancestor search
Definition: sageGeneric.h:1240
This class represents the base class for all types.
List of generic file headers.
List of binary interpretations.
Base class for machine instructions.
This class represents the concept of a do-while statement.
This class represents a Fortran pointer assignment. It is not some weird compound assignment operator...
Section table entry.
This class represents the concept of a class name within the compiler.
This class represents the location of the code associated with the IR node in the original source cod...
This class represents the concept of an enum declaration.
Base class for scalar types.
List of expression nodes.
This class represents the "this" operator (can be applied to any member data).
Expression that performs an arithmetic, sign-bit preserving right shift.
void set_parent(SgNode *parent)
All nodes in the AST contain a reference to a parent node.
This class represents a string type used for SgStringVal IR node.
This class represents the notion of an n-ary boolean operation. This node is intended for use with Py...
Expression that performs a logical, sign-bit non-preserving right shift.
This class represents the concept of a C style extern "C" declaration. But such information (linkage)...
This class represents the notion of a declared variable.
Strings stored in an ELF or PE container.
This class represents the concept of a member function declaration statement.
Expression that returns the remainder when dividing the first operand by the second.
This class represents the concept of a C and C++ case option (used within a switch statement)...
This class represents the concept of a function declaration statement.
Node to hold a list of symbol node pointers.
Base class for ELF file sections.
This class represents the concept of a C Assembler statement (untested).
This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).
This class represents the notion of an n-ary operator. This node is intended for use with Python...
Expression representing truncation.
Base class for PE sections.
Represents a synthesized function.
This class represents the concept of a C and C++ expression list.
This class represents the "sizeof()" operator (applied to any type).
void swap_child(SageNode &lhs, SageNode &rhs, SageChild *(SageNode::*getter)() const, void(SageNode::*setter)(SageChild *))
swaps children (of equal kind) between two ancestor nodes of the same type
Definition: sageGeneric.h:1389
Expression that divides the first operand by the second.
Hods a list of symbol version aux entries.
AncestorNode * ancestor(SgNode *n)
finds an ancestor node with a given type
Definition: sageGeneric.h:1266
COFF symbol string table.
Basic information about an executable container.
This class represents the concept of a C++ namespace alias declaration statement. ...
This class is not used in ROSE, but is intended to represent a list of SgModifierTypes (similar to th...
This class represents the base class of a numbr of IR nodes that don't otherwise fit into the existin...
Entry in an ELF symbol version table.
This class represents a directory within a projects file structure of files and directories.
This class represents the notion of an value (expression value).
ELF error handling frame entry frame description entry.
This class represents the concept of a C trinary conditional expression (e.g. "test ...
Represents an ELF relocation section.
This class represents the notion of an expression. Expressions are derived from SgLocatedNodes, since similar to statement, expressions have a concrete location within the user's source code.
One import directory per library.
void visit(SgNode *n)
this method is called at every traversed node.
Definition: sageGeneric.h:1444
GNU symbol version requirements table.
List of ELF relocation entries.
This class represents the notion of a break statement (typically used in a switch statment)...
List of AST file node pointers.
This class represents the concept of a name within the compiler.
ELF section containing dynamic linking information.
executes a functor for a specific node type
Definition: sageGeneric.h:1405
Represents the file header for DOS executables.
T & deref(T *ptr, const char *file=0, size_t ln=0)
dereferences an object (= checked dereference in debug mode)
Definition: sageGeneric.h:98
List of ELF EH frame CI entries.
struct DefaultHandler
Definition: sageGeneric.h:1203
Represents an ELF EH frame section.
One entry of an ELF notes table.
ELF string table section.
This class represents the concept of a class definition in C++.
This class represents strings within the IR nodes.
Reference to memory locations.
projects the constness of T1 on T2
Definition: sageGeneric.h:49
This class is intended to be a wrapper around SgStatements, allowing them to exist in scopes that onl...
struct DispatchHandler
Definition: sageGeneric.h:117
An ordered list of registers.
This class represents the concept of a contructor initializer list (used in constructor (member funct...
Base class for container file headers.
Expression represting negation.
List of pointers to other AST nodes.
Expression representing a machine register.
Base class for integer values.
This class represents the concept of a namespace name within the compiler.
This class represents the notion of a typedef declaration.
ELF file section containing symbols.
This class represents the notion of an value (expression value).
This class represents the base class for all IR nodes within Sage III.
Definition: Cxx_Grammar.h:9555
List of operands for an instruction.
This class represents the concept of a catch within a try-catch construct used in C++ exception handl...
Base class for dynamically linked library information.
This class represents the notion of an value (expression value).
This class represents the concept of a variable name within the compiler (a shared container for the ...
This class represents a lambda expression.
This class represents the concept of an instantiation of function template.
This class represents the physical disequality (often called pointer disequality) operator for langua...
This class represents the "&" operator (applied to any lvalue).
A single imported object.
This class represents the conversion of an arbitrary expression to a string. This node is intended fo...
Represents one PowerPC machine instruction.
One entry from an ELF symbol version definition table.
Represents a single ELF symbol.
This class represents the base class of a number of IR nodes define modifiers within the C++ grammar...
This class represents the concept of a block (not a basic block from control flow analysis)...
This class represents the concept of a C++ namespace declaration.
This class represents a list display.
This class represents the notion of a statement.
Base class for strings related to binary specimens.
This class represents the concept of a namespace definition.
This class represents the concept of a for loop.
DOS exteded header.
List of COFF symbols.
Represents static data in an executable.
This class represents the physical equality (often called pointer equality) operator for languages th...
Base class for unary expressions.
Base class for many binary analysis nodes.
Represents one Intel x86 machine instruction.
This class represents the concept of a C++ using declaration.
This class represents a C99 complex type.
Base class for statement-like subclasses.
This class represents a tuple display.
This class represents a type for all functions.
This class represents the concept of a namespace definition.
This class represents the numeric negation of a value. Not to be confused with SgSubtractOp.
This class represents the concept of a C Assembler statement (untested).
Represents one entry of a segment table.
This class represents the concept of a C or C++ default case within a switch statement.
Expression representing sign extending.
Base class for expressions.
This namespace contains template functions that operate on the ROSE AST.
Definition: sageFunctors.h:15
This class represents a default type used for some IR nodes (see below).
This class represents the concept of an "if" construct.
virtual std::vector< SgNode * > get_traversalSuccessorContainer()
container of pointers to AST successor nodes used in the traversal overridden in every class by gener...
This class represents the concept of a template declaration.
Expression that performs a logical left shift operation.
List of pointers to other nodes.
This class represents the notion of an expression or statement which has a position within the source...
Expression that multiplies two operands.
This class represents template argument within the use of a template to build an instantiation.
Expression that performs a logical left shift operation filling low-order bits with one...
This class represents the variable refernece in expressions.
Represents one MIPS machine instruction.
Node to hold list of ELF note entries.
This class represents the concept of a do-while statement.
This class represents a OLD concept of the structure require for qualified names when they were in th...
List of entries from a symbol version table.
List of SgAsmPERVASizePair AST nodes.
Expression representing unsigned extending.
Base class for binary types.
This class represents the definition (initialization) of a variable.
This class represents the concept of a class definition in C++.
This class represents the concept of a C++ call to the delete operator.
Export file section.
virtual void accept(ROSE_VisitorPattern &visitor)
support for the classic visitor pattern done in GoF
helper class for _ancestor
Definition: sageGeneric.h:1216
Registers accessed indirectly.
This class represents the concept of a C++ call to the new operator.
This class represents the concept of a C or C++ continue statement.
This class represents an object used to initialize the unparsing.
Base class for values.
Floating-point value.
This class represents the member function being called and must be assembled in the SgFunctionCall wi...
Windows PE file header.
This class represents modifiers specific to storage.
This class represents the symbol tables used in both SgScopeStatement and the SgFunctionTypeSymbolTab...
Expression that subtracts the second operand from the first.
SgNode * get_parent() const
Access function for parent node.
This class represents the function being called and must be assembled in the SgFunctionCall with the ...
std::remove_const< typename std::remove_reference< RoseVisitor >::type >::type dispatch(RoseVisitor &&rv, SgNode *n)
uncovers the type of SgNode and passes it to an function "handle" in RoseVisitor. ...
Definition: sageGeneric.h:1178
This class represents the concept of try statement within the try-catch support for exception handlin...
Base class for synthesized declarations.
This class represents the concept of a C Assembler statement.
This class represents the concept of a name and a type. It may be renamed in the future to SgTypeSymb...
This class represents a list of associated typedefs for the SgType IR nodes which reference this list...
One entry from the dynamic linking table.
This class represents a source project, with a list of SgFile objects and global information about th...
This class represents the concept of a 'global' stmt in Python.
This class represents the function type table (stores all function types so that they can be shared i...
Integer types.
This class represents a C99 complex type.
This class represents the concept of a C or C++ variable declaration.
This class represents the notion of an initializer for a variable declaration or expression in a func...
The ELF symbol version table.
Represents one entry in an ELF section table.
Represents an ELF segment table.
Strings stored in an ELF or PE container.
Represents an ELF section table.
ELF string table.
SageNode * assert_sage_type(SgNode *n, const char *f=0, size_t ln=0)
asserts that n has type SageNode
Definition: sageGeneric.h:1340
A list of imported items.
Represents an interpretation of a binary container.
This class represents the concept of a C or C++ label statement.
List of symbol version needed entries.
Floating point types.
This class is part of the older CC++ concept. It is not a part of C or C++ (this IR node is not used ...
This class represents the concept of a C++ function call (which is an expression).
Base class for binary files.
Base class for binary expressions.
Declaration-like nodes that encapsulate multiple instructions.
Base class for vector types.
This class was part of CC++ support from a long time ago.
Base class for constants.
List of symbol version aux entries.
This class represents the concept of a declaration statement.
This class represents the concept of a generic call expression.
This class represents the concept of a switch.
This class represents the concept of a C++ expression built from a class name.
Static representation of instruction semantics.
A list of PE Import Directories.
ELF error handling frame entry, common information entry.
COFF symbol table.