summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Teach Sema::ActOnUninitializedDecl() not to try to interpret when oneDouglas Gregor2011-05-211-45/+43
| | | | | | | | should use a constructor to default-initialize a variable. InitializationSequence knows the rules for default initialization, better. Fixes <rdar://problem/8501008>. llvm-svn: 131796
* Introduce the -fdiagnostics-format=xxx option to control how ClangDouglas Gregor2011-05-213-11/+56
| | | | | | | | | | | | prints the file, line, and column of a diagnostic. We currently support Clang's normal format, MSVC, and Vi formats. Note that we no longer change the diagnostic format based on -fms-extensions. Patch by Andrew Fish! llvm-svn: 131794
* A few more is(Un)signedIntegerType/is(Un)signedOrEnumerationType cleanups.Douglas Gregor2011-05-214-6/+11
| | | | llvm-svn: 131793
* Implement C++0x semantics for passing non-POD classes through varargs.Douglas Gregor2011-05-211-5/+25
| | | | llvm-svn: 131792
* Only ignore extra tokens after #else if we skip it, otherwise warn. Fixes ↵Argyrios Kyrtzidis2011-05-211-1/+3
| | | | | | rdar://9475098. llvm-svn: 131788
* Fix regression in static analyzer's handling of prefix '--' operator. It ↵Ted Kremenek2011-05-201-1/+1
| | | | | | was being treated as postfix '--' in C mode. llvm-svn: 131770
* Add a missing case for default constructor deletion.Alexis Hunt2011-05-201-0/+5
| | | | | | | This case is tested by the fact that the modified test produces significatly worse diagnostics. That's on the list. llvm-svn: 131759
* Introduce Type::isSignedIntegerOrEnumerationType() andDouglas Gregor2011-05-2013-38/+70
| | | | | | | | | | | | | Type::isUnsignedIntegerOrEnumerationType(), which are like Type::isSignedIntegerType() and Type::isUnsignedIntegerType() but also consider the underlying type of a C++0x scoped enumeration type. Audited all callers to the existing functions, switching those that need to also handle scoped enumeration types (e.g., those that deal with constant values) over to the new functions. Fixes PR9923 / <rdar://problem/9447851>. llvm-svn: 131735
* Downgrade the error about re-opening an inline namespace as non-inlineDouglas Gregor2011-05-201-3/+11
| | | | | | | to a warning, since apparently libstdc++'s debug mode does this (and we can recover safely). Add a Fix-It to insert the "inline", just for kicks. llvm-svn: 131732
* Diagnose unexpanded parameter packs in return statements. ThisDouglas Gregor2011-05-202-13/+18
| | | | | | | manifested in a crash with blocks in PR9953, but it was a ticking time bomb for normal functions, too. Fixes PR9953. llvm-svn: 131731
* sandybridge is now called corei7-avxBenjamin Kramer2011-05-201-1/+1
| | | | llvm-svn: 131729
* Clean up two commentsDouglas Gregor2011-05-201-1/+4
| | | | llvm-svn: 131727
* Fix PR9941 for out-of-line template destructors too.Sebastian Redl2011-05-202-11/+16
| | | | llvm-svn: 131722
* Undo enough of r131143 to make private copy ctor diags say "copy ↵Matt Beaumont-Gay2011-05-191-2/+6
| | | | | | constructor" again llvm-svn: 131706
* Teach RegionStore not to symbolic array values whose indices it cannot ↵Ted Kremenek2011-05-191-0/+5
| | | | | | reason about. llvm-svn: 131702
* Fix location of setter/getter synthesized for a property.Devang Patel2011-05-192-8/+10
| | | | llvm-svn: 131701
* Revert r131672 until __underlying_type is properly implemented in theAlexis Hunt2011-05-191-1/+0
| | | | | | template case. llvm-svn: 131692
* Implement a __has_feature for __underlying_typeAlexis Hunt2011-05-191-0/+1
| | | | llvm-svn: 131672
* Correction for r131662, the GNU as option is --fatal-warnings.Joerg Sonnenberger2011-05-191-1/+1
| | | | llvm-svn: 131671
* Support -fatal-warnings for the assembler frontendJoerg Sonnenberger2011-05-191-0/+3
| | | | llvm-svn: 131662
* Fix PR9941 again, this time for templates.Sebastian Redl2011-05-191-2/+4
| | | | llvm-svn: 131640
* - Fixes openSUSE detection for 11.4 and upcoming 12.1David Chisnall2011-05-191-2/+9
| | | | | | | | - Adds gcc 4.6 to gcc list so that linking will work on openSUSE 12.1 Patch by İsmail Dönmez! llvm-svn: 131637
* Add paths used by openSuSE 12.1David Chisnall2011-05-191-0/+5
| | | | | | Patch by Ismail Dönmez! llvm-svn: 131636
* Implement __underlying_type for libc++.Alexis Hunt2011-05-198-2/+78
| | | | llvm-svn: 131633
* Reapply r121528, fixing PR9941 by delaying the exception specification check ↵Sebastian Redl2011-05-193-8/+74
| | | | | | for destructors until the class is complete and destructors have been adjusted. llvm-svn: 131632
* Teach static analyzer to analyze Objective-C methods in category ↵Ted Kremenek2011-05-191-4/+6
| | | | | | implementations. llvm-svn: 131614
* Make __builtin_shufflevector and -ftrapv work correctly together. PR9945.Eli Friedman2011-05-191-11/+5
| | | | llvm-svn: 131611
* After consultation with doug, revert r131515.Alexis Hunt2011-05-181-9/+1
| | | | llvm-svn: 131574
* Revert r121528 as it breaks a simple testcase, which leads to, amongAlexis Hunt2011-05-182-53/+8
| | | | | | other things, libcxx not building. llvm-svn: 131573
* Add ARMTargetCodeGenInfo::initDwarfEHRegSizeTable() defining 16 32bit regs.Roman Divacky2011-05-181-0/+16
| | | | llvm-svn: 131558
* Implement implicit exception specifications of destructors.Sebastian Redl2011-05-182-8/+53
| | | | llvm-svn: 131528
* Implement an additional fix for infinite recursion of deleted specialAlexis Hunt2011-05-181-58/+49
| | | | | | | | | | | | | | | | member functions by making sure that they're on the record before checking for deletion. Also make sure source locations are valid to avoid crashes. Unfortunately, the declare-all-implicit-members approach is still required in order to ensure that dependency loops do not result in incorrectly deleting functions (since they are to be deleted at the declaration point per the standard). Fixes PR9917 llvm-svn: 131520
* Force declaration of implicit members in C++0x mode.Alexis Hunt2011-05-181-1/+9
| | | | | | | | | | | | I hear at least one person crying out in anguish, but it's unfortunately necessary to avoid infinite loops with mutually dependent constructors trying to call each other and determine if they are deleted. It might be possible to go back to the old behavior if we can implement part-of-file lookups efficiently, or if a solution is discovered by which we can safely detect and avoid infinite recusion. llvm-svn: 131515
* Add some support for RHEL5 systems.Eric Christopher2011-05-172-1/+9
| | | | llvm-svn: 131505
* Conditionalize the use of 4.4 or 4.2 format based on the target.Bill Wendling2011-05-171-4/+6
| | | | | | <rdar://problem/8107317> llvm-svn: 131504
* Code cleanup of my last patch.Fariborz Jahanian2011-05-171-13/+8
| | | | llvm-svn: 131499
* Patch to fix IR-gen crash generating structure ABI which implementsFariborz Jahanian2011-05-174-16/+35
| | | | | | | user specified string class via -fconstant-string-class option. pr9914. llvm-svn: 131496
* Fix a nasty bug where inside StringLiteralParser:Argyrios Kyrtzidis2011-05-171-1/+18
| | | | | | | | | | | | | | | | 1. We would assume that the length of the string literal token was at least 2 2. We would allocate a buffer with size length-2 And when the stars aligned (one of which would be an invalid source location due to stale PCH) The length would be 0 and we would try to allocate a 4GB buffer. Add checks for this corner case and a bunch of asserts. (We really really should have had an assert for 1.). Note that there's no test case since I couldn't get one (it was major PITA to reproduce), maybe later. llvm-svn: 131492
* Do some safety checks.Argyrios Kyrtzidis2011-05-171-0/+6
| | | | llvm-svn: 131491
* For calls returning first-class aggregates, store by element instead of ↵Eli Friedman2011-05-171-2/+25
| | | | | | creating aggregate stores in common cases. This is more friendly to fast-isel. llvm-svn: 131490
* Revert r131434, my commit disabling the complete-object constructorJohn McCall2011-05-171-2/+1
| | | | | | | optimization for abstract classes; there was a misunderstanding, and it turns out that there are no kexts which rely on this. llvm-svn: 131489
* Fix some minor bugs and add a lot more test cases for defaultedAlexis Hunt2011-05-171-8/+12
| | | | | | | constructors, including two more FIXMEs (one of which I don't actually understand). llvm-svn: 131487
* Fix comment.Rafael Espindola2011-05-171-1/+1
| | | | llvm-svn: 131478
* The logic about -static is darwin only. For now assume that all nonRafael Espindola2011-05-171-15/+22
| | | | | | darwin assembler can handle cfi. Add a test. llvm-svn: 131464
* Revert r131447, see if it fixes the buildbot.Argyrios Kyrtzidis2011-05-171-2/+5
| | | | llvm-svn: 131450
* Inside isEmptyRecord function, for CXXRecordDecl just check the isEmpty bit.Argyrios Kyrtzidis2011-05-171-5/+2
| | | | llvm-svn: 131447
* Reapply the commits that r131401 reverted and add a fix for PR9927.Argyrios Kyrtzidis2011-05-171-23/+164
| | | | llvm-svn: 131446
* Set up appropriate context for member function.Devang Patel2011-05-171-0/+3
| | | | | | Radar 9440721 llvm-svn: 131441
* Implement some tests for defaulted constructors. To do this I had toAlexis Hunt2011-05-171-17/+19
| | | | | | suppress an error we were previously emitting on valid union code. llvm-svn: 131440
* Fix crash on C++ code when compiling with -finstrument-functions.Ted Kremenek2011-05-161-1/+1
| | | | llvm-svn: 131435
OpenPOWER on IntegriCloud