OLD | NEW |
1 //===--- PrintParserActions.cpp - Implement -parse-print-callbacks mode ---===// | 1 //===--- PrintParserActions.cpp - Implement -parse-print-callbacks mode ---===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This code simply runs the preprocessor on the input file and prints out the | 10 // This code simply runs the preprocessor on the input file and prints out the |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 //===------------------------------------------------------------------===// | 190 //===------------------------------------------------------------------===// |
191 // Type Parsing Callbacks. | 191 // Type Parsing Callbacks. |
192 //===------------------------------------------------------------------===// | 192 //===------------------------------------------------------------------===// |
193 | 193 |
194 virtual TypeResult ActOnTypeName(Scope *S, Declarator &D) { | 194 virtual TypeResult ActOnTypeName(Scope *S, Declarator &D) { |
195 Out << __FUNCTION__ << "\n"; | 195 Out << __FUNCTION__ << "\n"; |
196 return TypeResult(); | 196 return TypeResult(); |
197 } | 197 } |
198 | 198 |
199 virtual DeclPtrTy ActOnTag(Scope *S, unsigned TagSpec, TagUseKind TUK, | 199 virtual DeclPtrTy ActOnTag(Scope *S, unsigned TagSpec, TagUseKind TUK, |
200 SourceLocation KWLoc, const CXXScopeSpec &SS, | 200 SourceLocation KWLoc, CXXScopeSpec &SS, |
201 IdentifierInfo *Name, SourceLocation NameLoc, | 201 IdentifierInfo *Name, SourceLocation NameLoc, |
202 AttributeList *Attr, AccessSpecifier AS, | 202 AttributeList *Attr, AccessSpecifier AS, |
203 MultiTemplateParamsArg TemplateParameterLists, | 203 MultiTemplateParamsArg TemplateParameterLists, |
204 bool &OwnedDecl, bool &IsDependent) { | 204 bool &OwnedDecl, bool &IsDependent) { |
205 // TagType is an instance of DeclSpec::TST, indicating what kind of tag th
is | 205 // TagType is an instance of DeclSpec::TST, indicating what kind of tag th
is |
206 // is (struct/union/enum/class). | 206 // is (struct/union/enum/class). |
207 Out << __FUNCTION__ << "\n"; | 207 Out << __FUNCTION__ << "\n"; |
208 return DeclPtrTy(); | 208 return DeclPtrTy(); |
209 } | 209 } |
210 | 210 |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 Out << __FUNCTION__ << "\n"; | 839 Out << __FUNCTION__ << "\n"; |
840 return ExprEmpty(); | 840 return ExprEmpty(); |
841 } | 841 } |
842 }; | 842 }; |
843 } | 843 } |
844 | 844 |
845 MinimalAction *clang::CreatePrintParserActionsAction(Preprocessor &PP, | 845 MinimalAction *clang::CreatePrintParserActionsAction(Preprocessor &PP, |
846 llvm::raw_ostream* OS) { | 846 llvm::raw_ostream* OS) { |
847 return new ParserPrintActions(PP, *OS); | 847 return new ParserPrintActions(PP, *OS); |
848 } | 848 } |
OLD | NEW |