summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Fix buildbot failure.Fariborz Jahanian2013-06-181-1/+1
| | | | llvm-svn: 184199
* Objective-C [qoi]: privide typo correction for selectorsFariborz Jahanian2013-06-188-23/+54
| | | | | | | | in addition of receiver having static type, but also when receiver has dynamic type (of 'id' variety) as well as when receiver is of 'Class' type vareity. // rdar://7853549 llvm-svn: 184195
* Remove option emitter from clang-tblgenReid Kleckner2013-06-185-292/+3
| | | | | | | The CMake build was still using it because I forgot to s/CLANG/LLVM/ in the tablegen() call. The Makefile build is already using llvm-tblgen. llvm-svn: 184192
* Remove duplicated file and directory.Rafael Espindola2013-06-181-34/+0
| | | | llvm-svn: 184188
* Update to pass in pointers intead of references.Bill Wendling2013-06-182-2/+2
| | | | llvm-svn: 184176
* size_t on Darwin AAPCS targets is "unsigned long". <rdar://problem/14136459>Bob Wilson2013-06-182-0/+15
| | | | | | | | Some embedded targets use ARM's AAPCS with iOS header files that define size_t as unsigned long, which conflicts with the usual AAPCS definition of size_t as unsigned int. llvm-svn: 184171
* Simplify a loop in ProcessCodeCompleteResults(). Pointed out by David BlaikieDmitri Gribenko2013-06-181-6/+6
| | | | llvm-svn: 184169
* ArrayRef'ize CodeCompletionContext::getNumSelIdents()Dmitri Gribenko2013-06-182-12/+7
| | | | llvm-svn: 184168
* contextual conversion fix: C++98 compatibility warning.Larisse Voufo2013-06-181-2/+3
| | | | llvm-svn: 184167
* Add support for -fpcc-struct-return. Patch by Arthur O'Dwyer!John McCall2013-06-188-22/+150
| | | | llvm-svn: 184166
* r184100 Fix -- Updated test cases for contextual conversionLarisse Voufo2013-06-183-5/+25
| | | | llvm-svn: 184165
* Remove an ugly hack that was meant to eliminate the breakpoint ambiguityAdrian Prantl2013-06-182-4/+20
| | | | | | | | | | | | | | between a block assignment and the entry of the block function. In reality this wouldn't work anyway because blocks are predominantly created on-the-fly inside of an ObjC method invocation. The proper fix for the ambiguity is to use -gcolumn-info to differentiate the breakpoints. This is expected to break some block-related darwin-gdb tests. rdar://problem/14039866 llvm-svn: 184157
* Delete dead code.Eli Friedman2013-06-182-39/+0
| | | | llvm-svn: 184154
* Accept and ignore -fdebug-types-section for now. This will be usedEric Christopher2013-06-183-1/+7
| | | | | | later with dwarf4 type hashing. llvm-svn: 184152
* FileCheck-ize.Eric Christopher2013-06-181-2/+4
| | | | llvm-svn: 184151
* Add a missing testcase for ObjC ivar encoding for a C++ class with a vptr.Eli Friedman2013-06-171-0/+13
| | | | | | Found by skimming over lcov report. llvm-svn: 184150
* Turn Clang 3.3 boxes on C++ status from yellow to green now we're releasing it.Richard Smith2013-06-171-7/+7
| | | | llvm-svn: 184149
* Point link at correct location for Clang 3.3 release notes.Richard Smith2013-06-171-1/+1
| | | | llvm-svn: 184148
* Fix source range of CXXNewExpr with parentheses around the type. PR15569.Eli Friedman2013-06-172-1/+10
| | | | llvm-svn: 184139
* Compute the visibility of static local variables consistently. Fixes PR16208.Eli Friedman2013-06-172-2/+19
| | | | llvm-svn: 184137
* Fix Expr::Classify to correctly classify ExtVectorElementExprs. PR16204.Eli Friedman2013-06-172-2/+9
| | | | llvm-svn: 184123
* Cleanup linkage computation for static locals.Rafael Espindola2013-06-173-6/+19
| | | | | | | With this patch we assign VisibleNoLinkage to static locals in inline functions. This lets us simplify CodeGen a bit. llvm-svn: 184114
* Use atomic instructions on Bitrig armv6. Patch by Patrick Wildt.Rafael Espindola2013-06-172-1/+4
| | | | llvm-svn: 184113
* X86 intrinsics: cmpge|gt|nge|ngt_ss|_sdManman Ren2013-06-173-8/+68
| | | | | | | | | | | | | These intrinsics should return the comparision result in the low bits and keep the high bits of the first source operand. When calling to builtin functions, the source operands are swapped and the high bits of the second source operand are kept. To fix the issue, an extra shufflevector is used. rdar://14153896 llvm-svn: 184110
* Revert "Updated test cases for contextual conversion"Rafael Espindola2013-06-173-23/+5
| | | | | | | | | This reverts commit r184100. It was faling on some bots: http://bb.pgr.jp/builders/cmake-clang-i686-mingw32/builds/1973/steps/test_clang/logs/Clang%20%3A%3A%20SemaCXX__cxx1y-contextual-conversion-tweaks.cpp llvm-svn: 184108
* Updated test cases for contextual conversionLarisse Voufo2013-06-173-5/+23
| | | | llvm-svn: 184100
* Avoid using __SIZE_TYPE__ in a -std=c++98 -pedantic-errors test, because thatRichard Smith2013-06-171-1/+1
| | | | | | triggers an error on MS targets where __SIZE_TYPE__ expands to 'long long'. llvm-svn: 184096
* unbreak buildbot for now.Fariborz Jahanian2013-06-171-1/+1
| | | | llvm-svn: 184093
* Include PathV1.h only where it is used.Rafael Espindola2013-06-179-1/+8
| | | | llvm-svn: 184090
* Clean up empty struct/union recognition.Serge Pavlov2013-06-174-47/+50
| | | | | | | | | Make use of getTypeSizeInChars to detect structs/unions of zero size. It allows more accurate detection of types of zero size. It however has a side effect - sequence of used types may change, that is why the test 'override-layout' was modified. llvm-svn: 184088
* Objective-C [qoi]: Provide fixit hint when message with typoFariborz Jahanian2013-06-177-8/+48
| | | | | | is sent to a receiver object. This is wip. // rdar://7853549 llvm-svn: 184086
* [Driver] Remove the using namespace directives from headersReid Kleckner2013-06-1712-234/+270
| | | | | | | | | | | This adds a bunch of llvm::opt name specifiers to all the uses of types from that namespace. Reviewers: espindola Differential Revision: http://llvm-reviews.chandlerc.com/D983 llvm-svn: 184079
* Fix a problem in ExpressionParser leading to trailing comments affecting ↵Alexander Kornienko2013-06-172-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | indentation of an expression after a line break. Summary: E.g. the second line in return aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + b; // is indented 4 characters more than in return aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + b; Reviewers: klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D984 llvm-svn: 184078
* Try to fix the bots with a forward decl.Reid Kleckner2013-06-171-0/+1
| | | | llvm-svn: 184077
* Fixes incorrect indentation of line comments after break and re-alignment.Alexander Kornienko2013-06-173-6/+45
| | | | | | | | | | | | | | | | | | | Summary: Selectively propagate the information about token kind in WhitespaceManager::replaceWhitespaceInToken.For correct alignment of new segments of line comments in order to align them correctly. Don't set BreakBeforeParameter in breakProtrudingToken for line comments, as it introduces a break after the _next_ parameter. Added tests for related functions. Reviewers: klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D980 llvm-svn: 184076
* [AST] Don't include RecursiveASTVisitor.h in ASTContext.hReid Kleckner2013-06-174-88/+99
| | | | | | | | | | | | | | | | | | | | The untemplated implementation of getParents() doesn't need to be in a header file. RecursiveASTVisitor.h is full of repeated macro expansion. Moving this include to ASTContext.cpp speeds up compilation of LambdaMangleContext.cpp, a small C++ file with few includes, from 3.7s to 2.8s for me locally. I haven't measured a full build, but it can't hurt. I had to fix a few static analyzer files that were depending on transitive includes of C++ AST headers. Reviewers: rsmith, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D982 llvm-svn: 184075
* Corrected status of support for contextual conversion from full to SVNLarisse Voufo2013-06-171-1/+1
| | | | llvm-svn: 184073
* Remove unused file.Richard Smith2013-06-171-0/+0
| | | | llvm-svn: 184070
* C++11: don't warn about the deprecated 'register' keyword if it's combined withRichard Smith2013-06-174-14/+19
| | | | | | an asm label. llvm-svn: 184069
* Add warning group -Wdeprecated-register for C++11 warning on 'register' beingRichard Smith2013-06-173-5/+11
| | | | | | deprecated. llvm-svn: 184068
* Add tests for C++ DR100-150.Richard Smith2013-06-162-44/+585
| | | | llvm-svn: 184057
* Add testcase for DR39 from PR5916.Richard Smith2013-06-161-0/+12
| | | | llvm-svn: 184056
* PR16339: Don't produce a diagnostic pointing at the whitespace between a '#if'Richard Smith2013-06-163-2/+17
| | | | | | | | and a '!defined(X)' if we find a broken header guard. This is suboptimal; we should point the diagnostic at the 'X' token not the 'if' token, but it fixes the crash. llvm-svn: 184054
* Fixed one buildbot-failure-causing bug...Larisse Voufo2013-06-161-1/+1
| | | | llvm-svn: 184053
* ArrayRef'ize Sema::CodeComplete*Dmitri Gribenko2013-06-164-123/+84
| | | | | | Patch by Robert Wilhelm. llvm-svn: 184052
* Updated status of support for contextual conversion from partial to fullLarisse Voufo2013-06-151-1/+1
| | | | llvm-svn: 184049
* Updated the support for contextual conversion tweaks (n3323) with a ↵Larisse Voufo2013-06-154-66/+101
| | | | | | previously overlooked part: implicitly converting array sizes to size_t, rather than contextually converting them to some unique type. llvm-svn: 184048
* A quick fix to allow return type deduction on member templatesFaisal Vali2013-06-152-3/+52
| | | | | | | | | | by ensuring DiagnoseUseOfDecl is called both on the found decl and the decl being used (i.e the specialization in the case of member templates) whenever they are different. Per the exchange captured in http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130610/081636.html a more comprehensive fix that allows both decls to be passed into DiagnoseUseOfDecl is (or should be) forthcoming relatively soon. llvm-svn: 184043
* Emit native implementations of atomic operations on FreeBSD/armv6.Ed Schouten2013-06-153-3/+4
| | | | | | | | | | | | Just like on Linux, FreeBSD/armv6 assumes the system supports ldrex/strex unconditionally. It is also used by the kernel. We can therefore enable support for it, like we do on Linux. While there, change one of the unit tests to explicitly test against armv5 instead of armv7, as it actually tests whether libcalls are emitted. llvm-svn: 184040
* PR16263: Implement current direction of core issue 1376. Binding a reference toRichard Smith2013-06-154-7/+74
| | | | | | | | | | | the result of a cast-to-reference-type lifetime-extends the object to which the reference inside the cast binds. This requires us to look for subobject adjustments on both the inside and the outside of the MaterializeTemporaryExpr when looking for a temporary to lifetime-extend (which we also need for core issue 616, and possibly 1213). llvm-svn: 184024
OpenPOWER on IntegriCloud