summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* update this test now that reassociate isn't stripping nsw's pointlessly.Chris Lattner2011-02-171-2/+2
| | | | llvm-svn: 125705
* Improve diagnostics when property names an object type ofFariborz Jahanian2011-02-171-0/+12
| | | | | | a forward class. // rdar://8851803 llvm-svn: 125699
* Implement code completion results for the Objective-C Key-Value CodingDouglas Gregor2011-02-171-0/+87
| | | | | | (KVC) and Key-Value Observing (KVO) protocols. llvm-svn: 125696
* Ensure that the NRVO flag has some block to insert into. Fixes PR9178!Nick Lewycky2011-02-161-0/+17
| | | | llvm-svn: 125694
* Fix assertion failure in -Warray-bounds on template parameters used as arrays.Ted Kremenek2011-02-161-0/+5
| | | | llvm-svn: 125693
* Block rewriting bug. Don't take address of captured Fariborz Jahanian2011-02-161-0/+35
| | | | | | | byref variables again when passing them to inner blocks. // rdar://9006279 llvm-svn: 125690
* Placate Doug and change capitalization of diagnostic note.Ted Kremenek2011-02-161-2/+2
| | | | llvm-svn: 125688
* If preprocessed token introduced empty filename then use main translation ↵Devang Patel2011-02-161-0/+9
| | | | | | unit's filename for debug info entries. llvm-svn: 125672
* Save a copy expression for non-trivial copy constructions of catch variables.John McCall2011-02-161-0/+34
| | | | llvm-svn: 125661
* Tweak -Warray-bounds diagnostics based on feedback from Chandler.Ted Kremenek2011-02-161-8/+8
| | | | llvm-svn: 125649
* test/CMakeLists.txt: Don't depend on llvm toolchain at clang-standalone build.NAKAMURA Takumi2011-02-161-3/+7
| | | | llvm-svn: 125646
* test/PCH/headersearch.cpp fails on Win32. Not trivial to fix.Francois Pichet2011-02-161-0/+1
| | | | llvm-svn: 125644
* Add trivial buffer overflow checking in Sema.Ted Kremenek2011-02-162-1/+17
| | | | llvm-svn: 125640
* [analyzer] Use the new registration mechanism on the apple checkers:Argyrios Kyrtzidis2011-02-164-16/+16
| | | | | | | | | | NilArgChecker CFNumberCreateChecker NSAutoreleasePoolChecker CFRetainReleaseChecker ClassReleaseChecker llvm-svn: 125636
* When searching for visible declarations (e.g., for code completion),Douglas Gregor2011-02-161-1/+4
| | | | | | | be sure to look at all of the Objective-C class declarations within a @class. Fixes <rdar://problem/8876207>. llvm-svn: 125635
* When trying to provide a code completion item for a call to "super" inDouglas Gregor2011-02-161-0/+20
| | | | | | | Objective-C, also look in the categories and class extensions of our superclasses. Fixes <rdar://problem/8853540>. llvm-svn: 125628
* Don't call objc_read_weak as part of emitting a block literal.John McCall2011-02-161-9/+4
| | | | | | | | Nobody ever gave me a clear reason for why we were doing this, and now it's apparently causing serious problems, so if *not* having this causes problems, we get to solve them the right way this time. llvm-svn: 125627
* Warn for missing terminating " or ' instead of error for gcc compatibility. ↵Argyrios Kyrtzidis2011-02-151-0/+7
| | | | | | Fixed rdar://8914293. llvm-svn: 125616
* [analyzer] Use the new registration mechanism on some of the experimental ↵Argyrios Kyrtzidis2011-02-154-16/+16
| | | | | | | | | | | internal checkers: CastToStructChecker FixedAddressChecker PointerArithChecker PointerSubChecker llvm-svn: 125612
* [analyzer] Use the new registration mechanism on the IdempotentOperationChecker.Argyrios Kyrtzidis2011-02-159-26/+26
| | | | llvm-svn: 125611
* Handle delayed access in local declarations. PR9229.John McCall2011-02-151-0/+15
| | | | llvm-svn: 125609
* Teach code completion to cope with block types written without aDouglas Gregor2011-02-151-1/+3
| | | | | | | prototype, e.g., ^() rather than ^(void). Fixes <rdar://problem/8875712>. llvm-svn: 125608
* Add a hack to avoid adding '\01' to asm names when possible. It would beRafael Espindola2011-02-151-3/+3
| | | | | | | better for clang to always compute the right name, but for now this hack fixes PR9177 and lets us build firefox with LTO :-) llvm-svn: 125607
* Implement a special code-completion pattern for "IBAction". FixesDouglas Gregor2011-02-151-1/+6
| | | | | | <rdar://problem/8767704>. llvm-svn: 125604
* [analyzer] Use the new registration mechanism on some of the experimental ↵Argyrios Kyrtzidis2011-02-159-17/+17
| | | | | | | | | | | | | | | checks. These are: CStringChecker ChrootChecker MallocChecker PthreadLockChecker StreamChecker UnreachableCodeChecker MallocChecker creates implicit dependencies between checkers and needs to be handled differently. llvm-svn: 125598
* When code-completing within a list of declaration specifiers,Douglas Gregor2011-02-151-0/+27
| | | | | | | | separately handle the case of a local declaration-specifier list, including all types in the set of options. Fixes <rdar://problem/8790735> and <rdar://problem/8662831>. llvm-svn: 125594
* OpenCL: standardise naming of test casesPeter Collingbourne2011-02-155-7/+7
| | | | llvm-svn: 125590
* Serialization/deserialization support for floating point #pragmaPeter Collingbourne2011-02-151-0/+17
| | | | | | options, enabled OpenCL extensions and default FP_CONTRACT setting. llvm-svn: 125589
* OpenCL: semantic analysis support for cl_khr_fp64 extensionPeter Collingbourne2011-02-152-0/+18
| | | | llvm-svn: 125588
* When we encounter an Objective-C class name in an expression, followedDouglas Gregor2011-02-151-0/+5
| | | | | | | by the code completion token, treat this as a class message send where the opening square bracket is missing. Fixes <rdar://problem/6970911>. llvm-svn: 125587
* In -fapple-kext mode, global object construction code Fariborz Jahanian2011-02-151-0/+20
| | | | | | ends up in the text segment. // rdar://8825235. llvm-svn: 125585
* Emit in-class member function definitions that are markedDouglas Gregor2011-02-151-0/+9
| | | | | | "used". Fixes <rdar://problem/8684363>. llvm-svn: 125579
* Allow resolving headers from a PCH even after headers+PCH were moved to ↵Argyrios Kyrtzidis2011-02-151-0/+43
| | | | | | | | | | | another path. Store in PCH the directory that the PCH was originally created in. If a header file is not found at the path that we expect it to be and the PCH file was moved from its original location, try to resolve the file by assuming that header+PCH were moved together and the header is in the same place relative to the PCH. llvm-svn: 125576
* Add CMake support to the clang unittests.Jeffrey Yasskin2011-02-153-10/+17
| | | | llvm-svn: 125561
* [analyzer] Use the new registration mechanism on some of the internal ↵Argyrios Kyrtzidis2011-02-154-13/+13
| | | | | | | | | | | | | checks. These are: StackAddrLeakChecker ObjCAtSyncChecker UnixAPIChecker MacOSXAPIChecker The rest have/create implicit dependencies between checkers and need to be handled differently. llvm-svn: 125559
* Return a declaration to the parser when creating a field in C++ so thatJohn McCall2011-02-151-0/+14
| | | | | | | | | the parser will complete the declarator with a valid decl and thus trigger delayed diagnostics for it. It certainly looks like we were intentionally returning null here, but I couldn't find any good reason for it, and there wasn't a comment, so farewell to all that. llvm-svn: 125556
* Perform zero-initialization of virtual base classes when emitting John McCall2011-02-151-15/+28
| | | | | | | | | | | | a zero constant for a complete class. rdar://problem/8424975 To make this happen, track the field indexes for virtual bases in the complete object. I'm curious whether we might be better off making CGRecordLayoutBuilder *much* more reliant on ASTRecordLayout; we're currently duplicating an awful lot of the ABI layout logic. llvm-svn: 125555
* Warn if method for a deprecated method is implemented.Fariborz Jahanian2011-02-151-0/+45
| | | | | | | | | Warn if class for a deprecated class is implemented. Warn if category for a deprecated class is implemented. All under control of -Wdeprecated-implementations. // rdar://8973810. llvm-svn: 125545
* Put "incomplete implementation" warning under a flag.Ted Kremenek2011-02-141-0/+26
| | | | llvm-svn: 125535
* Don't crash on hierarchy static_casts which appear in variable initializers.John McCall2011-02-141-0/+15
| | | | | | PR9221. llvm-svn: 125532
* Change the context correctly when instantiating a static data member definition.John McCall2011-02-141-0/+10
| | | | llvm-svn: 125517
* Provide overload diagnostics when explicit casts involving class types fail.John McCall2011-02-145-25/+25
| | | | | | PR8626. llvm-svn: 125506
* [analyzer] Overhauling of the checker registration mechanism.Argyrios Kyrtzidis2011-02-141-1/+1
| | | | | | | | | | | | | | -Checkers will be defined in the tablegen file 'Checkers.td'. -Apart from checkers, we can define checker "packages" that will contain a collection of checkers. -Checkers can be enabled with -analyzer-checker=<name> and disabled with -analyzer-disable-checker=<name> e.g: Enable checkers from 'cocoa' and 'corefoundation' packages except the self-initialization checker: -analyzer-checker=cocoa -analyzer-checker=corefoundation -analyzer-disable-checker=cocoa.SelfInit -Introduces CheckerManager and CheckerProvider. CheckerProviders get the set of checker names to enable/disable and register them with the CheckerManager which will be the entry point for all checker-related functionality. Currently only the self-initialization checker takes advantage of the new mechanism. llvm-svn: 125503
* Fix edge case where we don't cull warnings in IdempotentOperationsChecker ↵Ted Kremenek2011-02-141-14/+6
| | | | | | due to incomplete analysis of loops. llvm-svn: 125495
* Handle 'UsingDirective' in CFGRecStmtDeclVisitor.Ted Kremenek2011-02-141-0/+15
| | | | llvm-svn: 125491
* When parsing an out-of-line member function declaration, we must delayJohn McCall2011-02-142-1/+22
| | | | | | | | | | | | | | | | | | | | | | access-control diagnostics which arise from the portion of the declarator following the scope specifier, just in case access is granted by friending the individual method. This can also happen with in-line member function declarations of class templates due to templated-scope friend declarations. We were really playing fast-and-loose before with this sort of thing, and it turned out to work because *most* friend functions are in file scope. Making us delay regardless of context exposed several bugs with how we were manipulating delay. I ended up needing a concept of a context that's independent of the declarations in which it appears, and then I actually had to make some things save contexts correctly, but delay should be much cleaner now. I also encapsulated all the delayed-diagnostics machinery in a single subobject of Sema; this is a pattern we might want to consider rolling out to other components of Sema. llvm-svn: 125485
* OpenCL: add support for __kernel, kernel keywords and EXTENSION,Peter Collingbourne2011-02-144-0/+32
| | | | | | FP_CONTRACT pragmas. Patch originally by ARM. llvm-svn: 125475
* Make LexOnOffSwitch a Preprocessor member functionPeter Collingbourne2011-02-141-1/+1
| | | | llvm-svn: 125473
* Look through array types when deciding whether a field requires non-trivialJohn McCall2011-02-131-0/+20
| | | | | | destruction in the destructor-aliases logic. Fixes PR 9197. llvm-svn: 125447
* Implement objective-c++'s block pointer type matching involvingFariborz Jahanian2011-02-123-1/+97
| | | | | | | types which are contravariance in argument types and covariance in return types. // rdar://8979379. llvm-svn: 125445
OpenPOWER on IntegriCloud