summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Check that we have an unknown upper bound range for our flexible array members.Eric Christopher2012-05-231-1/+1
| | | | llvm-svn: 157305
* Emit C++11 enum class information if it exists.Eric Christopher2012-05-232-1/+16
| | | | | | Part of rdar://11496790 llvm-svn: 157304
* Recognize the MS inheritance attributes and turn them into attributesJohn McCall2012-05-2210-20/+123
| | | | | | | | | on the RecordDecl. Persist the MS portability type attributes and ignore them in Sema rather than the parser. Patch by João Matos! llvm-svn: 157288
* Fix line endings.John McCall2012-05-221-23/+18
| | | | llvm-svn: 157287
* Test that we emit a subrange type for vlas.Eric Christopher2012-05-221-0/+9
| | | | | | Part of rdar://11457152 llvm-svn: 157269
* Fixes the autoconf build.Manuel Klimek2012-05-221-2/+2
| | | | llvm-svn: 157266
* wire -fbounds-checking to the new LLVM bounds checking passNuno Lopes2012-05-227-20/+35
| | | | llvm-svn: 157262
* Adds a method overwriteChangedFiles to the Rewriter. This is implemented byManuel Klimek2012-05-225-2/+235
| | | | | | | | | first writing the changed files to a temporary location and then overwriting the original files atomically. Also adds a RewriterTestContext to aid unit testing rewrting logic in general. llvm-svn: 157260
* revert the usage of the objectsize intrinsic with 3 parameters (to match ↵Nuno Lopes2012-05-224-12/+8
| | | | | | LLVM r157255) llvm-svn: 157256
* Replace inline asm constraint "=a" by the more general constraint "=r".Simon Atanasyan2012-05-222-2/+2
| | | | | | That extend a range of platforms support this test case. llvm-svn: 157247
* Truthify a comment.Richard Smith2012-05-221-2/+2
| | | | llvm-svn: 157232
* Fix typo.Ted Kremenek2012-05-221-1/+1
| | | | llvm-svn: 157229
* Use Perl prototypes instead of shift.Ted Kremenek2012-05-221-3/+3
| | | | llvm-svn: 157228
* [objcmt] Don't add redundant parentheses when migrating subscripting of an ivar.Argyrios Kyrtzidis2012-05-223-2/+10
| | | | | | rdar://11501256 llvm-svn: 157227
* Add basic delta-debugging script used for reducing analyzer crasher test cases.Ted Kremenek2012-05-211-0/+65
| | | | llvm-svn: 157219
* objective-c: provide a useful 'fixit' suggestion whenFariborz Jahanian2012-05-213-1/+24
| | | | | | | errornously using commas to separate ObjC message arguments. // rdar://11376372 llvm-svn: 157216
* Revert r115805. An array type is required to have a range type,Eric Christopher2012-05-211-18/+14
| | | | | | | | | | however, the range can be unknown for the upper bound. Testcase to follow. Part of rdar://11457152 llvm-svn: 157212
* [analyzer] Bind UnknownVal to InitListExpr for unsupported typesAnna Zaks2012-05-212-2/+9
| | | | | | (ex: float). llvm-svn: 157211
* Function template version of the previous patch.Rafael Espindola2012-05-212-4/+18
| | | | llvm-svn: 157207
* Produce a hidden symbol for zed inRafael Espindola2012-05-212-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | struct HIDDEN foo { }; template <class P> struct bar { }; template <> struct HIDDEN bar<foo> { DEFAULT static void zed(); }; void bar<foo>::zed() { } Before we would produce a hidden symbol in struct HIDDEN foo { }; template <class P> struct bar { }; template <> struct bar<foo> { DEFAULT static void zed(); }; void bar<foo>::zed() { } But adding HIDDEN to the specialization would cause us to produce a default symbol. llvm-svn: 157206
* [driver] When creating the compiler invocation out of command-lineArgyrios Kyrtzidis2012-05-216-16/+28
| | | | | | | | arguments, force use of clang frontend for the driver. Fixes rdar://11356765. llvm-svn: 157205
* Analyzer: Fix PR12905, a crash when encountering a call to a function named "C".Benjamin Kramer2012-05-212-10/+17
| | | | | | While there clean up indentation. llvm-svn: 157204
* [arcmt] Revert r156999 "Remove the "it is not safe to remove an unused ↵Argyrios Kyrtzidis2012-05-212-1/+13
| | | | | | | | | | 'autorelease' message" ARC migration error". Per feedback from John this is useful to have in general. llvm-svn: 157198
* Remove unused argument in my last patch.Fariborz Jahanian2012-05-211-3/+2
| | | | llvm-svn: 157194
* objective-c: When default synthesizing readonly IBOutlet propertiesFariborz Jahanian2012-05-212-55/+51
| | | | | | provide a 'fixit' to change 'readonly' to 'readwrite'. // rdar://11448209 llvm-svn: 157193
* Test and document a difference from gcc in the handling of visibilityRafael Espindola2012-05-211-0/+13
| | | | | | attributes. llvm-svn: 157186
* Unpack enums in CodeCompletetionResult.Benjamin Kramer2012-05-211-3/+3
| | | | | | | In theory they should be wide enough even when the enum type is signed, but it looks like MSVC9 still has problems with it. llvm-svn: 157182
* Teach Clang about the NVPTX backend.Peter Collingbourne2012-05-202-0/+100
| | | | llvm-svn: 157173
* Tell the driver that CUDA is a C++-like language, so that we get C++Peter Collingbourne2012-05-201-0/+1
| | | | | | header searches with CUDA. llvm-svn: 157172
* CUDA: the device and host attributes must be inheritable, in orderPeter Collingbourne2012-05-201-2/+2
| | | | | | | to deal with NVIDIA's headers. We'll need to think of another way to handle multiple host/device definitions within the same TU. llvm-svn: 157171
* test/Tooling/clang-check-pwd.cpp: Mark as XFAIL:mingw for now. Fixing is ↵NAKAMURA Takumi2012-05-201-0/+1
| | | | | | work-in-progress. llvm-svn: 157170
* CUDA: add CodeGen support for global variable address spaces.Peter Collingbourne2012-05-206-6/+67
| | | | | | | | | Because in CUDA types do not have associated address spaces, globals are declared in their "native" address space, and accessed by bitcasting the pointer to address space 0. This relies on address space 0 being a unified address space. llvm-svn: 157167
* Bitpack CodeCompletionResults.Benjamin Kramer2012-05-202-39/+32
| | | | llvm-svn: 157158
* Fix test for 32-bit hosts.Jakob Stoklund Olesen2012-05-201-1/+1
| | | | llvm-svn: 157154
* Error when using typeid() with -fno-rtti. PR 12888.Nico Weber2012-05-203-0/+17
| | | | llvm-svn: 157139
* Zap a bogus assert for delegating constructors. PR12890, part 2.Eli Friedman2012-05-202-1/+11
| | | | | | I'm pretty sure we are in fact doing the right thing here, but someone who knows the standard better should double-check that we are in fact supposed to zero out the member in the given testcase. llvm-svn: 157138
* Make delegating initializers use a similar codepath to base initializers in ↵Eli Friedman2012-05-192-0/+28
| | | | | | dependent contexts. PR12890. llvm-svn: 157136
* objective-c: Warn if default synthesizing readonly IBOutlet propertiesFariborz Jahanian2012-05-193-0/+88
| | | | | | | and provide a 'fixit' to change 'readonly' to 'readwrite'. 'fixit' part needs little more work. // rdar://11448209 llvm-svn: 157121
* Missing line break.Dmitri Gribenko2012-05-191-1/+2
| | | | llvm-svn: 157120
* Use RecordDecl::field_iterator because D1, D2 are RecordDecls. No ↵Dmitri Gribenko2012-05-191-2/+2
| | | | | | functional change. llvm-svn: 157119
* Apparently empty names are allowed here.Benjamin Kramer2012-05-192-4/+6
| | | | llvm-svn: 157117
* Simplify some users of DeclarationName::getNameKind. Fold ↵Benjamin Kramer2012-05-194-19/+16
| | | | | | getFETokenInfoAsVoid into its only caller. llvm-svn: 157116
* Inline a trivial clear() method.Benjamin Kramer2012-05-192-11/+6
| | | | llvm-svn: 157114
* Simplify code, add an assertion.Benjamin Kramer2012-05-191-5/+2
| | | | llvm-svn: 157111
* Update API usage for llvm DIBuilder changes for rvalue referenceEric Christopher2012-05-192-4/+17
| | | | | | | | types and ensure we are actually creating the type. rdar://11479676 llvm-svn: 157095
* [analyzer] c++11: do not crash on namespace aliasAnna Zaks2012-05-192-0/+23
| | | | llvm-svn: 157089
* [analyzer] For locations, use isGLValue() instead of isLValue().Anna Zaks2012-05-195-16/+16
| | | | llvm-svn: 157088
* Suggest adding 'typename' when it would make the compilerKaelyn Uhrain2012-05-183-0/+75
| | | | | | accept the template argument expression as a type. llvm-svn: 157085
* [analyzer] Fix a c++11 crash: xvalues can be locations (VisitMemberExpr)Anna Zaks2012-05-182-1/+13
| | | | llvm-svn: 157082
* [analyzer] Malloc checker: remove unnecessary comparisons.Anna Zaks2012-05-181-16/+10
| | | | llvm-svn: 157081
OpenPOWER on IntegriCloud