summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Fix: <rdar://problem/6740387>. Sending nil to an object that returns a structTed Kremenek2009-04-016-46/+60
| | | | | | | should only be an error if that value is consumed. This fix was largely accomplished by moving 'isConsumedExpr' back to ParentMap. llvm-svn: 68195
* remove ASTContext::buildObjCInterfaceType, which breaks canonical Chris Lattner2009-04-014-18/+2
| | | | | | | | types. It is no longer needed now that the code generator re-lays-out interfaces if they are defines after being laid out from a forward decl. llvm-svn: 68194
* - Changed PathDiagnosticPiece::getLocation() to return a PathDiagnosticLocationTed Kremenek2009-04-016-54/+251
| | | | | | | | | instead of a FullSourceLoc. This resulted in a bunch of small edits in various clients. - Updated BugReporter to include an alternate PathDiagnostic generation algorithm for PathDiagnosticClients desiring more control-flow pieces. llvm-svn: 68193
* x86-32 Darwin ABI: Handle direct return of vectors.Daniel Dunbar2009-04-012-1/+37
| | | | | | - Current return-arguments-32 status is: 8 out of 1000 failures (-7) llvm-svn: 68192
* Update docs.Zhongxing Xu2009-04-011-0/+30
| | | | llvm-svn: 68191
* Adjust doc format.Zhongxing Xu2009-04-011-30/+31
| | | | llvm-svn: 68190
* Pull clang-cc code for generating PTH files based on the input type.Daniel Dunbar2009-04-016-56/+22
| | | | | | | | | | | | | | | | | | | | | | | | - <rdar://problem/6741594> [pth] don't abuse -x to drive pth generation - Simpler, and fixes PR3915. Cleanup test cases for PTH: - Update to use -emit-pth - Removed PTH test of carbon.c and cocoa.mm; these didn't actually verify anything, and since PTH is token based the extra coverage (over cocoa.m) isn't particularly helpful. - Split PTH tests in cocoa.m to cocoa-pth.m, solely to increase available parallelism when running tests. Ted, could you update the PTH test cases (include-pth.c and cocoa-pth.m) to have some sort of positive check that the PTH is getting used? "# of PTH cache hits" or "tokens read from PTH cache" statistics would work great. :) llvm-svn: 68189
* update docs.Zhongxing Xu2009-04-011-0/+34
| | | | llvm-svn: 68188
* Fix a subtle bug where the cleanup scope entries had a dangling block referenceDaniel Dunbar2009-04-013-14/+42
| | | | | | | | | - <rdar://problem/6732143> Crash when generating @synchronize for zero-cost exception - Thanks to Anders for helping track down the problem. llvm-svn: 68186
* CFG: For 'if(...) {}' (empty body) construct an empty CFGBlock so that we canTed Kremenek2009-04-011-2/+7
| | | | | | distinguish between the true and false branches for path-sensitive analyses. llvm-svn: 68185
* Remove a FIXME, use -emit-pth to drive PTH generation.Daniel Dunbar2009-04-011-3/+1
| | | | | | - c.f. r68164 llvm-svn: 68184
* Update docs.Zhongxing Xu2009-04-011-0/+24
| | | | llvm-svn: 68183
* Tweak/cleanup darwin::Link a bit, add several FIXMES, and improve testDaniel Dunbar2009-04-012-41/+56
| | | | | | case. llvm-svn: 68182
* Fix pascal string support; testcase from mailing list message.Eli Friedman2009-04-012-3/+12
| | | | llvm-svn: 68181
* Follow gcc's example and warn by default on unknown escapes. Inspired Eli Friedman2009-04-011-1/+1
| | | | | | by mailing list message about "\phello" style strings. llvm-svn: 68180
* Fix test failure on Linux by forcing the triple to OS X.Eli Friedman2009-04-011-1/+1
| | | | llvm-svn: 68179
* Flip diagnostic from Warning to ExtWarn so that it's an error Eli Friedman2009-04-011-1/+1
| | | | | | with -pedantic-errors. This fixes the C99 part of PR3919. llvm-svn: 68178
* fix the two xfails I added with a previous patch by making ObjC interfaceChris Lattner2009-04-015-4/+41
| | | | | | | types get completed when their definition is seen if previously laid out by the code generator. llvm-svn: 68177
* move trivial forwarding function inline.Chris Lattner2009-04-012-7/+4
| | | | llvm-svn: 68176
* tidy some code.Chris Lattner2009-04-012-11/+9
| | | | llvm-svn: 68174
* Fix block comparisons. Radar 6732116.Mike Stump2009-04-015-39/+55
| | | | llvm-svn: 68171
* Implement code generation of namespaces and add mangling tests.Anders Carlsson2009-04-013-2/+15
| | | | llvm-svn: 68170
* add support for the LONG_LONG_MIN/LONG_LONG_MAX/ULONG_LONG_MAX limits.h GNU ↵Chris Lattner2009-04-011-0/+15
| | | | | | | | extensions. rdar://6740292 llvm-svn: 68169
* Fix a bug (that I thought I had fixed already) where mangling a prefix could ↵Anders Carlsson2009-04-011-2/+2
| | | | | | get us into an infinite loop llvm-svn: 68168
* Parsing, semantic analysis, and template instantiation for typenameDouglas Gregor2009-04-0116-64/+282
| | | | | | | | | | | | | specifiers that terminate in a simple-template-id, e.g., typename MetaFun::template apply<T1, T2> Also, implement template instantiation for dependent nested-name-specifiers that involve unresolved identifiers, e.g., typename T::type::type llvm-svn: 68166
* Tweak darwin::Assemble and add a FIXME.Daniel Dunbar2009-04-011-3/+8
| | | | llvm-svn: 68165
* Add '-emit-pth' option to clang-cc as an alternate API for the high-level driverTed Kremenek2009-04-011-1/+3
| | | | | | | to generate PTH files. Soon we will remove from clang-cc the GCC-style '-x c-header' interface for generating PTH files and push this logic to 'clang'. llvm-svn: 68164
* Fix a mangling bug where functions with no arguments weren't getting the 'v' ↵Anders Carlsson2009-04-012-0/+7
| | | | | | parameter specifier. llvm-svn: 68162
* Add Target hooks for IRgen of [cf]string literals.Daniel Dunbar2009-03-314-18/+81
| | | | | | | | | | | - Notably, set section on cfstring literal string data (for now, this is done everywhere because it matches what we were already doing for the CFString data itself) - <rdar://problem/6599098> [irgen] linker requires objc string data to go into cstring llvm-svn: 68160
* More code reshuffling. No functionality change.Ted Kremenek2009-03-311-465/+465
| | | | llvm-svn: 68157
* Change UsedArray to be a vector of WeakVH to fix a dangling pointer problem ↵Chris Lattner2009-03-313-10/+20
| | | | | | | | that occurs when attribute(used) and asm renaming are used together. llvm-svn: 68155
* remove some obsolete comments, use an AssertingVH.Chris Lattner2009-03-313-20/+7
| | | | llvm-svn: 68151
* Driver: Implement basic --help text.Daniel Dunbar2009-03-313-34/+137
| | | | | | | | - PR3875. - <rdar://problem/6615249> [driver] ccc should support some form of --help llvm-svn: 68148
* Driver: Add OptTable::getOptionKind.Daniel Dunbar2009-03-312-3/+8
| | | | | | Also, removed default value for getOptionMetaVar. llvm-svn: 68146
* Driver: Forward -Wp, and -Xpreprocessor arguments to clang when usingDaniel Dunbar2009-03-311-0/+12
| | | | | | | | | | | | the preprocessor. - PR3602. - As is inherent in the blanket forwarding options, this will only work if clang-cc happens to accept what the user passed. Users by and large should use driver options to interact with the preprocessor, if at all possible. llvm-svn: 68144
* Allow two codepaths for PathDiagnostic generation. This patch mainly consists ofTed Kremenek2009-03-313-42/+83
| | | | | | refactoring to make this possible (no functionality change). llvm-svn: 68141
* Some cleanup and renaming. No functionality changeDouglas Gregor2009-03-317-33/+20
| | | | llvm-svn: 68140
* Driver: Add extra parameters for help text to option definitions.Daniel Dunbar2009-03-313-499/+529
| | | | | | | | - Currently unused. And yes, now may be about the time I want a TableGen backend. llvm-svn: 68139
* Add two FIXMEsDaniel Dunbar2009-03-311-0/+4
| | | | llvm-svn: 68138
* Improve the dependent nested-name-specifier test a bitDouglas Gregor2009-03-311-1/+14
| | | | llvm-svn: 68136
* x86_32 Darwin ABI: Treat empty unions like empty structures.Daniel Dunbar2009-03-312-7/+15
| | | | | | - Current return-arguments-32 status: 15/1000 failures llvm-svn: 68132
* Rename clang.[cpp,h] to clang-cc.[cpp,h] to reflect the name change of theTed Kremenek2009-03-3111-13/+13
| | | | | | low-level frontend driver. llvm-svn: 68131
* Update VS project.Ted Kremenek2009-03-311-2/+2
| | | | llvm-svn: 68130
* Implement template instantiation for template names, including bothDouglas Gregor2009-03-317-12/+127
| | | | | | | | | | | template template parameters and dependent template names. For example, the oft-mentioned typename MetaFun::template apply<T1, T2>::type can now be instantiated, with the appropriate name lookup for "apply". llvm-svn: 68128
* Patch to fix proptocol reference ir-gen for GNU runtime.Fariborz Jahanian2009-03-311-2/+39
| | | | | | Patch by David Chisnal. llvm-svn: 68125
* ir-gen support for nonfragile abi's synthesized ivars.Fariborz Jahanian2009-03-313-4/+37
| | | | llvm-svn: 68122
* Driver: Call 'as' directly on FreeBSD.Daniel Dunbar2009-03-313-0/+57
| | | | | | - Patch by Ed Schouten! llvm-svn: 68121
* (LLVM up) Update to use llvm::sys::getHostTriple().Daniel Dunbar2009-03-314-33/+14
| | | | | | | | - Always pass -triple to clang-cc (-arch will be removed). - clang-cc doesn't play guess work with the target triple anymore. llvm-svn: 68119
* Add -Wdeprecated-declarations to driver and add a test case.Steve Naroff2009-03-312-0/+9
| | | | llvm-svn: 68117
* We fully support namespace aliases now.Anders Carlsson2009-03-311-4/+4
| | | | llvm-svn: 68116
OpenPOWER on IntegriCloud