summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Save a copy expression for non-trivial copy constructions of catch variables.John McCall2011-02-1610-31/+162
| | | | llvm-svn: 125661
* Adds a CMake target for the Basic lib's unit tests. Reviewed byZhanyong Wan2011-02-161-0/+6
| | | | | | jyasskin and chapuni. llvm-svn: 125657
* Improves CMakeLists.txt for Clang's unit tests: make "linkedZhanyong Wan2011-02-161-11/+7
| | | | | | | components" and "used libs" arguments of add_clang_unittest(). Reviewed by jyasskin and chapuni. llvm-svn: 125652
* Tweak -Warray-bounds diagnostics based on feedback from Chandler.Ted Kremenek2011-02-163-18/+29
| | | | llvm-svn: 125649
* CMake: Tweak for Visual Studio 10 quirk at clang-standalone build.NAKAMURA Takumi2011-02-161-0/+9
| | | | llvm-svn: 125647
* test/CMakeLists.txt: Don't depend on llvm toolchain at clang-standalone build.NAKAMURA Takumi2011-02-161-3/+7
| | | | llvm-svn: 125646
* Revert r125642. This broke the build? It should be a no-op.Nick Lewycky2011-02-161-1/+1
| | | | llvm-svn: 125645
* test/PCH/headersearch.cpp fails on Win32. Not trivial to fix.Francois Pichet2011-02-161-0/+1
| | | | llvm-svn: 125644
* 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-166-2/+61
| | | | 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-1610-25/+54
| | | | | | | | | | NilArgChecker CFNumberCreateChecker NSAutoreleasePoolChecker CFRetainReleaseChecker ClassReleaseChecker llvm-svn: 125636
* When searching for visible declarations (e.g., for code completion),Douglas Gregor2011-02-162-1/+14
| | | | | | | 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-162-1/+32
| | | | | | | 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-163-34/+5
| | | | | | | | 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-162-2/+2
| | | | llvm-svn: 125619
* Warn for missing terminating " or ' instead of error for gcc compatibility. ↵Argyrios Kyrtzidis2011-02-153-4/+11
| | | | | | 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-1511-32/+44
| | | | | | | | | | | internal checkers: CastToStructChecker FixedAddressChecker PointerArithChecker PointerSubChecker llvm-svn: 125612
* [analyzer] Use the new registration mechanism on the IdempotentOperationChecker.Argyrios Kyrtzidis2011-02-1517-43/+33
| | | | llvm-svn: 125611
* Handle delayed access in local declarations. PR9229.John McCall2011-02-152-10/+29
| | | | llvm-svn: 125609
* Teach code completion to cope with block types written without aDouglas Gregor2011-02-152-6/+10
| | | | | | | 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-152-4/+15
| | | | | | | 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-154-4/+31
| | | | | | <rdar://problem/8767704>. llvm-svn: 125604
* Fix the distro name.Rafael Espindola2011-02-151-1/+1
| | | | llvm-svn: 125601
* Moves FileManagerTest.cpp to unittests/Basic such that the unit testZhanyong Wan2011-02-153-4/+4
| | | | | | directory structure matches the library structure. Reviewed by jyasskin. llvm-svn: 125600
* [analyzer] Remove ObjCSelfInitCheck from AnalyzerOptions.Argyrios Kyrtzidis2011-02-152-5/+0
| | | | llvm-svn: 125599
* [analyzer] Use the new registration mechanism on some of the experimental ↵Argyrios Kyrtzidis2011-02-1517-38/+82
| | | | | | | | | | | | | | | 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-155-3/+43
| | | | | | | | 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-156-1/+87
| | | | | | options, enabled OpenCL extensions and default FP_CONTRACT setting. llvm-svn: 125589
* OpenCL: semantic analysis support for cl_khr_fp64 extensionPeter Collingbourne2011-02-154-0/+25
| | | | llvm-svn: 125588
* When we encounter an Objective-C class name in an expression, followedDouglas Gregor2011-02-152-5/+15
| | | | | | | 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-152-5/+26
| | | | | | ends up in the text segment. // rdar://8825235. llvm-svn: 125585
* Emit in-class member function definitions that are markedDouglas Gregor2011-02-152-0/+21
| | | | | | "used". Fixes <rdar://problem/8684363>. llvm-svn: 125579
* Allow resolving headers from a PCH even after headers+PCH were moved to ↵Argyrios Kyrtzidis2011-02-1510-16/+151
| | | | | | | | | | | 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
* Fix the clang-wpa example.Argyrios Kyrtzidis2011-02-155-13/+62
| | | | llvm-svn: 125565
* Initialize InlineCall in AnalyzerOptions.Argyrios Kyrtzidis2011-02-151-0/+1
| | | | llvm-svn: 125564
* Assorted cleanup:John McCall2011-02-158-131/+168
| | | | | | | | | - Have CGM precompute a number of commonly-used types - Have CGF copy that during initialization instead of recomputing them - Use TBAA info when initializing a parameter variable - Refactor the scalar ++/-- code llvm-svn: 125562
* Add CMake support to the clang unittests.Jeffrey Yasskin2011-02-155-10/+71
| | | | llvm-svn: 125561
OpenPOWER on IntegriCloud