summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* More fixes to the handling of CVR-comparisons on array types. Adds a method toChandler Carruth2009-12-303-9/+34
| | | | | | | | | | | | QualType to get CVR-qualifiers through array types, and switches the primary comparison methods to use it. This may allow simplifying some of the callers of getUnqualifiedArrayType. Also fix the normalizing of CV-qualification during template deduction to normalize through arrays and allow a more qualified deduced array type. This fixes PR5911. llvm-svn: 92289
* Add base class checks.Anders Carlsson2009-12-301-0/+11
| | | | llvm-svn: 92286
* Add more vtable tests.Anders Carlsson2009-12-301-1/+38
| | | | llvm-svn: 92285
* More RTTI cleanup, test that RTTI classes have the correct vtables.Anders Carlsson2009-12-303-54/+80
| | | | llvm-svn: 92284
* Typedefs can be redeclared. That seems like something we should record inJohn McCall2009-12-305-5/+35
| | | | | | the AST lest we run into some crazy canonicalization bug like PR5874. llvm-svn: 92283
* Test for PR5908.Eli Friedman2009-12-301-0/+7
| | | | llvm-svn: 92282
* Make sure to explicitly pass type/value dependence to Expr constructor. ThisEli Friedman2009-12-304-52/+61
| | | | | | | | caught several cases where we were not doing the right thing. I'm not completely sure all cases are being handled correctly, but this should be an improvement. llvm-svn: 92281
* Match gcc and treat vector types as fundamental types.Anders Carlsson2009-12-291-9/+23
| | | | llvm-svn: 92278
* Handle enum types as well.Anders Carlsson2009-12-292-3/+31
| | | | llvm-svn: 92276
* Test linkage of RTTI descriptors of array types.Anders Carlsson2009-12-291-29/+61
| | | | llvm-svn: 92274
* Fix function type RTTI linkage and add tests.Anders Carlsson2009-12-292-5/+30
| | | | llvm-svn: 92266
* Fix support for const_cast<>s of array types which actual change theChandler Carruth2009-12-292-3/+5
| | | | | | | | CV-qualifiers. Remove an error expectation from the 'good' set of const-cast test cases. With this patch, the final non-template test case from PR5542 passes. (It's the same as the one already in const-cast.cpp.) llvm-svn: 92257
* strength reduce this call away.Chris Lattner2009-12-291-1/+2
| | | | llvm-svn: 92253
* fix whitespace in test to match llvm asmprinter change.Chris Lattner2009-12-291-1/+1
| | | | llvm-svn: 92251
* Correctly refer to element CVR qualifications when determining if a type isChandler Carruth2009-12-296-60/+93
| | | | | | | | | | more or less cv-qualified than another during implicit conversion and overload resolution ([basic.type.qualifier] p5). Factors the logic out of template deduction and into the ASTContext so it can be shared. This fixes several aspects of PR5542, but not all of them. llvm-svn: 92248
* Get rid of FixedWidthIntType, as suggested by Chris and Eli.Anders Carlsson2009-12-2918-157/+11
| | | | llvm-svn: 92246
* Handle using declarations in overloaded and template functions during ADL andChandler Carruth2009-12-293-11/+29
| | | | | | | | | | address resolution. This fixes PR5751. Also, while we're here, remove logic from ADL which mistakenly included the definition namespaces of overloaded and/or templated functions whose name or address is used as an argument. llvm-svn: 92245
* adjust for llvm api changes.Chris Lattner2009-12-281-10/+2
| | | | llvm-svn: 92236
* this form of SetDebugLocation is about to go away, add some #includes thatChris Lattner2009-12-282-7/+15
| | | | | | are about to not come in implicitly. llvm-svn: 92228
* Adjust indentation.Zhongxing Xu2009-12-281-1/+1
| | | | llvm-svn: 92205
* Fix 80-col violation.Zhongxing Xu2009-12-281-1/+1
| | | | llvm-svn: 92204
* use best-fit instead of first-fit when reusing a MacroArgs object,Chris Lattner2009-12-281-7/+16
| | | | | | this speeds up Eonly on the testcase in PR5888 from 30.5s to 0.85s llvm-svn: 92203
* The PreExpArgTokens array is indexed with an argument #,Chris Lattner2009-12-283-7/+8
| | | | | | | not a token number. Fix the reserve logic to get the right amount of space. llvm-svn: 92202
* Fix for PR5871. Make __PRETTY_FUNCTION__ work for member functions defined ↵Sam Weinig2009-12-282-5/+46
| | | | | | in a class local to a function. llvm-svn: 92200
* Make sure to give an error for template argument lists followed by junk.Eli Friedman2009-12-272-2/+13
| | | | llvm-svn: 92177
* Promote arguments of frameaddr / returnaddr builtins to i32 type, when needed.Anton Korobeynikov2009-12-271-2/+10
| | | | | | | This is needed for the platforms, where bitwidth of "int" is not 32 bits (e.g. 16 on msp430). llvm-svn: 92176
* Add a sanity assertion so that we don't silently generate bad code; I'll fileEli Friedman2009-12-271-0/+2
| | | | | | a bug with a testcase hitting this assertion in a moment. llvm-svn: 92175
* Fix runline.Eli Friedman2009-12-271-1/+1
| | | | llvm-svn: 92174
* Fix PointerExprEvaluator::VisitCastExpr so it doesn't misfold C++ casts whichEli Friedman2009-12-272-25/+53
| | | | | | it doesn't know how to fold, like derived-to-base casts. llvm-svn: 92173
* Fix obvious mistake.Eli Friedman2009-12-271-1/+1
| | | | llvm-svn: 92172
* Fix for PR5872. Add static specifier and const/volatile qualifiers to member ↵Sam Weinig2009-12-272-5/+45
| | | | | | functions in __PRETTY_FUNCTION__ predefined expressions. llvm-svn: 92171
* Tests: Tweak LLVM-Code-Symbols test to ignore common and undefined symbols forDaniel Dunbar2009-12-261-10/+22
| | | | | | now, let's start small. llvm-svn: 92170
* Don't look through casts when looking for the underlying decl for a functionEli Friedman2009-12-262-1/+7
| | | | | | | call; the standard doesn't expect us to, and the program could be doing something crazy. Fixes PR5882. llvm-svn: 92166
* Attempted fix for PR5884; this code will be dead soon, but this fix shouldEli Friedman2009-12-251-3/+2
| | | | | | help for the moment. llvm-svn: 92165
* Driver: Use "g++" as generic gcc name when running in C++ mode, for platformsDaniel Dunbar2009-12-251-1/+3
| | | | | | that lack real tool definitions. llvm-svn: 92164
* Make sure operator new[] and operator delete[] match. This will hopefully ↵Benjamin Kramer2009-12-251-1/+2
| | | | | | silence 3 remaining MSVC warnings. llvm-svn: 92163
* Remove some dead variables clang-analyzer found.Benjamin Kramer2009-12-2512-26/+3
| | | | llvm-svn: 92162
* Fix typo spotted by MSVC.Benjamin Kramer2009-12-251-2/+2
| | | | | | GRExprEngine.cpp(1348) : warning C4305: 'argument' : truncation from 'clang::ProgramPoint::Kind' to 'bool' llvm-svn: 92154
* Minor optimization; emit proper unsupported messages for a couple of cases.Eli Friedman2009-12-253-6/+16
| | | | llvm-svn: 92153
* Some small improvements to dead code elimination; helps a bit onEli Friedman2009-12-252-1/+10
| | | | | | LLVM-Code-Symbols test. llvm-svn: 92152
* Make copy constructor elimination work in more cases; the case in questionEli Friedman2009-12-243-0/+14
| | | | | | here affects clang-on-clang. llvm-svn: 92151
* Fix for PR5844. Be explicit about anonymous struct/class/union/namespaces in ↵Sam Weinig2009-12-242-5/+94
| | | | | | __PRETTY_FUNCTION__ predefined expression. llvm-svn: 92149
* Move a bunch of class related functions to CGClass.cpp, no functionality change.Anders Carlsson2009-12-242-774/+775
| | | | llvm-svn: 92148
* Sketch a simple new C++Tests suite for checking that llvm-gcc and clang generateDaniel Dunbar2009-12-243-0/+99
| | | | | | the same visible symbols, useful for finding ABI/Mangler/vtable/etc. issues. llvm-svn: 92147
* Pass the return value slot to all call exprs.Anders Carlsson2009-12-245-20/+29
| | | | llvm-svn: 92145
* Egregious, disgusting workaround for PR5866. We need to rework how weDouglas Gregor2009-12-243-3/+17
| | | | | | | | keep track of friends within templates, which will provide a real for PR5866. For now, this makes sure we don't do something entirely stupid with friends of specializations. llvm-svn: 92143
* Fill in the return value slot in CGExprAgg::VisitCallExpr. This takes us ↵Anders Carlsson2009-12-248-20/+51
| | | | | | halfway towards fixing PR5824. llvm-svn: 92142
* Add test case for PR5868, and improve location information slightly for ↵Douglas Gregor2009-12-243-1/+21
| | | | | | implicit "this" expressions llvm-svn: 92141
* Add a test for x86-64 struct returns under gc.Anders Carlsson2009-12-241-0/+31
| | | | llvm-svn: 92140
* When rebuilding a MemberExpr that refers to an anonymous union, beDouglas Gregor2009-12-241-1/+4
| | | | | | | sure to perform derived-to-base conversions on the base expression. Fixes PR5868. Proper testcase is coming soon. llvm-svn: 92139
OpenPOWER on IntegriCloud