summaryrefslogtreecommitdiffstats
path: root/clang/docs/LanguageExtensions.html
Commit message (Collapse)AuthorAgeFilesLines
* docs: Convert some docs to reST.Sean Silva2012-12-121-2082/+0
| | | | | | | | | | | | | | | Converts: LanguageExtensions LibASTMatchers LibTooling PCHInternals ThreadSanitizer Tooling Patch by Mykhailo Pustovit! (with minor edits by Dmitri Gribenko and Sean Silva) llvm-svn: 170048
* Add the Microsoft __is_interface_class type trait.John McCall2012-09-251-0/+1
| | | | | | Patch by Andy Gibbs! llvm-svn: 164591
* Added an example of an empty case label to avoid confusion.Alexander Kornienko2012-09-171-1/+2
| | | | llvm-svn: 164055
* Documentation: correct a typo introduced in r162971.Dmitri Gribenko2012-08-311-1/+1
| | | | llvm-svn: 162975
* Documentation: add missing word "accepts".Dmitri Gribenko2012-08-311-2/+2
| | | | llvm-svn: 162971
* Add support for "type safety" attributes that allow checking that 'void *'Dmitri Gribenko2012-08-171-0/+162
| | | | | | | | | | | | | | function arguments and arguments for variadic functions are of a particular type which is determined by some other argument to the same function call. Usecases include: * MPI library implementations, where these attributes enable checking that buffer type matches the passed MPI_Datatype; * for HDF5 library there is a similar usecase as MPI; * checking types of variadic functions' arguments for functions like fcntl() and ioctl(). llvm-svn: 162067
* Add __builtin_readcyclecounter() to produce the @llvm.readcyclecounter() ↵Hal Finkel2012-08-051-0/+37
| | | | | | intrinsic. llvm-svn: 161310
* document _has_feature(objc_default_synthesize_properties).Fariborz Jahanian2012-06-181-0/+10
| | | | | | // rdar://11676972 llvm-svn: 158665
* Close HTML tag properly.Dmitri Gribenko2012-05-271-1/+1
| | | | llvm-svn: 157533
* Fix typo and avoid layout issue with almost-but-not-quite-fixed-width fonts.Richard Smith2012-05-031-2/+1
| | | | llvm-svn: 156095
* Minor copy-edits to clang::fallthrough attribute documentation.Richard Smith2012-05-031-9/+9
| | | | llvm-svn: 156094
* Add -Wimplicit-fallthrough warning flag, which warns on fallthrough betweenRichard Smith2012-05-031-0/+54
| | | | | | | | | | | | cases in switch statements. Also add a [[clang::fallthrough]] attribute, which can be used to suppress the warning in the case of intentional fallthrough. Patch by Alexander Kornienko! The handling of C++11 attribute namespaces in this patch is temporary, and will be replaced with a cleaner mechanism in a subsequent patch. llvm-svn: 156086
* Formatting fix.Richard Smith2012-04-191-2/+2
| | | | llvm-svn: 155141
* Implements boxed expressions for Objective-C. <rdar://problem/10194391>Patrick Beard2012-04-191-3/+11
| | | | llvm-svn: 155082
* Provide, and document, a set of __c11_atomic_* intrinsics to implement C11'sRichard Smith2012-04-111-33/+67
| | | | | | | | | <stdatomic.h> header. In passing, fix LanguageExtensions to note that C11 and C++11 are no longer "upcoming standards" but are now actually standardized. llvm-svn: 154513
* Add a query macro for C++11 N3276, decltype does not require completeDouglas Gregor2012-04-101-1/+5
| | | | | | return types, from Michel Morin! llvm-svn: 154428
* [Lex] Add support for 'user specified system frameworks' (see test case).Daniel Dunbar2012-04-051-0/+29
| | | | | | - Developers of system frameworks need a way for their framework to be treated as a "system framework" during development. Otherwise, they are unable to properly test how their framework behaves when installed because of the semantic changes (in warning behavior) applied to system frameworks. llvm-svn: 154105
* Add feature check "cxx_local_type_template_args" describing supportDouglas Gregor2012-04-041-0/+7
| | | | | | | for templates with local template arguments, from Michel Morin! Fixes PR12337. llvm-svn: 153983
* Removed repeated word (of of).Patrick Beard2012-03-211-1/+1
| | | | llvm-svn: 153195
* Fixed typo.Patrick Beard2012-03-201-1/+1
| | | | llvm-svn: 153142
* Added summary section for Object Literals and Subscripting, which contains ↵Patrick Beard2012-03-201-1/+7
| | | | | | the external link. llvm-svn: 153141
* Link to Objective-C literals documentation.Patrick Beard2012-03-201-0/+1
| | | | llvm-svn: 153124
* LanguageExtensions: Manually word wrap a line to reduce horizontal scrolling.Benjamin Kramer2012-03-191-1/+2
| | | | llvm-svn: 153048
* Document the weak-linking behavior of the availability attributeDouglas Gregor2012-03-111-0/+6
| | | | llvm-svn: 152543
* Document the availability attributeDouglas Gregor2012-03-111-0/+44
| | | | llvm-svn: 152531
* Clarify even further that the lambda-to-block-pointer conversion is only ↵Douglas Gregor2012-03-101-0/+4
| | | | | | available in Objective-C++ llvm-svn: 152511
* Document the conversion from a lambda closure type to a block pointerDouglas Gregor2012-03-091-0/+57
| | | | | | in Objective-C++. llvm-svn: 152446
* User-defined literals are done.Richard Smith2012-03-091-1/+1
| | | | llvm-svn: 152396
* Correct the documentation to give a legal example of a raw string literal.Richard Smith2012-03-071-1/+2
| | | | llvm-svn: 152216
* Add a pile of tests for unrestricted unions, and advertise support for them.Richard Smith2012-03-031-1/+1
| | | | llvm-svn: 151992
* Implement double underscore names support in __has_attributeJean-Daniel Dupas2012-03-011-0/+5
| | | | llvm-svn: 151809
* Correct an example of a feature name to actually use a feature name ratherRichard Smith2012-03-011-2/+2
| | | | | | than an attribute name. Patch by Michel Morin! llvm-svn: 151791
* Update release notes and language extensions pages to note that support forRichard Smith2012-02-261-2/+1
| | | | | | generalized initializers is available. llvm-svn: 151477
* Accept __has_feature(__feature__) as a synonym for __has_feature(feature) (andRichard Smith2012-02-251-0/+5
| | | | | | likewise for __has_extension). Patch by Jonathan Sauer! llvm-svn: 151445
* Implement a new type trait __is_trivially_constructible(T, Args...)Douglas Gregor2012-02-241-0/+2
| | | | | | | | | | | | | | | | that provides the behavior of the C++11 library trait std::is_trivially_constructible<T, Args...>, which can't be implemented purely as a library. Since __is_trivially_constructible can have zero or more arguments, I needed to add Yet Another Type Trait Expression Class, this one handling arbitrary arguments. The next step will be to migrate UnaryTypeTrait and BinaryTypeTrait over to this new, more general TypeTrait class. Fixes the Clang side of <rdar://problem/10895483> / PR12038. llvm-svn: 151352
* Clang supports lambdas.Douglas Gregor2012-02-231-1/+1
| | | | llvm-svn: 151239
* Advertize support for constexpr.Richard Smith2012-02-141-1/+1
| | | | llvm-svn: 150524
* The following patch adds __attribute__((no_address_safety_analysis)) which ↵Kostya Serebryany2012-01-241-0/+4
| | | | | | | | | | | | | | | will allow to disable address safety analysis (such as e.g. AddressSanitizer or SAFECode) for a specific function. When building with AddressSanitizer, add AddressSafety function attribute to every generated function except for those that have __attribute__((no_address_safety_analysis)). With this patch we will be able to 1. disable AddressSanitizer for a particular function 2. disable AddressSanitizer-hostile optimizations (such as some cases of load widening) when AddressSanitizer is on. llvm-svn: 148842
* Tweak markup.Benjamin Kramer2012-01-151-11/+13
| | | | llvm-svn: 148221
* added descriptions of vector extensions, info about vector literals and ↵Anton Yartsev2012-01-151-3/+157
| | | | | | vector operations. llvm-svn: 148220
* Fix ALL the markup.Benjamin Kramer2012-01-151-3/+5
| | | | llvm-svn: 148219
* Mass rename C1x references to C11. The name hasn't proliferated like "C++0x" ↵Benjamin Kramer2011-12-231-12/+12
| | | | | | | | so this patch is surprisingly small. Also drop -Wc1x-extensions in favor of -Wc11-extensions. I don't think we need to keep this around for compatibility. llvm-svn: 147221
* clarify that clang version number macros are marketing version #'s, not ↵Chris Lattner2011-12-151-7/+12
| | | | | | something useful. llvm-svn: 146672
* Implement support for the __is_final type trait, to determine whetherDouglas Gregor2011-12-031-0/+1
| | | | | | | a class is marked 'final', from Alberto Ganesh Barbati! Fixes PR11462. llvm-svn: 145775
* First version of AddressSanitizer docs; documentation for ↵Kostya Serebryany2011-11-281-0/+17
| | | | | | __has_feature(address_sanitizer) llvm-svn: 145276
* Fix grammaroDouglas Gregor2011-11-031-1/+1
| | | | llvm-svn: 143633
* Add __has_feature(cxx_defaulted_functions) for querying "defaultedDouglas Gregor2011-11-011-0/+7
| | | | | | functions", from Michel Morin! llvm-svn: 143411
* Update documentation to use "C++11" instead of "C++0x"David Blaikie2011-10-181-74/+75
| | | | llvm-svn: 142339
* Add c_alignas and cxx_alignas featuresPeter Collingbourne2011-10-141-0/+14
| | | | llvm-svn: 142020
* Implement built-in macro '__has_warning', which allows one to query if a ↵Ted Kremenek2011-10-121-0/+17
| | | | | | warning flag is valid. Fixes <rdar://problem/10263428>. llvm-svn: 141802
OpenPOWER on IntegriCloud