summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* 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
* [objcmt] Don't add redundant parentheses when migrating subscripting of an ivar.Argyrios Kyrtzidis2012-05-222-2/+8
| | | | | | rdar://11501256 llvm-svn: 157227
* objective-c: provide a useful 'fixit' suggestion whenFariborz Jahanian2012-05-211-0/+17
| | | | | | | errornously using commas to separate ObjC message arguments. // rdar://11376372 llvm-svn: 157216
* [analyzer] Bind UnknownVal to InitListExpr for unsupported typesAnna Zaks2012-05-211-0/+5
| | | | | | (ex: float). llvm-svn: 157211
* Function template version of the previous patch.Rafael Espindola2012-05-211-0/+13
| | | | llvm-svn: 157207
* Produce a hidden symbol for zed inRafael Espindola2012-05-211-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-211-0/+4
| | | | | | | | 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-211-0/+8
| | | | | | While there clean up indentation. llvm-svn: 157204
* [arcmt] Revert r156999 "Remove the "it is not safe to remove an unused ↵Argyrios Kyrtzidis2012-05-211-1/+2
| | | | | | | | | | 'autorelease' message" ARC migration error". Per feedback from John this is useful to have in general. llvm-svn: 157198
* objective-c: When default synthesizing readonly IBOutlet propertiesFariborz Jahanian2012-05-211-1/+9
| | | | | | 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
* 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-201-0/+24
| | | | | | | | | 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
* 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-201-0/+10
| | | | llvm-svn: 157139
* Zap a bogus assert for delegating constructors. PR12890, part 2.Eli Friedman2012-05-201-0/+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-191-0/+18
| | | | | | dependent contexts. PR12890. llvm-svn: 157136
* objective-c: Warn if default synthesizing readonly IBOutlet propertiesFariborz Jahanian2012-05-191-0/+15
| | | | | | | and provide a 'fixit' to change 'readonly' to 'readwrite'. 'fixit' part needs little more work. // rdar://11448209 llvm-svn: 157121
* Update API usage for llvm DIBuilder changes for rvalue referenceEric Christopher2012-05-191-0/+11
| | | | | | | | 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-191-0/+21
| | | | llvm-svn: 157089
* Suggest adding 'typename' when it would make the compilerKaelyn Uhrain2012-05-181-0/+34
| | | | | | 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-181-0/+12
| | | | llvm-svn: 157082
* objc: use "class extension" instead of "continuation class"Fariborz Jahanian2012-05-184-8/+8
| | | | | | to match documentation. // rdar://11309706 llvm-svn: 157074
* Centralize the handling of the "attribute declaration must precede definition"Rafael Espindola2012-05-181-0/+3
| | | | | | | warning. This also makes us warn on tags, which, ironically, is the only case gcc warns on. llvm-svn: 157039
* [analyzer]Malloc: refactor and report use after free by memoryAnna Zaks2012-05-181-4/+8
| | | | | | allocating functions. llvm-svn: 157037
* Another test for r157025 <rdar://problem/11460990>.Fariborz Jahanian2012-05-181-0/+13
| | | | llvm-svn: 157034
* A selector match between two Objective-C methods does *not* guaranteeDouglas Gregor2012-05-171-0/+6
| | | | | | | | that the methods have the same number of parameters, although we certainly assumed this in many places. Objective-C can be insane sometimes. Fixes <rdar://problem/11460990>. llvm-svn: 157025
* In the override search for Objective-C methods, protect against ASTs that ↵Douglas Gregor2012-05-171-0/+9
| | | | | | have NULL interfaces behind a category, which can happen in invalid code. Fixes <rdar://problem/11478173>, a recent regression llvm-svn: 157021
* [arcmt] Remove the "it is not safe to remove an unused 'autorelease' ↵Argyrios Kyrtzidis2012-05-171-2/+1
| | | | | | | | | | | | | | message" ARC migration error. This is more trouble that it is worth; autoreleasing a value without holding on it is a valid use-case, we should not "punish" correct code for the minority of broken/fragile programs that depend on the behavior of -autorelease. rdar://9914061 llvm-svn: 156999
* Use the argument location instead of the format string location when warningMatt Beaumont-Gay2012-05-171-1/+6
| | | | | | | | | | | | | | | | | | about argument type mismatch. This gives a nicer diagnostic in cases like printf(fmt, i); where previously the snippet just pointed at 'fmt' (with a note at the definition of fmt). It's a wash for cases like printf("%f", i); where previously we snippeted the offending portion of the format string, but didn't indicate which argument was at fault. llvm-svn: 156968
* [libclang/AST] When declaring a local class, don't neglect to set the end ↵Argyrios Kyrtzidis2012-05-161-0/+10
| | | | | | | | | | | location of the DeclStmt node, otherwise libclang will not work for anything inside that class. rdar://10837710 llvm-svn: 156966
* Recover better from a missing 'typename' in a function template definition.Richard Smith2012-05-162-3/+46
| | | | | | | | Disambiguate past such a potential problem, and use the absence of 'typename' to break ties in favor of a parenthesized thingy being an initializer, if nothing else in the declaration disambiguates it as declaring a function. llvm-svn: 156963
* clang/test/Tooling: Remark as XFAIL again in 5 tests for msvc hosts.NAKAMURA Takumi2012-05-165-0/+15
| | | | | FIXME: JSON doesn't like path separator '\', on Win32 hosts. llvm-svn: 156957
* XFAIL this test on MIPS.Akira Hatanaka2012-05-161-1/+1
| | | | | | Since r156650, clang has stopped emitting byval arguments for MIPS targets. llvm-svn: 156954
* Rename the driver option to -mno-implicit-float, per Eli's suggestion.Chad Rosier2012-05-161-1/+1
| | | | llvm-svn: 156950
* Add triples for test.Jordy Rose2012-05-161-2/+4
| | | | llvm-svn: 156949
* [driver] Allow the driver to directly accept the -no-implicit-float option, ↵Chad Rosier2012-05-161-0/+2
| | | | | | | | | so that the generation of implicit floating point instructions can be disable for ARM. rdar://11409142 llvm-svn: 156942
* [analyzer] Fix test for PR12206, which was failing on i386.Jordy Rose2012-05-163-89/+96
| | | | llvm-svn: 156941
* Add _alignof and __builtin_alignof as aliases for __alignof inDouglas Gregor2012-05-161-0/+5
| | | | | | Microsoft mode, from Will Wilson! llvm-svn: 156940
* Tweek r156937 a bit so that the suggestions are correct.Chad Rosier2012-05-161-1/+1
| | | | llvm-svn: 156938
* Warn about -Wno-foo where foo is an unknown warning option. This is helpful Chad Rosier2012-05-161-0/+6
| | | | | | | | | | | for subtle misspellings such as -Wno-unused-command-line-arguments instead of -Wno-unused-command-line-argument. Also fix the diagnostic messages to properly handle -Wno- options. Previously, the positive version was always emitted (i.e., -Wfoo was emitted for -Wno-foo). rdar://11461500 llvm-svn: 156937
* Move the warnings for extra semi-colons under -Wextra-semi. Also, addedRichard Trieu2012-05-163-6/+28
| | | | | | | | a warning for an extra semi-colon after function definitions. Added logic so that a block of semi-colons on a line will only get one warning instead of a warning for each semi-colon. llvm-svn: 156934
* [analyzer] Revert a regression committed in r156920.Anna Zaks2012-05-161-5/+4
| | | | | | This breaks the build with -triple i386-apple-darwin9. llvm-svn: 156932
* clang/test/Tooling: Remove XFAIL in 5 tests to unveil the real failure.NAKAMURA Takumi2012-05-165-20/+0
| | | | | | FYI, they can pass on Cygwin w/o any tweaks. llvm-svn: 156930
* clang/test/Tooling/clang-check-pwd.cpp: Add "REQUIRES: shell".NAKAMURA Takumi2012-05-161-3/+1
| | | | | | This passes on MSYS bash and Cygwin. llvm-svn: 156929
* Clean up r156925, so that we only mark the capturing DeclRefExpr of aDouglas Gregor2012-05-162-22/+29
| | | | | | | | | lambda as referring to a local in an enclosing scope if we're in the enclosing scope of the lambda (not it's function call operator). Also, turn the test into an IR generation test, since that's where the crashes occurred. Really fixes PR12746 / <rdar://problem/11465120>. llvm-svn: 156926
* Fix code generation of variables reference expressions when mixingDouglas Gregor2012-05-161-0/+22
| | | | | | | blocks and lambdas, based heavily on a patch from Meador Inge. Fixes PR12746 / <rdar://problem/11465120>. llvm-svn: 156925
* Fix ASTReader handling of ImportDecls, from Meador Inge!Douglas Gregor2012-05-163-0/+14
| | | | llvm-svn: 156923
* [analyzer] Fix RUN lines for old XFAIL tests, one of which actually works.Jordy Rose2012-05-162-3/+2
| | | | llvm-svn: 156921
* [analyzer] Convert many existing tests to use clang_analyzer_eval.Jordy Rose2012-05-1611-968/+472
| | | | llvm-svn: 156920
OpenPOWER on IntegriCloud