summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Add OpenCL images as clang builtin types.Guy Benyei2012-12-1833-27793/+28202
| | | | llvm-svn: 170428
* Remove obsolete FIXMEs.David Chisnall2012-12-181-2/+0
| | | | llvm-svn: 170425
* test/Misc/dev-fd-fs.c: Mark this as XFAIL:freebsd (since r169831).NAKAMURA Takumi2012-12-181-0/+2
| | | | | | I don't want to suppress this to be excluded with the feature "dev-fd-fs". This should work also on freebsd. llvm-svn: 170411
* Inline hasAtomicCopyHelperAPI.Rafael Espindola2012-12-181-6/+2
| | | | llvm-svn: 170408
* Merge storage classes even when contexts don't match.Rafael Espindola2012-12-183-4/+15
| | | | | | | | This fixes the storage class of extern decls that are merged with file level statics. The patch also fixes the linkage computation so that they are considered internal. llvm-svn: 170406
* Now that the uninitialized variable has been fixed in llvm, add this test back,Rafael Espindola2012-12-181-0/+20
| | | | | | but remove unneeded options and fix the comment. llvm-svn: 170405
* Fix typo (thanks to Jordan for spotting it!).Richard Smith2012-12-181-1/+1
| | | | llvm-svn: 170403
* The underlying type for an enum should be an integer type, not another enum.Eli Friedman2012-12-182-2/+8
| | | | | | | | (This change only affects ObjC.) <rdar://problem/12857117>. llvm-svn: 170402
* docs: Nuke AnalyzerRegions.rst.Sean Silva2012-12-181-259/+0
| | | | | | | | | As per Ted's advice. It can be brought back from version control if needed. This also fixes a Sphinx warning. llvm-svn: 170401
* When warning about a missing prototype because a function declaration is ↵Anders Carlsson2012-12-183-3/+28
| | | | | | missing 'void', insert a fixit to add the void. llvm-svn: 170399
* More conservative fix for <rdar://problem/12847524> (a crash printing ↵Eli Friedman2012-12-182-0/+27
| | | | | | | | diagnostic ranges). I'm not really happy with this fix, but I'm confident it's correct. llvm-svn: 170397
* Use the correct return type (size_t) for these builtins.Bill Wendling2012-12-181-2/+2
| | | | | | <rdar://problem/12646344> llvm-svn: 170393
* Add an expected parameter for the size of the destination.Bill Wendling2012-12-181-1/+1
| | | | | | <rdar://problem/12622659> llvm-svn: 170392
* Add support for passing the main file name down to the assemblerEric Christopher2012-12-185-14/+39
| | | | | | | | for location information. Part of PR14624 llvm-svn: 170391
* Rein ubsan's vptr sanitizer back a bit. Per core issue 453, binding a referenceRichard Smith2012-12-182-8/+19
| | | | | | to an object outside its lifetime does not have undefined behavior. llvm-svn: 170387
* Fix isThisDeclarationADefinition for extern following tentative.Rafael Espindola2012-12-172-1/+3
| | | | | | | | An extern declaration following a tentative definition should not itself be considered a tentative definition. Fixes pr14614. llvm-svn: 170377
* Fix PR14625 by teaching the driver to detect PWD for assembly files.Chandler Carruth2012-12-174-10/+39
| | | | | | | | | | | | | | This also requires adding support to -cc1as for passing the detecting PWD down through LLVM's debug info (which in turn required the LLVM change in r170371). The test case is weak (we only test the driver behavior) because there is currently to infrastructure for running cc1as in the test suite. So those four lines are untested (much like all other lines in that file), but we have a test for the same pattern using llvm-mc in the LLVM repository. llvm-svn: 170373
* [c-index-test] Fix warnings about unused results from chdir().Argyrios Kyrtzidis2012-12-171-3/+11
| | | | | | Patch from Edwin Vane! llvm-svn: 170366
* Just use begin()/end() instead of "&Vector[0], &Vector[0]+Vector.size()".Argyrios Kyrtzidis2012-12-171-1/+1
| | | | | | No functionality change. llvm-svn: 170365
* Don't include the header outside the include guards, it defeats the purpose ↵Argyrios Kyrtzidis2012-12-171-2/+2
| | | | | | of the include guards. llvm-svn: 170364
* [parser] Push a semi token for recovery only when it is actually missing.Argyrios Kyrtzidis2012-12-171-7/+9
| | | | llvm-svn: 170363
* [analyzer] Tweak the NumFunctionsAnalyzed stat so that it's more useful.Anna Zaks2012-12-172-6/+7
| | | | llvm-svn: 170362
* [analyzer] Implement "do not inline large functions many times"Anna Zaks2012-12-176-7/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | performance heuristic After inlining a function with more than 13 basic blocks 32 times, we are not going to inline it anymore. The idea is that inlining large functions leads to drastic performance implications. Since the function has already been inlined, we know that we've analyzed it in many contexts. The following metrics are used: - Large function is a function with more than 13 basic blocks (we should switch to another metric, like cyclomatic complexity) - We consider that we've inlined a function many times if it's been inlined 32 times. This number is configurable with -analyzer-config max-times-inline-large=xx This heuristic addresses a performance regression introduced with inlining on one benchmark. The analyzer on this benchmark became 60 times slower with inlining turned on. The heuristic allows us to analyze it in 24% of the time. The performance improvements on the other benchmarks I've tested with are much lower - under 10%, which is expected. llvm-svn: 170361
* Reapply r170344, this time without forgetting to commit the header changes.David Chisnall2012-12-177-14/+112
| | | | llvm-svn: 170354
* Revert "Added support for new property helpers (GNUstep runtime)."Benjamin Kramer2012-12-176-97/+13
| | | | | | This reverts commit r170344. Doesn't even compile. llvm-svn: 170351
* Added support for new property helpers (GNUstep runtime).David Chisnall2012-12-176-13/+97
| | | | llvm-svn: 170344
* Add basic support for splitting before function calls if it can't beDaniel Jasper2012-12-172-16/+60
| | | | | | | | | | | | avoided. This required a minor modification of the memoization as now the "CurrentPenalty" depends on whether or not we break before the current token. Therefore, the CurrentPenalty should not be memoized but added after retrieving a value from memory. This should not affect the runtime behavior. llvm-svn: 170337
* tsan: correct llvm libc++ nameDmitry Vyukov2012-12-171-1/+1
| | | | llvm-svn: 170326
* Fix several formatting problems.Daniel Jasper2012-12-174-17/+43
| | | | | | | | | More specifically: - Improve formatting of static initializers. - Fix formatting of lines comments in enums. - Fix formmating of trailing line comments. llvm-svn: 170316
* tsan: add __has_feature(thread_sanitizer)Dmitry Vyukov2012-12-173-0/+26
| | | | llvm-svn: 170314
* tsan: update docsDmitry Vyukov2012-12-171-18/+20
| | | | llvm-svn: 170311
* Clean up a small (messy) section of Clang's release notes for 3.2.Chandler Carruth2012-12-171-12/+8
| | | | llvm-svn: 170309
* This patch fixes PR13624, which notes a 64-bit PowerPC ELF ABIBill Schmidt2012-12-172-0/+130
| | | | | | | | | | incompatibility with how complex values are returned. It is sufficient to flag all complex types as direct rather than indirect. A new test case is provided that checks correct IR generation for the various supported flavors of _Complex. llvm-svn: 170302
* IdentifierResolver: Remove an unnecessary include and an unused parameter.Nico Weber2012-12-173-6/+3
| | | | llvm-svn: 170297
* Documentation: add a missing wordDmitri Gribenko2012-12-161-1/+1
| | | | llvm-svn: 170296
* Clang ReleaseNotes: add information about documentation comments supportDmitri Gribenko2012-12-161-0/+33
| | | | llvm-svn: 170294
* Documentation: AutomaticReferenceCounting.rst: use CSS section numbering.Dmitri Gribenko2012-12-161-5/+52
| | | | | | This enables us to use the same document structure as in other files. llvm-svn: 170283
* Don't use SourceLineCache in getColumnNumber if LastLineNoResult is past the ↵Craig Topper2012-12-161-1/+2
| | | | | | end of the cache. Fixes PR14570. llvm-svn: 170281
* docs: Fix completely broken adornment structure.Sean Silva2012-12-161-68/+60
| | | | | | | | | | | | The adornment: === Foo === is for titles, not sections. llvm-svn: 170278
* Documentation: random cleanups. Use monospaced font where appropriate,Dmitri Gribenko2012-12-158-205/+202
| | | | | | highlight console output with "code-block:: console", etc. llvm-svn: 170276
* Documentation: convert InternalsManual.html to reSTDmitri Gribenko2012-12-155-2038/+1823
| | | | | | Patch by Anastasi Voitova with with small fixes by me. llvm-svn: 170275
* Documentation: LanguageExtensions.rst: convert link to :doc: style and fix upDmitri Gribenko2012-12-151-3/+3
| | | | | | heading underline. llvm-svn: 170272
* [ubsan] Emit branch weight metadata to hint towards common case.Will Dietz2012-12-152-3/+13
| | | | | | | Results in better block placement that helps close the performance gap when making ubsan checks recoverable. llvm-svn: 170263
* Docs: redirect "static analysis extensions" section to the analyzer site.Jordan Rose2012-12-151-110/+88
| | | | | | | | | | | The notes on the objc_method_family and ns_returns_retained-type attributes have been moved to the Objective-C section, since both are used by ARC. The notes on analyzer_noreturn are now only on the analyzer site. The inadequacy of these docs was noticed months ago by Jonathan Sauer; I'm only just now getting around to cleaning them up. llvm-svn: 170261
* Remove old description of analyzer internals from public docs.Jordan Rose2012-12-152-1/+0
| | | | | | | | The file still exists in docs/analyzer/, but it won't be linked to from clang.llvm.org or processed as part of the default Sphinx doc-build. RegionStore has changed a lot from what Ted and Zhongxing describe here! llvm-svn: 170260
* fixed line endingsAnton Yartsev2012-12-141-22/+22
| | | | llvm-svn: 170238
* added post-statement callback to CXXNewExpr and pre-statement callback to ↵Anton Yartsev2012-12-141-15/+22
| | | | | | CXXDeleteExpr llvm-svn: 170234
* Don't hit an assertion failure when calculating the __PRETTY_FUNCTION__Argyrios Kyrtzidis2012-12-142-2/+2
| | | | | | | | | | | | | | of a member function with parenthesized declarator. Like this test case: class Foo { const char *(baz)() { return __PRETTY_FUNCTION__; } }; llvm-svn: 170233
* [analyzer] Propagate the checker's state from checkBranchConditionAnna Zaks2012-12-141-3/+3
| | | | | | | Fixes a bug, where we were dropping the state modifications from the checkBranchCondition checker callback. llvm-svn: 170232
* [analyzer] Refactor: Store visited Decls instead of CallGraphNodes.Anna Zaks2012-12-141-24/+22
| | | | llvm-svn: 170231
OpenPOWER on IntegriCloud