summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Pass '-mcpu' 'FOO' instead of '-mcpu=FOO'.Daniel Dunbar2009-11-202-3/+4
| | | | llvm-svn: 89498
* Standardize Driver translation to call clang-cc using '-foo' form instead of ↵Daniel Dunbar2009-11-201-16/+16
| | | | | | '--foo'. llvm-svn: 89497
* Implement C++ [basic.lookup.classref]p3, which states how the typeDouglas Gregor2009-11-204-26/+64
| | | | | | | | | | | | name 'T' is looked up in the expression t.~T() Previously, we weren't looking into the type of "t", and therefore would fail when T actually referred to an injected-class-name. Fixes PR5530. llvm-svn: 89493
* When checking the base object of a member access expression (b.foo,Douglas Gregor2009-11-201-3/+3
| | | | | | b->foo), don't look through pointers unless we have an -> operator. llvm-svn: 89480
* Teach FixOverloadedFunctionReference to build new expression ASTs ratherDouglas Gregor2009-11-201-45/+112
| | | | | | | than tweaking existing ASTs, since we were (*gasp*) stomping on ASTs within templates. I'm glad we found this little stick of TNT early... llvm-svn: 89475
* Fix lifetime of conditional temporaries. Patch by Victor Zverovich!Anders Carlsson2009-11-205-46/+31
| | | | llvm-svn: 89467
* Add clang -cc1 parsing of CodeGenOptions.Daniel Dunbar2009-11-202-1/+64
| | | | llvm-svn: 89464
* Avoid unwanted expansion in macros that paste together INT<n>_C(v) and Ken Dyck2009-11-201-3/+5
| | | | | | UINT<n>_C(v) macros. llvm-svn: 89461
* Avoid unwanted expansion in macros that paste together INT<n>_MIN, INT<n>_MAX,Ken Dyck2009-11-201-13/+16
| | | | | | and UINT<n>_MAX defintions. llvm-svn: 89460
* Avoid unwanted macro expansion in macros that paste together int<n>_t andKen Dyck2009-11-201-4/+7
| | | | | | uint<n>_t definitions. llvm-svn: 89459
* Fixed crash when using undefined protocols (GNU runtime).David Chisnall2009-11-201-2/+7
| | | | llvm-svn: 89457
* Fix typo GCC 4.3 warned about.Benjamin Kramer2009-11-201-1/+1
| | | | llvm-svn: 89453
* Fix a couple minor memory leaks.Eli Friedman2009-11-201-1/+7
| | | | llvm-svn: 89450
* Add simple static analyzer checker to check for sending 'release', 'retain', ↵Ted Kremenek2009-11-201-0/+61
| | | | | | etc. directly to a class. Fixes <rdar://problem/7252064>. llvm-svn: 89449
* Unused ivar checker: ivars referenced by lexically nested functions should ↵Ted Kremenek2009-11-201-1/+32
| | | | | | not be flagged as unused. Fixes <rdar://problem/7254495>. llvm-svn: 89448
* Revert r89437 and add a comment.Zhongxing Xu2009-11-201-1/+2
| | | | llvm-svn: 89446
* Implement throw d, where d is a class type that requires copyMike Stump2009-11-201-2/+22
| | | | | | construction. WIP. llvm-svn: 89442
* Don't build an explicit conversion to a reference typeDouglas Gregor2009-11-201-2/+3
| | | | llvm-svn: 89441
* Handle throw d, where d is a class type but only has a trivial copyMike Stump2009-11-201-8/+9
| | | | | | constructor. WIP. llvm-svn: 89438
* It's unnecessary to check for unknown at this point.Zhongxing Xu2009-11-201-2/+1
| | | | llvm-svn: 89437
* Driver: Add parsing for TargetOptions to CompilerInvocation::CreateFromArgs.Daniel Dunbar2009-11-201-0/+54
| | | | llvm-svn: 89435
* When we have a non-dependent expression such asDouglas Gregor2009-11-201-5/+0
| | | | | | | | | | | | | | | | A::f that occurs within a non-static member function with a type-dependent "this", don't consider this to be a case for introduction of an implicit "(*this)." to refer to a specific member function unless we know (at template definition time) that A is a base class of *this. There is some disagreement here between GCC, EDG, and Clang about the handling of this case. I believe that Clang now has the correct, literal interpretation of the standard, but have asked for clarification (c++std-core-15483). llvm-svn: 89425
* Add suport for throw;. WIP.Mike Stump2009-11-201-4/+16
| | | | llvm-svn: 89424
* Fix rtti generation for throws. WIP.Mike Stump2009-11-201-9/+1
| | | | llvm-svn: 89420
* Simplify rtti building code a little. Prep for reuse for throw rttiMike Stump2009-11-203-13/+11
| | | | | | generation. llvm-svn: 89416
* Fix null dereference in NSAutoreleasePoolChecker when analyzing messages ↵Ted Kremenek2009-11-201-0/+3
| | | | | | sent to blocks. llvm-svn: 89413
* Fixup key function calculations.Mike Stump2009-11-202-7/+5
| | | | llvm-svn: 89412
* Deduce a ConstantArrayType from a value-dependent initializer listDouglas Gregor2009-11-192-8/+35
| | | | | | | rather than punting to a DependentSizedArrayType, tightening up our type checking for template definitions. Thanks, John! llvm-svn: 89407
* Draw a brighter line between "unresolved" expressions, where we have done theJohn McCall2009-11-198-36/+40
| | | | | | | | appropriate lookup and simply can't resolve the referrent yet, and "dependent scope" expressions, where we can't do the lookup yet because the entity we need to look into is a dependent type. llvm-svn: 89402
* Don't issue spurious diagnostic with Obj-C fast enumeration.Fariborz Jahanian2009-11-193-0/+11
| | | | | | (radar 7409165). llvm-svn: 89400
* Fix some default in the option classes, and some CompilerInvocation argificationDaniel Dunbar2009-11-192-15/+22
| | | | | | errors. llvm-svn: 89388
* Fixup address point computations. WIP.Mike Stump2009-11-191-18/+26
| | | | llvm-svn: 89386
* Fix crash when using --analyzer-store=region when handling initializers with ↵Ted Kremenek2009-11-191-11/+39
| | | | | | nested arrays/structs whose values are not explicitly specified. Fixes <rdar://problem/7403269>. llvm-svn: 89384
* Remove printf statement.Ted Kremenek2009-11-191-2/+0
| | | | llvm-svn: 89383
* Only fetch the ASTContext object within the assertion.Ted Kremenek2009-11-191-4/+2
| | | | llvm-svn: 89375
* Silence -Asserts warning.Daniel Dunbar2009-11-191-0/+1
| | | | llvm-svn: 89373
* Driver: Move INPUT and UNKNOWN sentinel options into the OptParser.td file.Daniel Dunbar2009-11-192-10/+0
| | | | llvm-svn: 89371
* Patch to implement new-operators with default args.Fariborz Jahanian2009-11-191-3/+31
| | | | | | Fixes pr5547. llvm-svn: 89370
* Cope with an amusingly little anomaly with dependent types andDouglas Gregor2009-11-192-9/+40
| | | | | | | | | | | | | | | | | | incomplete array initialization, where we have the following in a template: int a[] = { 1, 2, something-value-dependent }; // ... sizeof(a); The type of "a" appears to be a non-dependent IncompleteArrayType, but treating it as such makes the sizeof(a) fail at template definition time. We now correctly handle this by morphing the IncompleteArrayType into a DependentSizedArrayType with a NULL expression, indicating that its size has no corresponding expression (and, therefore, the type is distinct from others). llvm-svn: 89366
* Added preliminary support step for PS3John Thompson2009-11-191-0/+47
| | | | llvm-svn: 89362
* Define WCHAR_MIN and WCHAR_MAX in terms of __WCHAR_WIDTH__ for consistency withKen Dyck2009-11-191-2/+2
| | | | | | other limit macros. llvm-svn: 89355
* Define __WCHAR_WIDTH__ for use in stdint.h.Ken Dyck2009-11-191-0/+1
| | | | llvm-svn: 89353
* Parameterize WINT_MIN and WINT_MAX with __WINT_WIDTH__ to support arbitrary Ken Dyck2009-11-191-2/+2
| | | | | | widths. This corrects the values of these definitions for MSP430 and PIC16. llvm-svn: 89350
* Add __WINT_WIDTH__ to paramaterize the limits of WINT_MIN and WINT_MAX in Ken Dyck2009-11-191-0/+1
| | | | | | stdint.h. llvm-svn: 89348
* Construct definition of SIZE_MAX from __SIZE_WIDTH__ to support targets ofKen Dyck2009-11-191-16/+1
| | | | | | arbitrary widths. llvm-svn: 89347
* Add __SIZE_WIDTH__ to eventually replace __SIZE_TYPE__ in stdint.h.Ken Dyck2009-11-191-0/+1
| | | | llvm-svn: 89346
* Restore __INTMAX_TYPE__, __UINTMAX_TYPE__, __PTRDIFF_TYPE__, andKen Dyck2009-11-191-0/+4
| | | | | | | __INTPTR_TYPE__ as the last is used in the test/CodeGen/const-init.c and all could potentially be in use in the wild. My apologies. llvm-svn: 89345
* Remove __PTRDIFF_TYPE__ as it is no longer needed by stdint.h. It has been Ken Dyck2009-11-191-1/+0
| | | | | | replaced with __PTRDIFF_WIDTH__. llvm-svn: 89344
* Construct the macro body of PTRDIFF_MAX and PTRDIFF_MIN from __PTRDIFF_WIDTH__.Ken Dyck2009-11-191-6/+2
| | | | llvm-svn: 89343
* Add __PTRDIFF_WIDTH__ macro to eventually replace __PTRDIFF_TYPE__ in stdint.h.Ken Dyck2009-11-191-0/+1
| | | | llvm-svn: 89342
OpenPOWER on IntegriCloud