summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Canonicality is a property of qualified types, not unqualified types.John McCall2009-10-225-21/+21
| | | | llvm-svn: 84891
* When replacing a template-id expression with a declaration reference ↵Douglas Gregor2009-10-221-3/+12
| | | | | | expression after overloading completes, make sure to keep the qualifier. Still not ready with that test-case... llvm-svn: 84880
* When building and instantiating a template-id reference expression, such asDouglas Gregor2009-10-224-17/+39
| | | | | | | | | | | N::f<int> keep track of the full nested-name-specifier. This is mainly QoI and relatively hard to test; will try to come up with a printing-based test once we also retain the explicit template arguments past overload resolution. llvm-svn: 84869
* Try to instantiate templates before doing hierarchy checks in static_cast. ↵Sebastian Redl2009-10-221-1/+6
| | | | | | Fixes PR5261. llvm-svn: 84860
* When a template-id expression refers to a member function template, turn it ↵Douglas Gregor2009-10-221-0/+18
| | | | | | into an (implicit) member access expression. Fixes PR5220 llvm-svn: 84848
* Refactor our handling of implicit member reference expressions to get most ↵Douglas Gregor2009-10-223-83/+104
| | | | | | of the logic out of BuildDeclarationNameExpr llvm-svn: 84847
* fix PR5265: the size of a float3 should be rounded up to its alignment. Chris Lattner2009-10-221-10/+11
| | | | | | This ensures that arrays of float3 are correctly padded. llvm-svn: 84833
* Rename: CheckBadDiv->CheckDivZero.Zhongxing Xu2009-10-221-7/+8
| | | | llvm-svn: 84824
* Remove some misguided code.Mike Stump2009-10-221-8/+2
| | | | llvm-svn: 84823
* Extend out the block descriptor structure for debug information withMike Stump2009-10-224-6/+64
| | | | | | the copy/dispose helpers as appropriate. llvm-svn: 84817
* Driver: Fix thinko in logic for finding gcc's tool chain directory.Daniel Dunbar2009-10-221-2/+4
| | | | llvm-svn: 84805
* Code gen for '.*' binary expressions - WIP.Fariborz Jahanian2009-10-211-0/+27
| | | | llvm-svn: 84800
* Don't (directly) call RequireCompleteType with an invalid source location.Douglas Gregor2009-10-215-10/+18
| | | | llvm-svn: 84793
* Turn on the preallocation of all BlockDeclRefExprs.Mike Stump2009-10-211-3/+1
| | | | llvm-svn: 84789
* Don't generate pointer types for void or base classes when findingDouglas Gregor2009-10-211-27/+11
| | | | | | | conversion types for builtin overloaded operator candidates; I misread this section in the standard the first time around. llvm-svn: 84788
* Refine collection of BlockDeclRefExprs. WIP.Mike Stump2009-10-212-11/+18
| | | | llvm-svn: 84787
* Driver: don't produce bogus osx version numbers if no version (aka 0) was ↵Benjamin Kramer2009-10-211-1/+2
| | | | | | specified. llvm-svn: 84781
* Expand on code gen. for pointer to data members so it worksFariborz Jahanian2009-10-211-3/+4
| | | | | | for base classe members as well. Test case enhanced for this. llvm-svn: 84780
* Code gen for pointer-to-datamember - WIP.Fariborz Jahanian2009-10-212-0/+22
| | | | llvm-svn: 84771
* Fix typo.Mike Stump2009-10-211-2/+1
| | | | llvm-svn: 84770
* Refactor.Mike Stump2009-10-212-14/+4
| | | | llvm-svn: 84769
* Complete out debug info generation for captured __block variables. WIP.Mike Stump2009-10-211-7/+63
| | | | llvm-svn: 84768
* Change FixOverloadedFunctionReference to return a (possibly new) expression. ↵Anders Carlsson2009-10-215-16/+25
| | | | | | Substitute TemplateIdRefExprs with DeclRefExprs. Doug, plz review :) llvm-svn: 84763
* Extend clang_getCursor() to take a 'relativeDecl' argument (so speed up ↵Steve Naroff2009-10-211-1/+4
| | | | | | | | | | | | | | searching). Without a 'relativeDecl', the algorithm is n-squared. For example, running the following command on 'Large.m' takes hours without a 'relatvieDecl'. snaroff% time ../../Debug/bin/c-index-test Large.ast all > Large.out snaroff% cat Large.m #import <Cocoa/Cocoa.h> #import <QuickTime/QuickTime.h> #import <OpenGL/OpenGL.h> With a 'relativeDecl', it takes <30 seconds:-) llvm-svn: 84760
* Add AuroraUX ABI Triple in correct place.Edward O'Callaghan2009-10-211-1/+2
| | | | llvm-svn: 84758
* Simplify some code. No functionality change.Zhongxing Xu2009-10-211-55/+43
| | | | llvm-svn: 84757
* add helpful methods to TargetInfo for querying builtin integer type properties,Chris Lattner2009-10-211-0/+51
| | | | | | patch by Ken Dyck! llvm-svn: 84746
* Improve diagnostics and template instantiation behavior when callingDouglas Gregor2009-10-211-24/+26
| | | | | | an overloaded function call operator. llvm-svn: 84745
* hookize wint_t's definition, patch by Edward O'Callaghan (from PR5233).Chris Lattner2009-10-212-2/+2
| | | | llvm-svn: 84740
* Prep work to always preallocate BlockDeclRefExprs so that we canMike Stump2009-10-214-80/+116
| | | | | | | generate the debug information for the first parameter to the block invoke functions. WIP. llvm-svn: 84737
* Revert those last two commits. Beware the treacherous semicolon.John McCall2009-10-211-14/+14
| | | | llvm-svn: 84736
* Preserve type source information when substituting into ParmVarDecls.John McCall2009-10-211-7/+7
| | | | | | Apparently I'm grinding my commit count. llvm-svn: 84735
* Preserve type source information when substituting into FieldDecls.John McCall2009-10-211-7/+7
| | | | llvm-svn: 84734
* Preserve source information when substituting into VarDecls.John McCall2009-10-211-5/+6
| | | | llvm-svn: 84733
* Clone Sema::SubstType for DeclaratorInfos.John McCall2009-10-212-0/+20
| | | | llvm-svn: 84724
* Initialize using the base location provided by the derived implementation,John McCall2009-10-211-1/+1
| | | | | | not the default one (which is always empty). llvm-svn: 84721
* Fix 80-col violation.Mike Stump2009-10-211-2/+2
| | | | llvm-svn: 84719
* Rewrite TreeTransform to transform types as DeclaratorInfos rather than as bareJohn McCall2009-10-213-269/+698
| | | | | | QualTypes. Don't actually exploit this yet. llvm-svn: 84716
* Add TypeLocBuilder, an API for incrementally creating TypeLocs. ChangeJohn McCall2009-10-211-2/+8
| | | | | | | the API for creating DeclaratorInfos to allow callers to provide an exact size. llvm-svn: 84715
* Remove stale comment and tighten code.Ted Kremenek2009-10-201-6/+1
| | | | llvm-svn: 84697
* Add FIXME.Ted Kremenek2009-10-201-0/+2
| | | | llvm-svn: 84696
* Use llvm::OwningPtr in CFGBuilder, fixing a leak on an error path.Ted Kremenek2009-10-201-12/+7
| | | | llvm-svn: 84695
* Code-gen for CXXZeroInitValueExpr AST passedFariborz Jahanian2009-10-203-5/+16
| | | | | | as argument to a function call. Removes a FIXME. llvm-svn: 84694
* Change ResolveAddressOfOverloadedFunction to support TemplateIdRefExpr. No ↵Anders Carlsson2009-10-201-4/+17
| | | | | | testcase yet because FixOverloadedFunctionReference needs to be updated too. Doug, plz review. llvm-svn: 84693
* Fix the 32-bit ABI to return structures with non-trivial copy ctors or dtors ↵Anders Carlsson2009-10-201-3/+9
| | | | | | indirectly. llvm-svn: 84686
* Add destructor and cleanup code to LocationContext (fixing some leaks). ↵Ted Kremenek2009-10-202-0/+24
| | | | | | | | | Along the way, have AnalysisManager periodically cleanup its AnalysisContextManager and LocationContextManager objects, as they don't need to forever retain all the CFGs ever created when analyzing a file. llvm-svn: 84684
* For now, we need to have the llvm type of the block pointer remain asMike Stump2009-10-201-1/+4
| | | | | | it was. Fixes codegen bug introduced yesterday. llvm-svn: 84668
* Moved comment to its proper place in my last patch.Fariborz Jahanian2009-10-201-3/+3
| | | | llvm-svn: 84662
* Patch implements ranking conversions between member pointers [over.ics.rank]Fariborz Jahanian2009-10-201-7/+36
| | | | llvm-svn: 84660
* Do not eagerly cache DITypes because it allows real struct type to be ↵Devang Patel2009-10-201-31/+58
| | | | | | shadowed by forward declared struct type. llvm-svn: 84659
OpenPOWER on IntegriCloud