summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Very basic irgen support for new expressions.Anders Carlsson2009-05-311-2/+72
| | | | llvm-svn: 72672
* Don't try to call getFileCharacteristic if the function declaration has an ↵Anders Carlsson2009-05-311-2/+3
| | | | | | invalid source location (as is the case for the global allocation functions. llvm-svn: 72671
* Fix an off by one error when trying to perform copy initialization of ↵Anders Carlsson2009-05-311-1/+1
| | | | | | operator new and operator delete arguments. Sebastian, please review. llvm-svn: 72670
* Downgrade an error about "return in a no-return function" from being Chris Lattner2009-05-311-4/+2
| | | | | | | | an error to being a warning that defaults to error. If you want this to be a warning, you have to explicitly pass -Winvalid-noreturn to clang to map it back to a warning. llvm-svn: 72669
* Disallow exception specs on typedefs.Sebastian Redl2009-05-315-11/+22
| | | | llvm-svn: 72664
* Fix for PR4285: allow intializing a const wchar_t array with a wide Eli Friedman2009-05-311-8/+10
| | | | | | string. llvm-svn: 72663
* Initial infrastructure for class template partial specialization. HereDouglas Gregor2009-05-315-22/+203
| | | | | | | | | | | | | we have the basics of declaring and storing class template partial specializations, matching class template partial specializations at instantiation time via (limited) template argument deduction, and using the class template partial specialization's pattern for instantiation. This patch is enough to make a simple is_pointer type trait work, but not much else. llvm-svn: 72662
* Add a little FIXME for C++ class printingDouglas Gregor2009-05-311-0/+1
| | | | llvm-svn: 72660
* Unbreak the clang build by applying the same temporaryDuncan Sands2009-05-311-1/+2
| | | | | | | workaround for machine code emitter changes as was used in llvm-gcc. llvm-svn: 72657
* Add a new function for emitting new functions.Anders Carlsson2009-05-313-0/+10
| | | | llvm-svn: 72656
* Emit destructors correctly for temporaries.Anders Carlsson2009-05-314-3/+33
| | | | llvm-svn: 72655
* When possible, don't emit the cleanup block. Instead, just move the ↵Anders Carlsson2009-05-311-1/+7
| | | | | | instructions to the current block. llvm-svn: 72654
* Implement VisitCXXExprWithTemporaries for complex expressions.Anders Carlsson2009-05-311-0/+3
| | | | llvm-svn: 72653
* Call EmitCXXExprWithTemporaries.Anders Carlsson2009-05-311-2/+1
| | | | llvm-svn: 72652
* Add lvalue irgen support for CXXBindTemporaryExpr.Anders Carlsson2009-05-303-3/+14
| | | | llvm-svn: 72649
* More temporary support.Anders Carlsson2009-05-304-6/+52
| | | | llvm-svn: 72648
* Forgot the implementation. Thanks Eli.Anders Carlsson2009-05-301-0/+41
| | | | llvm-svn: 72647
* Add RemoveOutermostTemporaryBinding. Not used yet.Anders Carlsson2009-05-301-0/+11
| | | | llvm-svn: 72644
* Clean up the newly added C++ AST nodes.Anders Carlsson2009-05-302-5/+28
| | | | llvm-svn: 72643
* It's OK for a full expr to be null. This fixes the failing test cases.Anders Carlsson2009-05-301-3/+2
| | | | llvm-svn: 72642
* ActOnReturnStmt should also take a FullExprArg.Anders Carlsson2009-05-305-6/+6
| | | | llvm-svn: 72641
* AddInitializerToDecl needs to take a full expression.Anders Carlsson2009-05-305-6/+6
| | | | llvm-svn: 72640
* Add the newly created temporary to the ExprTemporaries stack.Anders Carlsson2009-05-301-1/+2
| | | | llvm-svn: 72638
* Get rid of CXXTempVarDecl.Anders Carlsson2009-05-302-10/+0
| | | | llvm-svn: 72637
* Some small fixes for fields of reference type.Eli Friedman2009-05-302-2/+7
| | | | llvm-svn: 72636
* Stop using CXXTempVarDecl and use CXXTemporary instead.Anders Carlsson2009-05-303-13/+10
| | | | llvm-svn: 72634
* Remove VarDecl from CXXConstructExpr.Anders Carlsson2009-05-306-36/+17
| | | | llvm-svn: 72633
* Bind temporaries correctly when instantiating expressions.Anders Carlsson2009-05-301-1/+1
| | | | llvm-svn: 72632
* Remove VarDecl from CheckInitializerTypes now that CXXConstructExpr doesn't ↵Anders Carlsson2009-05-303-10/+5
| | | | | | need to take a VarDecl anymore. (It still does, but it won't for long) llvm-svn: 72630
* Add Sema::MaybeBindToTemporary which takes an expression and (if needed) ↵Anders Carlsson2009-05-302-5/+27
| | | | | | wraps it in a CXXBindTemporaryExpr. Use this when creating CXXTemporaryObjectExprs. llvm-svn: 72629
* Small fixes to CXXTemporary and CXXBindTemporaryExpr.Anders Carlsson2009-05-301-2/+2
| | | | llvm-svn: 72628
* Add a CXXBindTemporaryExpr.Anders Carlsson2009-05-303-0/+32
| | | | llvm-svn: 72627
* Add a CXXTemporary class. Not used yet.Anders Carlsson2009-05-301-0/+6
| | | | llvm-svn: 72626
* Replace a cast with a dyn_cast as suggested by Doug.Anders Carlsson2009-05-301-7/+8
| | | | llvm-svn: 72624
* Cleqnup ideas from Chris, thanks.Mike Stump2009-05-301-5/+6
| | | | llvm-svn: 72621
* AST printing for C++ base classesDouglas Gregor2009-05-301-8/+46
| | | | llvm-svn: 72617
* Pretty printing and improved representation for namespace alias declarationsDouglas Gregor2009-05-303-3/+15
| | | | llvm-svn: 72616
* Add a hack to prevent us from printing out the __builtin_va_list Eli Friedman2009-05-301-0/+5
| | | | | | declaration in -ast-print mode. llvm-svn: 72615
* Printing for using directives, e.g.,Douglas Gregor2009-05-303-5/+30
| | | | | | | | | using namespace std::debug; Extended UsingDirectiveDecl to store the nested-name-specifier that precedes the nominated namespace. llvm-svn: 72614
* Never suppress specifiers when printing the parameters of a functionDouglas Gregor2009-05-301-3/+6
| | | | | | declaration. llvm-svn: 72613
* Pass an ASTContext into Stmt::printPretty.Eli Friedman2009-05-301-1/+1
| | | | llvm-svn: 72612
* Pass an ASTContext into Stmt::printPretty.Eli Friedman2009-05-302-6/+6
| | | | llvm-svn: 72611
* Add a Stmt::printPretty overload which takes an ASTContext; start Eli Friedman2009-05-302-14/+22
| | | | | | transitioning callers over to pass one in. llvm-svn: 72609
* Expose an API to print a group of decls (like "int a,b;"). Eli Friedman2009-05-303-200/+141
| | | | | | | | | | | | | | | | | Make StmtPrinter use DeclPrinter to print all declarations. Merge declarations in the limited case of an unnamed TagDecl followed by one or more declarations using that TagDecl directly. Change SuppressTypeSpecifiers to the more general SuppressSpecifiers, and use it to suppress stuff like "typedef" and "extern". Replace OwnedTag with SuppressTag, since it's more convenient to print declarations from DeclPrinter at the moment. improvements to declaration printing. Fix pretty-printing for K&R function definitions and __builtin_va_arg. We're now to the point where the pretty-printing output for non-trivial programs can actually be piped back into clang. llvm-svn: 72608
* Improve __builtin_nanf support; we now can deal with them as constants.Mike Stump2009-05-301-3/+14
| | | | llvm-svn: 72607
* Fix some test failures involving -ast-print.Eli Friedman2009-05-302-0/+15
| | | | llvm-svn: 72605
* Clean up printing for Objective-C, designated initializers.Douglas Gregor2009-05-302-30/+33
| | | | llvm-svn: 72602
* Add a member lookup criteria constructor for searching for overridden ↵Anders Carlsson2009-05-303-14/+24
| | | | | | virtual member functions. Use this instead of regular name lookup when checking for overriding functions so we will see declarations that would otherwise be hidden. Fixes 6902298. llvm-svn: 72601
* Some enhancements to DeclStmt printing. Some of this should Eli Friedman2009-05-301-24/+141
| | | | | | | move to DeclPrinter.cpp, but I haven't quite worked out how best to do that. llvm-svn: 72599
* Add support for PrintingPolicy::SuppressTypeSpecifiers to type printing. Eli Friedman2009-05-301-2/+20
| | | | | | (I have a work-in-progress patch which uses this.) llvm-svn: 72598
OpenPOWER on IntegriCloud