summaryrefslogtreecommitdiff
path: root/docs/LanguageExtensions.rst
Commit message (Collapse)AuthorAge
* Document unroll and unroll_count directives.Eli Bendersky2014-06-19
| | | | | | | | | | | Extend the documentation for "#pragma clang loop" hints to include the unroll and unroll_count directives. Patch by Mark Heffernan [http://reviews.llvm.org/D4198] git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211286 91177308-0d34-0410-b5e6-96231b3b80d8
* Documentation for #pragma clang loop directive and options vectorize and ↵Tyler Nowicki2014-06-18
| | | | | | | | | interleave. Reviewed by: Aaron Ballman and Dmitri Gribenko git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211135 91177308-0d34-0410-b5e6-96231b3b80d8
* Add __builtin_operator_new and __builtin_operator_delete, which act like callsRichard Smith2014-06-03
| | | | | | | | to the normal non-placement ::operator new and ::operator delete, but allow optimizations like new-expressions and delete-expressions do. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210137 91177308-0d34-0410-b5e6-96231b3b80d8
* [DOC] Documentation for #pragma clang optimize on/offDario Domizioli2014-05-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209738 91177308-0d34-0410-b5e6-96231b3b80d8
* AArch64/ARM64: rename ARM64 components to AArch64Tim Northover2014-05-24
| | | | | | This keeps Clang consistent with backend naming conventions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209579 91177308-0d34-0410-b5e6-96231b3b80d8
* PR19698, PR19674: enable __has_feature checks for cxx_generic_lambdas andRichard Smith2014-05-09
| | | | | | | | cxx_decltype_auto, and fix documentation of cxx_generic_lambdas and cxx_init_captures to specify the right feature-check name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208445 91177308-0d34-0410-b5e6-96231b3b80d8
* Add description about the __is_identifier() macroYunzhong Gao2014-04-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206099 91177308-0d34-0410-b5e6-96231b3b80d8
* ARM64: initial clang support commit.Tim Northover2014-03-29
| | | | | | | | | | | This adds Clang support for the ARM64 backend. There are definitely still some rough edges, so please bring up any issues you see with this patch. As with the LLVM commit though, we think it'll be more useful for merging with AArch64 from within the tree. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205100 91177308-0d34-0410-b5e6-96231b3b80d8
* Moving the documentation for the format attribute into AttrDocs.Aaron Ballman2014-02-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201857 91177308-0d34-0410-b5e6-96231b3b80d8
* Moving the documentation for the type safety checking attributes into ↵Aaron Ballman2014-02-21
| | | | | | AttrDocs. If a custom heading is provided, do not automatically generate the alternate spelling list. This is necessary because some attributes have distinct semantic spellings and meanings, but use the same semantic attribute internally. Such attributes should have multiple elements in their documentation list, but not show all spellings. At some point, it would be nice to have a way to attach the documentation element to a specific spelling for these cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201851 91177308-0d34-0410-b5e6-96231b3b80d8
* Moving the documentation for the sanitizer negation attributes into AttrDocs.Aaron Ballman2014-02-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201850 91177308-0d34-0410-b5e6-96231b3b80d8
* Doing some temporary touch-up on the gnu namespace attribute documentation, ↵Aaron Ballman2014-02-19
| | | | | | | | from a post-commit review comment. Ideally, this content will eventually find a home with the rest of the attribute documentation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201736 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactored the way attribute category headers are handled so that it is ↵Aaron Ballman2014-02-19
| | | | | | possible to use custom categories. This allows for moving the consumable attributes (consumable, callable_when, return_typestate, etc) to be grouped together, with a content heading, like they were in the language extensions documentation. Moved the consumable attribute documentation from the language extensions into the attribute documentation table. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201732 91177308-0d34-0410-b5e6-96231b3b80d8
* Moving the documentation for the ARM interrupt attribute into AttrDocs.Aaron Ballman2014-02-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201716 91177308-0d34-0410-b5e6-96231b3b80d8
* Moving the documentation for the clang::fallthrough attribute into AttrDocs.Aaron Ballman2014-02-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201715 91177308-0d34-0410-b5e6-96231b3b80d8
* Moving the documentation for the availability attribute into AttrDocs.Aaron Ballman2014-02-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201712 91177308-0d34-0410-b5e6-96231b3b80d8
* Moving the documentation for the objc_requires_super attribute into AttrDocs.Aaron Ballman2014-02-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201687 91177308-0d34-0410-b5e6-96231b3b80d8
* Moving the documentation for the objc_method_family attribute into AttrDocs.Aaron Ballman2014-02-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201686 91177308-0d34-0410-b5e6-96231b3b80d8
* Moving the documentation for the overloadable attribute into AttrDocs.Aaron Ballman2014-02-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201678 91177308-0d34-0410-b5e6-96231b3b80d8
* Moving the documentation for the enable_if attribute into AttrDocs. Removed ↵Aaron Ballman2014-02-19
| | | | | | the "clang introduces" phrase for style consistency, but otherwise the documentation is identical. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201677 91177308-0d34-0410-b5e6-96231b3b80d8
* Updated documentation for Thread Safety Analysis.DeLesley Hutchins2014-02-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201598 91177308-0d34-0410-b5e6-96231b3b80d8
* Clarify. Thanks to Sean Silva and Warren Hunt for help wordsmithing!Nick Lewycky2014-01-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200292 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix always-false conditional thinko in documentation.Nick Lewycky2014-01-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200289 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove outdated documentation suggesting we don't support the C++1y lambda ↵Richard Smith2014-01-24
| | | | | | extensions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199964 91177308-0d34-0410-b5e6-96231b3b80d8
* MSVC 2013 type trait supportAlp Toker2014-01-20
| | | | | | | | | | | | | | | | | | | | | Implement type trait primitives used in the latest edition of the Microsoft standard C++ library type_traits header. With this change we can parse much of the Visual Studio 2013 standard headers, particularly anything that includes <type_traits>. Fully implemented, available in all language modes: * __is_constructible() * __is_nothrow_constructible() * __is_nothrow_assignable() Partially implemented, semantic analysis WIP, available as MS extensions: * __is_destructible() * __is_nothrow_destructible() git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199619 91177308-0d34-0410-b5e6-96231b3b80d8
* docs: clarify the role of compiler-builtin type trait primitivesAlp Toker2014-01-18
| | | | | | | | | | | | Update the documentation to clarify the intent of clang's built-in type trait facilities, their relation to user-facing C++ type traits and means to check for availability. Also explain that __has_feature() is not currently up to date and should not generally be used in user code (there's a proposal to provide more consistent checks via __has_builtin(), see cfe-dev). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199562 91177308-0d34-0410-b5e6-96231b3b80d8
* Try to fix this link.Nick Lewycky2014-01-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199538 91177308-0d34-0410-b5e6-96231b3b80d8
* This code block wasn't showing up in the html. Try this?Nick Lewycky2014-01-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199306 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the attribute enable_if example in the docs to be 100% real-world, ↵Nick Lewycky2014-01-15
| | | | | | instead of merely being close to the real world to mislead people. This now matches the test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199298 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix cxx_variable_templates feature check and documentationAlp Toker2014-01-15
| | | | | | | | | | This C++ feature has been marked complete since r191549, but the documentation claimed it wasn't supported at all and the extension check misreported it as being available in C. No regression test; this was a short-lived typo. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199292 91177308-0d34-0410-b5e6-96231b3b80d8
* Whoops! Fix major think-o in the first example in the documentation that I ↵Nick Lewycky2014-01-11
| | | | | | edited at 3am. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198997 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new attribute 'enable_if' which can be used to control overload ↵Nick Lewycky2014-01-11
| | | | | | resolution based on the values of the function arguments at the call site. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198996 91177308-0d34-0410-b5e6-96231b3b80d8
* Updating documentation for the __has_attribute changes landed in r198897.Aaron Ballman2014-01-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198899 91177308-0d34-0410-b5e6-96231b3b80d8
* Documentation typo correctionsAlp Toker2013-12-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196215 91177308-0d34-0410-b5e6-96231b3b80d8
* Undoing accidental change to docs/LanguageExtensions.rst in my previous Warren Hunt2013-10-24
| | | | | | | | patch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193293 91177308-0d34-0410-b5e6-96231b3b80d8
* Implements 64 bit microsoft record layout and adds lit tests to cover Warren Hunt2013-10-23
| | | | | | | | | | | it. Also removes all of the microsoft C++ ABI related code from the itanium layout builder. Differential Revision: http://llvm-reviews.chandlerc.com/D2003 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193290 91177308-0d34-0410-b5e6-96231b3b80d8
* More wordsmithing on objc_requires_super documentation.Ted Kremenek2013-10-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193288 91177308-0d34-0410-b5e6-96231b3b80d8
* Wordsmith text of objc_requires_super.Ted Kremenek2013-10-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193283 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo.Ted Kremenek2013-10-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193281 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide documentation on attribute((objc_requires_super)).Ted Kremenek2013-10-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193278 91177308-0d34-0410-b5e6-96231b3b80d8
* Change title of section to reflect the concept, and not the mechanism.Ted Kremenek2013-10-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193277 91177308-0d34-0410-b5e6-96231b3b80d8
* Updated and added to the Consumed documentation.Chris Wailes2013-10-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193120 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: update docsDmitry Vyukov2013-10-17
| | | | | | | | update docs for no_sanitize_thread attribute and blacklist git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192872 91177308-0d34-0410-b5e6-96231b3b80d8
* Document the presence of the new Objective-C++ mangling for qualified-id.Ted Kremenek2013-10-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192670 91177308-0d34-0410-b5e6-96231b3b80d8
* Typo in ARM __attribute__((interrupt)) documentationTim Northover2013-10-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191771 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement ARM GNU-style interrupt attributeTim Northover2013-10-01
| | | | | | | | | | This attribute allows users to use a modified C or C++ function as an ARM exception-handling function and, with care, to successfully return control to user-space after the issue has been dealt with. rdar://problem/14207019 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191769 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the intrinsic __builtin_convertvectorHal Finkel2013-09-18
| | | | | | | | | | | | | | | | | | LLVM supports applying conversion instructions to vectors of the same number of elements (fptrunc, fptosi, etc.) but there had been no way for a Clang user to cause such instructions to be generated when using builtin vector types. C-style casting on vectors is already defined in terms of bitcasts, and so cannot be used for these conversions as well (without leading to a very confusing set of semantics). As a result, this adds a __builtin_convertvector intrinsic (patterned after the OpenCL __builtin_astype intrinsic). This is intended to aid the creation of vector intrinsic headers that create generic IR instead of target-dependent intrinsics (in other words, this is a generic _mm_cvtepi32_ps). As noted in the documentation, the action of __builtin_convertvector is defined in terms of the action of a C-style cast on each vector element. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190915 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a define for the ObjFW runtime ABI version.Benjamin Kramer2013-09-16
| | | | | | | | | This removes __has_feature(objc_msg_lookup_stret), as it is not required anymore after this patch. Patch by Jonathan Schleifer! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190791 91177308-0d34-0410-b5e6-96231b3b80d8
* Make __has_extension(c_thread_local) work.Ed Schouten2013-09-14
| | | | | | | | | | | | | Unlike C++11's "thread_local" keyword, C11's "_Thread_local" is in the reserved namespace, meaning we provide it unconditionally; it is marked as KEYALL in TokenKinds.def. This means that like all the other C11 keywords, we can expose its presence through __has_extension(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190755 91177308-0d34-0410-b5e6-96231b3b80d8
* [docs] Fix some finicky Sphinx warnings.Sean Silva2013-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190336 91177308-0d34-0410-b5e6-96231b3b80d8