summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Improve diagnostics when property names an object type ofFariborz Jahanian2011-02-171-0/+16
| | | | | | a forward class. // rdar://8851803 llvm-svn: 125699
* Implement code completion results for the Objective-C Key-Value CodingDouglas Gregor2011-02-172-12/+664
| | | | | | (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-1/+2
| | | | llvm-svn: 125694
* Fix assertion failure in -Warray-bounds on template parameters used as arrays.Ted Kremenek2011-02-161-1/+3
| | | | llvm-svn: 125693
* Block rewriting bug. Don't take address of captured Fariborz Jahanian2011-02-161-1/+17
| | | | | | | byref variables again when passing them to inner blocks. // rdar://9006279 llvm-svn: 125690
* Makes most methods in SVals.h conform to the naming guide. ReviewedZhanyong Wan2011-02-1614-36/+34
| | | | | | by kremenek. llvm-svn: 125687
* Fix a thinko with llvm::Optional, which is clearly the most dangerous class ↵Douglas Gregor2011-02-161-4/+8
| | | | | | template in the universe llvm-svn: 125679
* Teach the CXCodeCompleteResults results structure, which storesDouglas Gregor2011-02-161-5/+6
| | | | | | | | | code-completion results accessed via libclang, to extend the lifetime of the allocator used for cached global code-completion results at least until these completion results are destroyed. Fixes <rdar://problem/8997369>. llvm-svn: 125678
* If preprocessed token introduced empty filename then use main translation ↵Devang Patel2011-02-161-1/+1
| | | | | | unit's filename for debug info entries. llvm-svn: 125672
* Improve the invalidation logic for the cache of global codeDouglas Gregor2011-02-161-21/+98
| | | | | | | | completions. We now compute a hash of the names of all top-level declarations and macro definitions, and invalidate the cache when the hash value changes. llvm-svn: 125670
* Remove this FIXME; clear up an unused variable; style.John McCall2011-02-161-8/+6
| | | | llvm-svn: 125662
* Save a copy expression for non-trivial copy constructions of catch variables.John McCall2011-02-168-31/+123
| | | | llvm-svn: 125661
* Tweak -Warray-bounds diagnostics based on feedback from Chandler.Ted Kremenek2011-02-161-8/+14
| | | | llvm-svn: 125649
* Revert r125642. This broke the build? It should be a no-op.Nick Lewycky2011-02-161-1/+1
| | | | llvm-svn: 125645
* Convert the UnpackedAlignment field to CharUnits from bits. No change inKen Dyck2011-02-161-6/+9
| | | | | | functionality intended. llvm-svn: 125643
* Don't use "../foo" to return to the current directory.Nick Lewycky2011-02-161-1/+1
| | | | llvm-svn: 125642
* Convert Alignment member to CharUnits from bits. No change in functionalityKen Dyck2011-02-161-15/+16
| | | | | | intended. llvm-svn: 125641
* Add trivial buffer overflow checking in Sema.Ted Kremenek2011-02-162-0/+38
| | | | llvm-svn: 125640
* Convert NonVirtualSize to CharUnits from bits. No change in functionalityKen Dyck2011-02-161-7/+9
| | | | | | intended. llvm-svn: 125639
* Convert NonVirtualAlignment to CharUnits. No change in functionalityKen Dyck2011-02-161-6/+5
| | | | | | intended. llvm-svn: 125638
* [analyzer] AnalyzerFrontend is dependent on AnalyzerCheckers.Argyrios Kyrtzidis2011-02-161-1/+2
| | | | llvm-svn: 125637
* [analyzer] Use the new registration mechanism on the apple checkers:Argyrios Kyrtzidis2011-02-165-8/+38
| | | | | | | | | | NilArgChecker CFNumberCreateChecker NSAutoreleasePoolChecker CFRetainReleaseChecker ClassReleaseChecker llvm-svn: 125636
* When searching for visible declarations (e.g., for code completion),Douglas Gregor2011-02-161-0/+10
| | | | | | | be sure to look at all of the Objective-C class declarations within a @class. Fixes <rdar://problem/8876207>. llvm-svn: 125635
* Simplify test to check an aggregate argument that has non trivial ↵Devang Patel2011-02-165-23/+20
| | | | | | | | constructor or destructor. This patch rewrites r125142. llvm-svn: 125632
* When trying to provide a code completion item for a call to "super" inDouglas Gregor2011-02-161-1/+12
| | | | | | | 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-162-25/+1
| | | | | | | | 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
* Check for deprecated implementation unconditionally.Fariborz Jahanian2011-02-161-5/+1
| | | | | | Warning and its note will be ignored in default case. llvm-svn: 125621
* Fix typo (per Chris's comment).Fariborz Jahanian2011-02-161-1/+1
| | | | llvm-svn: 125619
* Warn for missing terminating " or ' instead of error for gcc compatibility. ↵Argyrios Kyrtzidis2011-02-151-2/+2
| | | | | | Fixed rdar://8914293. llvm-svn: 125616
* Only c++ class arguments with non trivial constructor or destructor needs a ↵Devang Patel2011-02-151-1/+1
| | | | | | | | | reference. C struct arguments do not need this adjustment. This fixes 7 failures in callfuncs.exp from gdb testsuite. llvm-svn: 125615
* [analyzer] Use the new registration mechanism on some of the experimental ↵Argyrios Kyrtzidis2011-02-157-16/+28
| | | | | | | | | | | internal checkers: CastToStructChecker FixedAddressChecker PointerArithChecker PointerSubChecker llvm-svn: 125612
* [analyzer] Use the new registration mechanism on the IdempotentOperationChecker.Argyrios Kyrtzidis2011-02-156-13/+7
| | | | llvm-svn: 125611
* Handle delayed access in local declarations. PR9229.John McCall2011-02-151-10/+14
| | | | llvm-svn: 125609
* Teach code completion to cope with block types written without aDouglas Gregor2011-02-151-5/+7
| | | | | | | 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-1/+12
| | | | | | | 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
* Refactor CGRecordLayoutBuilder to use CharUnits more consistently.John McCall2011-02-151-144/+162
| | | | llvm-svn: 125605
* Implement a special code-completion pattern for "IBAction". FixesDouglas Gregor2011-02-152-2/+23
| | | | | | <rdar://problem/8767704>. llvm-svn: 125604
* Fix the distro name.Rafael Espindola2011-02-151-1/+1
| | | | llvm-svn: 125601
* [analyzer] Remove ObjCSelfInitCheck from AnalyzerOptions.Argyrios Kyrtzidis2011-02-151-3/+0
| | | | llvm-svn: 125599
* [analyzer] Use the new registration mechanism on some of the experimental ↵Argyrios Kyrtzidis2011-02-158-21/+65
| | | | | | | | | | | | | | | checks. These are: CStringChecker ChrootChecker MallocChecker PthreadLockChecker StreamChecker UnreachableCodeChecker MallocChecker creates implicit dependencies between checkers and needs to be handled differently. llvm-svn: 125598
* Fix include paths on 32 bit ubuntu 10.10.Rafael Espindola2011-02-151-0/+5
| | | | | | Original patch by Jonas Bülow. llvm-svn: 125597
* When code-completing within a list of declaration specifiers,Douglas Gregor2011-02-152-1/+11
| | | | | | | | 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
* Serialization/deserialization support for floating point #pragmaPeter Collingbourne2011-02-152-0/+53
| | | | | | options, enabled OpenCL extensions and default FP_CONTRACT setting. llvm-svn: 125589
* OpenCL: semantic analysis support for cl_khr_fp64 extensionPeter Collingbourne2011-02-151-0/+5
| | | | llvm-svn: 125588
* When we encounter an Objective-C class name in an expression, followedDouglas Gregor2011-02-151-5/+10
| | | | | | | 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-5/+6
| | | | | | ends up in the text segment. // rdar://8825235. llvm-svn: 125585
* Emit in-class member function definitions that are markedDouglas Gregor2011-02-151-0/+12
| | | | | | "used". Fixes <rdar://problem/8684363>. llvm-svn: 125579
* Allow resolving headers from a PCH even after headers+PCH were moved to ↵Argyrios Kyrtzidis2011-02-155-12/+90
| | | | | | | | | | | 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
* Refactoring of code to issue warning on implementedFariborz Jahanian2011-02-151-31/+28
| | | | | | deprecated class and methods in objective-c. llvm-svn: 125573
* Add missing CMake dependencyDouglas Gregor2011-02-151-1/+1
| | | | llvm-svn: 125566
OpenPOWER on IntegriCloud