summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* add fixme.Zhongxing Xu2009-07-012-0/+3
| | | | llvm-svn: 74581
* Cope with explicitly-specified function template arguments when thereDouglas Gregor2009-07-016-12/+50
| | | | | | | are fewer template arguments than there are template parameters for that function. llvm-svn: 74578
* When explicit template arguments are provided for a function call,Douglas Gregor2009-06-305-31/+172
| | | | | | | | | substitute those template arguments into the function parameter types prior to template argument deduction. There's still a bit of work to do to make this work properly when only some of the template arguments are specified. llvm-svn: 74576
* Patch to support optional nested-name-specifier in in ctor-initializerFariborz Jahanian2009-06-305-18/+43
| | | | | | list. llvm-svn: 74571
* Preliminary parsing and ASTs for template-ids that refer to functionDouglas Gregor2009-06-3012-17/+316
| | | | | | | templates, such as make<int&>. These template-ids are only barely functional for function calls; much more to come. llvm-svn: 74563
* Update old CastRegion logic to not assume that ElementRegion's super region is aTed Kremenek2009-06-301-3/+3
| | | | | | | | TypedRegion. While we plan on removing this code at some point, it serves as a good reference implementation for use with BasicStore until we are sure the new CastRegion logic (in RegionStore.cpp) is correct. llvm-svn: 74559
* Fix: <rdar://problem/7021553> clang -fsyntax-only crashes (in ↵Ted Kremenek2009-06-301-4/+4
| | | | | | | | | ParseDeclarationSpecifiers ... from ParseObjCTypeName) Another case where we should use SmallVector::data() instead of taking the address of element 0 of a SmallVector when the SmallVector has no elements. llvm-svn: 74556
* Diagnose multiple initialization of anonymous unionFariborz Jahanian2009-06-302-1/+16
| | | | | | fields in the ctor-initializer list. llvm-svn: 74554
* Combine two conditional branches into one. No functionality change.Ted Kremenek2009-06-301-8/+4
| | | | llvm-svn: 74552
* More diagnostics related to initialization of direct basesFariborz Jahanian2009-06-303-0/+23
| | | | | | in ctor-initializer list. llvm-svn: 74541
* When recursively instantiating function templates, keep track of theDouglas Gregor2009-06-305-9/+45
| | | | | | | | | | | | instantiation stack so that we provide a full instantiation backtrace. Previously, we performed all of the instantiations implied by the recursion, but each looked like a "top-level" instantiation. The included test case tests the previous fix for the instantiation of DeclRefExprs. Note that the "instantiated from" diagnostics still don't tell us which template arguments we're instantiating with. llvm-svn: 74540
* Reapply r74532, and inherit from OSTargetInfo instead of from Target.Torok Edwin2009-06-301-353/+183
| | | | | | 'make test' passes now. llvm-svn: 74539
* Revert 74532 till I figure out why it breaks a bunch of tests.Torok Edwin2009-06-301-183/+353
| | | | llvm-svn: 74536
* Update C++ section data and directory structure to reflect N2914Douglas Gregor2009-06-301-1037/+1026
| | | | llvm-svn: 74535
* Compute ending of iterator in for-loop once.Fariborz Jahanian2009-06-301-16/+12
| | | | llvm-svn: 74533
* Use templates instead of creating a new class for each OS/Target combination.Torok Edwin2009-06-301-353/+183
| | | | | | | | This unifies all the targets supported by an OS into a template. It also cleans up the differences between the darwin targets. Also __LP64__ wasn't needed for *BSD, since x86-64 target defines it anyway. llvm-svn: 74532
* Refactor ActOnDeclarationNameExpr into a "parsing action" part and aDouglas Gregor2009-06-304-54/+72
| | | | | | | | | | | "semantic analysis" part. Use the "semantic analysis" part when performing template instantiation on a DeclRefExpr, rather than an ad hoc list of rules to construct DeclRefExprs from the instantiation. A test case for this change will come in with a large commit, which illustrates what I was actually trying to work on. llvm-svn: 74528
* Instead of r74522, use another approach to fix xfail_regionstore_wine_crash.c.Zhongxing Xu2009-06-302-3/+11
| | | | | | | Mark the super region of the binding of block level expr in the Environment as live. llvm-svn: 74525
* When retrieving element region, if its super region has binding, returnZhongxing Xu2009-06-302-7/+25
| | | | | | | | | | | unknown for it. Mark the super region of a live region as live, if the live region is pointed to by a live pointer variable. These fixes xfail_regionstore_wine_crash.c. llvm-svn: 74524
* Block level expr should be visited. Otherwise variables in init expr ofZhongxing Xu2009-06-301-1/+3
| | | | | | | | | | DeclStmt would be dead before the DeclStmt. For example: int x = 0; int y = x; 'x' would be dead before 'int y = x'. llvm-svn: 74522
* add utility method.Zhongxing Xu2009-06-302-0/+9
| | | | llvm-svn: 74521
* add utility methods.Zhongxing Xu2009-06-301-0/+3
| | | | llvm-svn: 74520
* remove dead code.Zhongxing Xu2009-06-302-5/+0
| | | | llvm-svn: 74517
* We do not require the super region of element region be typed. So do notZhongxing Xu2009-06-301-3/+2
| | | | | | create TypedViewRegion for it. llvm-svn: 74516
* Implement PR4175, catching some questionable comparisons. Patch byChris Lattner2009-06-303-2/+37
| | | | | | David Majnemer! llvm-svn: 74513
* De-ASTContext-ify DeclContext.Argyrios Kyrtzidis2009-06-3046-665/+562
| | | | | | | Remove ASTContext parameter from DeclContext's methods. This change cascaded down to other Decl's methods and changes to call sites started "escalating". Timings using pre-tokenized "cocoa.h" showed only a ~1% increase in time run between and after this commit. llvm-svn: 74506
* Introduce DeclContext::getParentASTContext().Argyrios Kyrtzidis2009-06-301-1/+5
| | | | | | It's not getASTContext() to avoid "getASTContext is ambiguous" compiler errors for subclasses of both Decl and DeclContext. llvm-svn: 74505
* Remove the ASTContext parameter from the getBody() methods of Decl and ↵Argyrios Kyrtzidis2009-06-3026-55/+50
| | | | | | | | subclasses. Timings showed no significant difference before and after the commit. llvm-svn: 74504
* Remove the ASTContext parameter from the printing related methods of Decl.Argyrios Kyrtzidis2009-06-305-28/+22
| | | | llvm-svn: 74503
* Decl::getTranslationUnitDecl() should return itself when the Decl is a ↵Argyrios Kyrtzidis2009-06-301-0/+3
| | | | | | TranslationUnitDecl. llvm-svn: 74502
* Remove the ASTContext parameter from the attribute-related methods of Decl.Argyrios Kyrtzidis2009-06-3033-228/+220
| | | | | | | | | The implementations of these methods can Use Decl::getASTContext() to get the ASTContext. This commit touches a lot of files since call sites for these methods are everywhere. I used pre-tokenized "carbon.h" and "cocoa.h" headers to do some timings, and there was no real time difference between before the commit and after it. llvm-svn: 74501
* Key decisions about 'bool' vs '_Bool' to be based on a new flag in langoptions.Chris Lattner2009-06-3027-91/+126
| | | | | | | | | | | | This is simple enough, but then I thought it would be nice to make PrintingPolicy get a LangOptions so that various things can key off "bool" and "C++" independently. This spiraled out of control. There are many fixme's, but I think things are slightly better than they were before. One thing that can be improved: CFG should probably have an ASTContext pointer in it, which would simplify its clients. llvm-svn: 74493
* Take care of Chris's comments.Fariborz Jahanian2009-06-302-15/+16
| | | | llvm-svn: 74486
* Make an error message more clear.Anders Carlsson2009-06-303-2/+4
| | | | llvm-svn: 74481
* A more detailed diagnosis of ill-formed ctor-initializerFariborz Jahanian2009-06-304-15/+33
| | | | | | list. llvm-svn: 74480
* Use true/false instead of 1/0.Daniel Dunbar2009-06-291-4/+4
| | | | llvm-svn: 74479
* Improvements to decltype. We now don't crash anymore when the expr is an ↵Anders Carlsson2009-06-295-3/+39
| | | | | | overloaded function decl. llvm-svn: 74472
* Don't define __KPRINTF_ATTRIBUTE__ unconditionally on OpenBSD.Daniel Dunbar2009-06-291-1/+0
| | | | llvm-svn: 74467
* Improve code generation for function template specializations:Douglas Gregor2009-06-297-11/+98
| | | | | | | | | | | | | | | | - Track implicit instantiations vs. the not-yet-supported explicit specializations - Give implicit instantiations of function templates (and member functions of class templates) linkonce_odr linkage. - Improve name mangling for function template specializations, including the template arguments of the instantiation and the return type of the function. Note that our name-mangling is improved, but not correct: we still don't mangle substitutions, although the manglings we produce can be demangled. llvm-svn: 74466
* Diagnose multiple initialzation of data-member/base Fariborz Jahanian2009-06-294-0/+45
| | | | | | in the ctor-initializer list. More to come. llvm-svn: 74465
* Remove some dead codeAnders Carlsson2009-06-291-3/+0
| | | | llvm-svn: 74460
* Keep track of function template specializations, to eliminateDouglas Gregor2009-06-299-382/+530
| | | | | | | redundant, implicit instantiations of function templates and provide a place where we can hang function template specializations. llvm-svn: 74454
* OpenBSD support.Daniel Dunbar2009-06-299-0/+296
| | | | | | - Patch by Jonathan Gray! llvm-svn: 74453
* -Keep a reference to the ASTContext inside the TranslationUnitDecl.Argyrios Kyrtzidis2009-06-294-3/+31
| | | | | | | | -Introduce Decl::getASTContext() which returns the reference from the TranslationUnitDecl that it is contained in. The general idea is that Decls can point to their own ASTContext so that it is no longer required to "manually" keep track and make sure that you pass the correct ASTContext to Decls' methods, e.g. methods like Decl::getAttrs should eventually not require a ASTContext parameter. llvm-svn: 74434
* Remove redundant leftover code.Argyrios Kyrtzidis2009-06-291-1/+0
| | | | llvm-svn: 74433
* Fix the FloatingLiteral API to take the isexact flag by value instead ofChris Lattner2009-06-293-6/+5
| | | | | | by pointer. llvm-svn: 74432
* Move FunctionDecl::TemplateSpecializationInfo out into its own class,Douglas Gregor2009-06-294-29/+66
| | | | | | FunctionTemplateSpecializationInfo, in DeclTemplate.h. No functionality change. llvm-svn: 74431
* Remove ASTContext::getObjCQualifiedIdType().Steve Naroff2009-06-293-17/+4
| | | | | | Convert clients to use ASTContext::getObjCObjectPointerType(). llvm-svn: 74424
* Invalidate the alloca region by setting its default value to conjured symbol.Zhongxing Xu2009-06-292-2/+23
| | | | llvm-svn: 74419
* The default answer for isBoundable() should be false.Zhongxing Xu2009-06-291-1/+1
| | | | llvm-svn: 74418
OpenPOWER on IntegriCloud