summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Fix PR13234 - crash when trying to report an unsupported ABI featureTimur Iskhodzhanov2012-06-291-1/+1
| | | | llvm-svn: 159405
* When a builtin that requires a constant is given a type- orDouglas Gregor2012-06-292-3/+34
| | | | | | | value-dependent expression, don't complain that it wasn't the constant we wanted. Fixes <rdar://problem/11688587> and PR11074. llvm-svn: 159404
* X86: add more GATHER intrinsics in ClangManman Ren2012-06-293-11/+131
| | | | | | | | | | | | | | | Corrected type for index of _mm256_mask_i32gather_pd from 256-bit to 128-bit Corrected types for src|dst|mask of _mm256_mask_i64gather_ps from 256-bit to 128-bit Support the following intrinsics: _mm_mask_i32gather_epi64, _mm256_mask_i32gather_epi64, _mm_mask_i64gather_epi64, _mm256_mask_i64gather_epi64, _mm_mask_i32gather_epi32, _mm256_mask_i32gather_epi32, _mm_mask_i64gather_epi32, _mm256_mask_i64gather_epi32 llvm-svn: 159403
* Teach the __is_trivially_assignable and __is_trivially_constructibleDouglas Gregor2012-06-292-3/+113
| | | | | | | type traits that assignment to/construction of a lifetime-qualified object under ARC is *not* trivial. Fixes <rdar://problem/11738725>. llvm-svn: 159401
* Switch Clang's CMake lit.site.cfg generation over to use the commonChandler Carruth2012-06-291-14/+5
| | | | | | helpers rather than its own special-rolled code. llvm-svn: 159398
* [analyzer] Add a test that we are, in fact, doing a DFS on the ExplodedGraph.Jordan Rose2012-06-296-10/+164
| | | | | | | | | | | | | | | | | | | | Previously: ...the comment said DFS... ...the WorkList being instantiated said BFS... ...and the implementation was actually DFS... ...due to an unintentional change in 2010... ...and everything kept working anyway. This fixes our std::deque implementation of BFS, but switches back to a SmallVector-based implementation of DFS. We should probably still investigate the ramifications of DFS vs. BFS, especially for large functions (and especially when we hit our block path limit), since this might completely change our memory use. It can also mask some bugs and reveal others depending on when we halt analysis. But at least we will not have this kind of little mistake creep in again. llvm-svn: 159397
* Warn on self-assignment to member variables. PR13104.Nico Weber2012-06-285-3/+97
| | | | llvm-svn: 159394
* Thread safety analysis: support release() function on scopedDeLesley Hutchins2012-06-282-21/+91
| | | | | | lockable objects. llvm-svn: 159387
* When applying a template diff highlighting to a diagnostic message, rememberRichard Trieu2012-06-281-10/+19
| | | | | | to reapply the bold formatting when needed. llvm-svn: 159386
* Factor CXString out of Index.hArnaud A. de Grandmaison2012-06-283-54/+109
| | | | | | | No functionnal or interface change. This is done to prepare the landing of CompilationDatabase in libclang. llvm-svn: 159382
* Fix template type diffing coloring (r159216) when forcing color output to a ↵David Blaikie2012-06-282-2/+13
| | | | | | | | file (not a terminal) Reviewed (over the shoulder) by Richard Trieu. llvm-svn: 159381
* Support the use of "=delete" and "=default" with delayed templateDouglas Gregor2012-06-283-1/+14
| | | | | | parsing. Fixes <rdar://problem/11700604>. llvm-svn: 159380
* objective-c rewriter: refactoring of rewriting ofFariborz Jahanian2012-06-281-25/+45
| | | | | | objc_msgSend_stret() API. No functionality change. llvm-svn: 159379
* [libclang] Don't bind a StringRef to a temporary std::string object.Argyrios Kyrtzidis2012-06-281-2/+1
| | | | | | | | It may end up pointing at garbage. Fixes the MSVC debug build. rdar://11703319 llvm-svn: 159377
* Dead code eliminate the massive hexagon builtin intrinsic supporting code.Benjamin Kramer2012-06-282-2586/+0
| | | | | | | | The tablegen'd code does the same thing without this egregious duplication. In my limited testing everything seems to work, however there can be differences if the clang and llvm builtin definitions don't match. llvm-svn: 159371
* Only print a semicolon after "no known conversion for Nth argument" if thereMatt Beaumont-Gay2012-06-283-58/+58
| | | | | | is a following clause. llvm-svn: 159369
* Now that we use the GCC builtin <-> llvm intrinsic, dead code eliminate the ↵Benjamin Kramer2012-06-282-299/+1
| | | | | | | | handwritten emitter. The generated code uncovered an invalid prototype for __builtin_mips_shilo, fix it along the way. llvm-svn: 159368
* Support MIPS DSP Rev1 intrinsics. Simon Atanasyan2012-06-286-1/+671
| | | | | | This patch was reviewed in the llvm-commits list by Jim Grosbach. llvm-svn: 159366
* Compare the canonical types and document why we give up on the covariant case.Rafael Espindola2012-06-281-2/+8
| | | | llvm-svn: 159360
* Warn on weak properties declared in protocols as well.Jordan Rose2012-06-282-2/+16
| | | | | | Previously this caused a crash, since protocols are not interfaces. llvm-svn: 159357
* Remove redundant check.Dmitri Gribenko2012-06-282-1/+3
| | | | llvm-svn: 159355
* Attaching comments to declarations: don't attach comments to implicit ↵Dmitri Gribenko2012-06-281-0/+4
| | | | | | declarations. llvm-svn: 159354
* Disable devirtualization when we have covariant returns. I will open a bugRafael Espindola2012-06-282-0/+37
| | | | | | for tracking this. llvm-svn: 159351
* Don't devirtualize calls when we don't have the correct type of the this pointerRafael Espindola2012-06-282-20/+56
| | | | | | | | | handy. It can be done, but we would have to build a derived-to-base cast during codegen to compute the correct this pointer. I will handle covariant returns next. llvm-svn: 159350
* Add -ftls-model command-line flag.Hans Wennborg2012-06-289-29/+132
| | | | | | This allows for setting the default TLS model. (PR9788) llvm-svn: 159336
* Add warning flag -Winvalid-pp-token for preprocessing-tokens which haveRichard Smith2012-06-285-10/+12
| | | | | | | | undefined behaviour, and move the diagnostic for '' from an Error into an ExtWarn in this group. This is important for some users of the preprocessor, and is necessary for gcc compatibility. llvm-svn: 159335
* Fix another issue with devirtualizing calls to final methods by passing themRafael Espindola2012-06-284-25/+71
| | | | | | | | the correct this pointer. There is some potential for sharing a bit more code with canDevirtualizeMemberFunctionCalls, but that can be done in an independent patch. llvm-svn: 159326
* Cleanup \brief comment. Since it is a single paragraph, no need to save ↵Dmitri Gribenko2012-06-283-6/+35
| | | | | | newlines there. llvm-svn: 159325
* Fix grammar.Eric Christopher2012-06-281-1/+1
| | | | llvm-svn: 159321
* Update the #include to find the DebugInfo.h in the correct placeBill Wendling2012-06-281-1/+1
| | | | llvm-svn: 159315
* Teach \brief parser about commands that start a new paragraph implicitlyDmitri Gribenko2012-06-282-7/+25
| | | | llvm-svn: 159309
* Fix uninitialized variable use bug found by the clairvoyant static analyzer.Argyrios Kyrtzidis2012-06-271-0/+1
| | | | | | | Commit::canReplaceText would not initialize its out 'Len' parameter before returning true and it would be used uninitialized in Commit::replaceText. llvm-svn: 159306
* Attaching documentation comments to declarations: don't attach a comment to ↵Dmitri Gribenko2012-06-272-2/+7
| | | | | | a declaration if there is a preprocessor directive between them. llvm-svn: 159305
* Fix an infinite loop in comment lexer: we were not advancing in the input ↵Dmitri Gribenko2012-06-272-10/+37
| | | | | | character stream when we saw a '<' that is not a start of an HTML tag. llvm-svn: 159303
* Two more tests for PR13207 - wrong mangling of templates with back ↵Timur Iskhodzhanov2012-06-271-4/+14
| | | | | | references [-cxx-abi microsoft] llvm-svn: 159296
* Propagate lvalue alignment into bitfields. Per report on cfe-dev.Eli Friedman2012-06-277-32/+46
| | | | llvm-svn: 159295
* objective-c mrc: Issue warning for mrc, as is done for arc, whenFariborz Jahanian2012-06-272-2/+3
| | | | | | | property retains a block object as it could be on the stack. // rdar://11761511 llvm-svn: 159293
* Refactoring after r159290: don't hold onto and check a misleading QualType.Richard Smith2012-06-271-4/+3
| | | | llvm-svn: 159292
* Check for non-POD vararg argument type after default argument promotion, notRichard Smith2012-06-272-2/+8
| | | | | | before, so we don't incorrectly think arguments of function type are non-POD. llvm-svn: 159290
* patch to suggest 'static' function should be 'static inline' Fariborz Jahanian2012-06-274-3/+30
| | | | | | | when it appears to be unused and occurs in a header. // rdar://11202617 llvm-svn: 159282
* Implement John McCall's review of r159212 other than the this pointer notRafael Espindola2012-06-274-16/+12
| | | | | | being updated. Will fix that in a second. llvm-svn: 159280
* Fix a crash I introduced in r159212.Rafael Espindola2012-06-273-1/+15
| | | | llvm-svn: 159279
* Remove unsigned and a pointer from a comment token (so that each token can ↵Dmitri Gribenko2012-06-273-52/+67
| | | | | | have only one semantic string value attached to it), at a cost of adding an additional token. llvm-svn: 159270
* Comment lexer: counting backwards from token end is thought to be confusing. ↵Dmitri Gribenko2012-06-271-14/+20
| | | | | | We already have a pointer to the beginning of the token, so use it to extract the text instead. llvm-svn: 159269
* Add a test for unterminated /* comments.Dmitri Gribenko2012-06-271-0/+13
| | | | llvm-svn: 159267
* Fix for r159256 on Windows.Axel Naumann2012-06-271-0/+4
| | | | llvm-svn: 159262
* Remove a completely unused and remarkably inaccurate list of testChandler Carruth2012-06-271-28/+0
| | | | | | | | | directories from the cmake file. Dunno what the history is here, but we're not using it. More refactorings to come here. llvm-svn: 159261
* Update the Clang CMake build to reflect the name change in LLVM r159258.Chandler Carruth2012-06-271-1/+1
| | | | llvm-svn: 159260
* From Vassil Vassilev:Axel Naumann2012-06-272-0/+16
| | | | | | | add interface for removing a FileEntry from the cache. Forces a re-read the contents from disk, e.g. because a tool (like cling) wants to pick up a modified file. llvm-svn: 159256
* Initialize RawComment::BriefTextValid in other constructor, too.Dmitri Gribenko2012-06-271-1/+2
| | | | llvm-svn: 159253
OpenPOWER on IntegriCloud