summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* Show either a location or a fixit note, not both, for uninitialized variable ↵David Blaikie2011-09-104-34/+34
| | | | | | warnings. llvm-svn: 139463
* Missed a %local use; hopefully this clears this test up.John McCall2011-09-101-7/+8
| | | | llvm-svn: 139462
* clang part of r139458; un-XFAIL testcase.Eli Friedman2011-09-101-1/+0
| | | | llvm-svn: 139460
* Revision 139454 fixed a broken assert in LLVM, which causesRichard Trieu2011-09-101-0/+1
| | | | | | | | a test failure in CodeGen/palignr.c, which has been marked XFAIL for the time being. A bug has been filed at PR10901 for this issue. llvm-svn: 139457
* Make this test not depend on unnecessary details and IR variable names.John McCall2011-09-101-11/+15
| | | | llvm-svn: 139455
* When converting a block pointer to an Objective-C pointer type, extendJohn McCall2011-09-101-0/+37
| | | | | | | | | | | the lifetime of the block by copying it to the heap, or else we'll get a dangling reference because the code working with the non-block-typed object will not know it needs to copy. There is some danger here, e.g. with assigning a block literal to an unsafe variable, but, well, it's an unsafe variable. llvm-svn: 139451
* Fix a diagnostics crasher with -Wmissing-noreturn in Objective-CDouglas Gregor2011-09-101-0/+9
| | | | | | | methods, and improve the diagnostic slightly along the way. Fixes <rdar://problem/10098695>. llvm-svn: 139446
* Emit debug info for wchar_t.Devang Patel2011-09-101-0/+5
| | | | llvm-svn: 139443
* Don't crash when we fail to load a module. It's unbecoming of aDouglas Gregor2011-09-101-1/+3
| | | | | | well-bred compiler like Clang. llvm-svn: 139442
* Kill of the Decl::PCHLevel field entirely. We now only need to knowDouglas Gregor2011-09-101-5/+0
| | | | | | whether a Decl was deserialized from an AST file (any AST file). llvm-svn: 139438
* Extend the Stmt AST to make it easier to look through label, default,Chandler Carruth2011-09-101-16/+30
| | | | | | | | | | | and case statements. Use this to make the logic in the CFG builder more robust at finding the actual statements within a compound statement, even when there are many layers of labels obscuring it. Also extend the test cases for a large chunk of PR10063. Still more work to do here though. llvm-svn: 139437
* Bring llvm.annotation* intrinsics support back to where it was in llvm-gcc: canJulien Lerouge2011-09-098-11/+176
| | | | | | | annotate global, local variables, struct fields, or arbitrary statements (using the __builtin_annotation), rdar://8037476. llvm-svn: 139423
* Carry the debug information from single exit unified return blockEric Christopher2011-09-091-0/+16
| | | | | | | | along with the new insert point. Fixes PR10829 llvm-svn: 139416
* Friends cannot be declared module-privateDouglas Gregor2011-09-091-0/+3
| | | | llvm-svn: 139411
* Specializations cannot be module-hidden. Diagnose attempts to do so.Douglas Gregor2011-09-091-0/+17
| | | | llvm-svn: 139406
* Treat the weak export of block runtime symbols as a deployment-targetJohn McCall2011-09-093-78/+0
| | | | | | | | feature akin to the ARC runtime checks. Removes a terrible hack where IR gen needed to find the declarations of those symbols in the translation unit. llvm-svn: 139404
* objc rewriter - Add rewriter test for new instancetypeFariborz Jahanian2011-09-091-0/+73
| | | | | | | | along with minor rewriter fix to handle that. This test is still incomplete due to rewriter issues unrelated to instancetype. llvm-svn: 139403
* __module_private__ is inherited by redeclarations of an entity, andDouglas Gregor2011-09-091-0/+26
| | | | | | must also be present of the first declaration of that entity. llvm-svn: 139384
* Propagate __module_private__ from previous declarations to laterDouglas Gregor2011-09-091-2/+12
| | | | | | declarations. llvm-svn: 139380
* When type-checking a call to an overloaded, builtin atomic operation,Douglas Gregor2011-09-091-0/+8
| | | | | | | construct a new DeclRefExpr rather than re-using the existing DeclRefExpr. Patch by Likai Liu, fixes PR8345. llvm-svn: 139373
* Thread safety: This patch deals with previously unhandled cases when ↵Caitlin Sadowski2011-09-091-0/+74
| | | | | | building lock expressions. We now resolve this expressions, avoid crashing when encountering cast expressions, and have a diagnostic for unresolved lock expressions llvm-svn: 139370
* Thread safety: refactoring test casesCaitlin Sadowski2011-09-091-9/+9
| | | | llvm-svn: 139368
* Do a lookup for the blocks runtime globals to see if they were declared,Argyrios Kyrtzidis2011-09-092-0/+58
| | | | | | | | | instead of codegen waiting to consume such a declaration, which won't happen if that decls are coming from a PCH. Fixes rdar://10028656. llvm-svn: 139359
* Modules: introduce the __module_private__ declaration specifier, whichDouglas Gregor2011-09-091-0/+56
| | | | | | | indicates that a declaration is only visible within the module it is declared in. llvm-svn: 139348
* The integer type of an enumeration type isn't always canonicalDouglas Gregor2011-09-081-0/+5
| | | | llvm-svn: 139334
* Remove WCHAR_MIN and WCHAR_MAX from limits.h. According to posix and c99Eric Christopher2011-09-081-1/+1
| | | | | | | | these should be in stdint.h - and they already are. Fixes rdar://10097036. llvm-svn: 139332
* Add some delay between PCH creation and modifying one of the headers it ↵Douglas Gregor2011-09-081-0/+1
| | | | | | depends on, which will---hopefully make this test predictably pass on Windows llvm-svn: 139327
* Extend -Wliteral-conversion to catch "int i = -1.234"Matt Beaumont-Gay2011-09-081-2/+1
| | | | llvm-svn: 139326
* Thread Safety: In C++0x Mutexes are the objects that control access to ↵Caitlin Sadowski2011-09-081-55/+55
| | | | | | shared variables, while Locks are the objects that acquire and release Mutexes. We switch to this new terminology. llvm-svn: 139321
* The frexp, modf, and remquo builtins are not 'const'.Jakob Stoklund Olesen2011-09-081-0/+41
| | | | | | | | | | These functions return a second value by writing to a pointer argument, so they cannot be marked 'readnone' which implies that they don't access memory. <rdar://problem/10070234> llvm-svn: 139319
* Thread Safety: adding basic no thread safety analysis optionCaitlin Sadowski2011-09-081-0/+10
| | | | llvm-svn: 139310
* Thread safety: Adding basic support for locks required and excluded attributesCaitlin Sadowski2011-09-081-9/+114
| | | | llvm-svn: 139308
* Thread safety: shared vs. exclusive locksCaitlin Sadowski2011-09-081-17/+98
| | | | llvm-svn: 139307
* Thread safety: small formatting change in test commentsCaitlin Sadowski2011-09-082-226/+225
| | | | llvm-svn: 139306
* Thread safety: added support for function scopes in attribute arguments.Caitlin Sadowski2011-09-081-0/+34
| | | | | | This patch was written by DeLesley Hutchins. llvm-svn: 139302
* Thread Safety: Patch to implement delayed parsing of attributes within aCaitlin Sadowski2011-09-082-0/+47
| | | | | | | | class scope. This patch was also written by DeLesley Hutchins. llvm-svn: 139301
* [libclang] Fix annotation and getting a "macro expansion" cursorArgyrios Kyrtzidis2011-09-082-1/+8
| | | | | | for a builtin macro expansion. llvm-svn: 139298
* Allow C++0x enumerations with a fixed underlying type inDouglas Gregor2011-09-082-1/+28
| | | | | | | Objective-C. The @encode'ing of such an enumeration type is the same as its underlying type. <rdar://problem/5276348>. llvm-svn: 139297
* Implement the Objective-C 'instancetype' type, which is an alias ofDouglas Gregor2011-09-083-2/+192
| | | | | | | | | | 'id' that can be used (only!) via a contextual keyword as the result type of an Objective-C message send. 'instancetype' then gives the method a related result type, which we have already been inferring for a variety of methods (new, alloc, init, self, retain). Addresses <rdar://problem/9267640>. llvm-svn: 139275
* [driver] i386 kext preprocessor jobs also need their unsupported options Chad Rosier2011-09-081-0/+7
| | | | | | | filtered. This happenis when -save-temps is specified. <rdar://problem/10088387> llvm-svn: 139269
* [arcmt] Try fixing the windows buildbot.Argyrios Kyrtzidis2011-09-077-6/+54
| | | | llvm-svn: 139262
* When parsing a function-try-block that does not have aDouglas Gregor2011-09-071-0/+18
| | | | | | | | ctor-initializer, remember to call the Sema action to generate default ctor-initializers. What a delightful little miscompile. Fixes PR10578 / <rdar://problem/9877267>. llvm-svn: 139253
* Fix Sema::CorrectTypo to ignore found but unresolved symbolsKaelyn Uhrain2011-09-071-0/+17
| | | | llvm-svn: 139252
* objc-gc: More sema work for properties declared 'weak'Fariborz Jahanian2011-09-071-1/+1
| | | | | | in GC mode. // rdar://10073896 llvm-svn: 139235
* Make sure the FunctionDecl's created by "#pragma weak" have correct ↵Eli Friedman2011-09-071-4/+11
| | | | | | ParmVarDecl's. PR10878. llvm-svn: 139224
* [arcmt] Remove xfail on test for windows, Takumi reported that it passes ↵Argyrios Kyrtzidis2011-09-071-2/+0
| | | | | | mingw and msvc. llvm-svn: 139223
* Switch clang over to using fence/atomicrmw/cmpxchg instead of the intrinsics ↵Eli Friedman2011-09-075-439/+221
| | | | | | | | | | (which will go away). LLVM CodeGen does almost exactly the same thing with these and the old intrinsics, so I'm reasonably confident this will not break anything. There are still a few issues which need to be resolved with code generation for atomic load and store, so I'm not converting the places which need those for now. I'm not entirely sure what to do about __builtin_llvm_memory_barrier: the fence instruction doesn't expose all the possibilities which can be expressed by __builtin_llvm_memory_barrier. I would appreciate hearing from anyone who is using this intrinsic. llvm-svn: 139216
* Change the self-reference visitor (which gives the warning for ↵Richard Trieu2011-09-071-0/+2
| | | | | | | | self-reference oninitalization warning of -Wuninitialized) to exclude member variables that can decay into pointers. This will cause it to no longer warn on this code: struct foo { char a[100], *e; } bar = { .e = bar.a }; llvm-svn: 139213
* In Microsoft mode, if we are inside a template class member function and we ↵Francois Pichet2011-09-071-0/+31
| | | | | | | | can't resolve a function call then create a type-dependent CallExpr even if the function has no type dependent arguments. The goal is to postpone name lookup to instantiation time to be able to search into type dependent base classes. With this patch in, clang will generate only 37 errors (down from 212) when parsing a typical MFC source file. llvm-svn: 139210
* objc-gc: Adds support for "weak" property attribute under GC.Fariborz Jahanian2011-09-061-0/+28
| | | | | | // rdar://10073896 llvm-svn: 139203
OpenPOWER on IntegriCloud