OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 VISIT(OverloadExpr); | 580 VISIT(OverloadExpr); |
581 VISIT(PackExpansionExpr); | 581 VISIT(PackExpansionExpr); |
582 VISIT(ParenExpr); | 582 VISIT(ParenExpr); |
583 VISIT(ParenListExpr); | 583 VISIT(ParenListExpr); |
584 VISIT(PredefinedExpr); | 584 VISIT(PredefinedExpr); |
585 VISIT(ShuffleVectorExpr); | 585 VISIT(ShuffleVectorExpr); |
586 VISIT(SizeOfPackExpr); | 586 VISIT(SizeOfPackExpr); |
587 VISIT(StmtExpr); | 587 VISIT(StmtExpr); |
588 VISIT(StringLiteral); | 588 VISIT(StringLiteral); |
589 VISIT(SubstNonTypeTemplateParmPackExpr); | 589 VISIT(SubstNonTypeTemplateParmPackExpr); |
590 VISIT(UnaryExprOrTypeTraitExpr); | |
591 VISIT(UnaryOperator); | 590 VISIT(UnaryOperator); |
592 VISIT(UnaryTypeTraitExpr); | 591 VISIT(UnaryTypeTraitExpr); |
593 VISIT(VAArgExpr); | 592 VISIT(VAArgExpr); |
594 #undef VISIT | 593 #undef VISIT |
595 | 594 |
596 return ExprEffect::None(); | 595 return ExprEffect::None(); |
597 } | 596 } |
598 | 597 |
599 #define DECL_VISIT_EXPR(type) \ | 598 #define DECL_VISIT_EXPR(type) \ |
600 ExprEffect Visit##type (clang::type* expr, const Environment& env) | 599 ExprEffect Visit##type (clang::type* expr, const Environment& env) |
(...skipping 26 matching lines...) Expand all Loading... |
627 IGNORE_EXPR(IntegerLiteral); | 626 IGNORE_EXPR(IntegerLiteral); |
628 IGNORE_EXPR(OffsetOfExpr); | 627 IGNORE_EXPR(OffsetOfExpr); |
629 IGNORE_EXPR(ImplicitValueInitExpr); | 628 IGNORE_EXPR(ImplicitValueInitExpr); |
630 IGNORE_EXPR(PackExpansionExpr); | 629 IGNORE_EXPR(PackExpansionExpr); |
631 IGNORE_EXPR(PredefinedExpr); | 630 IGNORE_EXPR(PredefinedExpr); |
632 IGNORE_EXPR(ShuffleVectorExpr); | 631 IGNORE_EXPR(ShuffleVectorExpr); |
633 IGNORE_EXPR(SizeOfPackExpr); | 632 IGNORE_EXPR(SizeOfPackExpr); |
634 IGNORE_EXPR(StmtExpr); | 633 IGNORE_EXPR(StmtExpr); |
635 IGNORE_EXPR(StringLiteral); | 634 IGNORE_EXPR(StringLiteral); |
636 IGNORE_EXPR(SubstNonTypeTemplateParmPackExpr); | 635 IGNORE_EXPR(SubstNonTypeTemplateParmPackExpr); |
637 IGNORE_EXPR(UnaryExprOrTypeTraitExpr); | |
638 IGNORE_EXPR(UnaryTypeTraitExpr); | 636 IGNORE_EXPR(UnaryTypeTraitExpr); |
639 IGNORE_EXPR(VAArgExpr); | 637 IGNORE_EXPR(VAArgExpr); |
640 IGNORE_EXPR(GNUNullExpr); | 638 IGNORE_EXPR(GNUNullExpr); |
641 IGNORE_EXPR(OverloadExpr); | 639 IGNORE_EXPR(OverloadExpr); |
642 | 640 |
643 DECL_VISIT_EXPR(CXXThisExpr) { | 641 DECL_VISIT_EXPR(CXXThisExpr) { |
644 return Use(expr, expr->getType(), THIS, env); | 642 return Use(expr, expr->getType(), THIS, env); |
645 } | 643 } |
646 | 644 |
647 DECL_VISIT_EXPR(AbstractConditionalOperator) { | 645 DECL_VISIT_EXPR(AbstractConditionalOperator) { |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 | 1279 |
1282 | 1280 |
1283 } | 1281 } |
1284 | 1282 |
1285 static clang::FrontendPluginRegistry::Add<Action<ProblemsFinder> > | 1283 static clang::FrontendPluginRegistry::Add<Action<ProblemsFinder> > |
1286 FindProblems("find-problems", "Find GC-unsafe places."); | 1284 FindProblems("find-problems", "Find GC-unsafe places."); |
1287 | 1285 |
1288 static clang::FrontendPluginRegistry::Add< | 1286 static clang::FrontendPluginRegistry::Add< |
1289 Action<FunctionDeclarationFinder> > | 1287 Action<FunctionDeclarationFinder> > |
1290 DumpCallees("dump-callees", "Dump callees for each function."); | 1288 DumpCallees("dump-callees", "Dump callees for each function."); |
OLD | NEW |