• Home
  • Raw
  • Download

Lines Matching refs:OS

53   std::pair<Record *, Record *> EmitNode (const ChildMap &Tree, raw_ostream& OS,
62 void run(raw_ostream &OS);
74 raw_ostream &OS, in EmitNode() argument
91 OS << "#ifndef " << NodeName << "\n"; in EmitNode()
92 OS << "# define " << NodeName << "(Type, Base) " in EmitNode()
94 OS << "#endif\n"; in EmitNode()
97 OS << "ABSTRACT_" << macroName(Root.getName()) << "(" << NodeName << "(" in EmitNode()
100 OS << NodeName << "(" << R->getName() << ", " in EmitNode()
105 = EmitNode(Tree, OS, R); in EmitNode()
119 OS << "#undef " << NodeName << "\n\n"; in EmitNode()
125 OS << "LAST_" << macroName(Root.getName()) << "_RANGE("; in EmitNode()
127 OS << macroName(Root.getName()) << "_RANGE("; in EmitNode()
128 OS << Base->getName() << ", " << First->getName() << ", " in EmitNode()
135 void ClangASTNodesEmitter::run(raw_ostream &OS) { in run() argument
136 emitSourceFileHeader("List of AST nodes of a particular kind", OS); in run()
139 OS << "#ifndef ABSTRACT_" << macroName(Root.getName()) << "\n"; in run()
140 OS << "# define ABSTRACT_" << macroName(Root.getName()) << "(Type) Type\n"; in run()
141 OS << "#endif\n"; in run()
143 OS << "#ifndef " << macroName(Root.getName()) << "_RANGE\n"; in run()
144 OS << "# define " in run()
146 OS << "#endif\n\n"; in run()
148 OS << "#ifndef LAST_" << macroName(Root.getName()) << "_RANGE\n"; in run()
149 OS << "# define LAST_" in run()
152 OS << "#endif\n\n"; in run()
169 EmitNode(Tree, OS, &Root); in run()
171 OS << "#undef " << macroName(Root.getName()) << "\n"; in run()
172 OS << "#undef " << macroName(Root.getName()) << "_RANGE\n"; in run()
173 OS << "#undef LAST_" << macroName(Root.getName()) << "_RANGE\n"; in run()
174 OS << "#undef ABSTRACT_" << macroName(Root.getName()) << "\n"; in run()
178 void EmitClangASTNodes(RecordKeeper &RK, raw_ostream &OS, in EmitClangASTNodes() argument
180 ClangASTNodesEmitter(RK, N, S).run(OS); in EmitClangASTNodes()
185 void EmitClangDeclContext(RecordKeeper &Records, raw_ostream &OS) { in EmitClangDeclContext() argument
188 emitSourceFileHeader("List of AST Decl nodes", OS); in EmitClangDeclContext()
190 OS << "#ifndef DECL_CONTEXT\n"; in EmitClangDeclContext()
191 OS << "# define DECL_CONTEXT(DECL)\n"; in EmitClangDeclContext()
192 OS << "#endif\n"; in EmitClangDeclContext()
194 OS << "#ifndef DECL_CONTEXT_BASE\n"; in EmitClangDeclContext()
195 OS << "# define DECL_CONTEXT_BASE(DECL) DECL_CONTEXT(DECL)\n"; in EmitClangDeclContext()
196 OS << "#endif\n"; in EmitClangDeclContext()
212 OS << "DECL_CONTEXT_BASE(" << B->getName() << ")\n"; in EmitClangDeclContext()
224 OS << "DECL_CONTEXT(" << (*i)->getName() << ")\n"; in EmitClangDeclContext()
226 OS << "#undef DECL_CONTEXT\n"; in EmitClangDeclContext()
227 OS << "#undef DECL_CONTEXT_BASE\n"; in EmitClangDeclContext()