John McCall
9da31cb1c5
Update the ARC specification for several changes made in the
...
last N months. This required a brief soliloquy about change in
an uncertainly-versioned world.
I believe I've gotten the right target versions on all these changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153501 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-27 07:42:12 +00:00
Richard Smith
1f4c54d9b0
Forward-declared enumerations are now complete, except for an interaction
...
between unscoped enumerations and class template member specializations,
whose behavior is currently under discussion in CWG (and for which there
is a preference to not implement the currently-standardized wording).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153464 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-26 20:31:41 +00:00
Richard Smith
ec5a306dd4
Revert accidentally-committed www changes (and an unused diagnostic);
...
forward-declared enums aren't /quite/ done yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153350 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-23 23:11:49 +00:00
Richard Smith
3343fad1f1
When defining a forward-declared enum, don't try to attach the definition to
...
a previous declaration if the redeclaration is invalid. That way lies madness.
Fixes a crash-on-invalid reported by Abramo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153349 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-23 23:09:08 +00:00
Patrick Beard
1526f54368
Removed repeated word (of of).
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153195 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-21 16:22:53 +00:00
Patrick Beard
a62c3805ce
numberWithFloat -> numberWithDouble.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153146 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-20 22:24:08 +00:00
Patrick Beard
2498885902
Fixed typo.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153142 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-20 21:52:11 +00:00
Patrick Beard
62f1234457
Added summary section for Object Literals and Subscripting, which contains the external link.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153141 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-20 21:51:03 +00:00
Patrick Beard
ca7f5bdf8b
Fixed typos.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153126 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-20 21:09:25 +00:00
Patrick Beard
7f919c8c84
Link to Objective-C literals documentation.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153124 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-20 20:51:09 +00:00
Patrick Beard
af39ba12af
Objective-C literals documentation.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153123 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-20 20:50:45 +00:00
Patrick Beard
c407f25212
Test commit.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153096 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-20 17:25:17 +00:00
Benjamin Kramer
b4556860fb
LanguageExtensions: Manually word wrap a line to reduce horizontal scrolling.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153048 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-19 19:12:30 +00:00
Kostya Serebryany
684944e53c
fix link
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152806 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-15 16:22:06 +00:00
Kostya Serebryany
abc31cac3d
[asan] update asan docs: mention CMake problem and to explain the status of MacOS 10.7 and 32-bit Linux
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152805 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-15 16:20:29 +00:00
Douglas Gregor
594f841934
Document the weak-linking behavior of the availability attribute
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152543 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-11 17:21:03 +00:00
Douglas Gregor
93a7067302
Document the availability attribute
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152531 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-11 04:53:21 +00:00
Douglas Gregor
bccda480f4
Clarify even further that the lambda-to-block-pointer conversion is only available in Objective-C++
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152511 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-10 22:20:11 +00:00
Douglas Gregor
8a4e1829d6
Document the conversion from a lambda closure type to a block pointer
...
in Objective-C++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152446 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-09 23:24:48 +00:00
Richard Smith
69e7692ded
Add user-defined literals to release notes.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152424 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-09 19:09:47 +00:00
Richard Smith
9c1dda7d7b
User-defined literals are done.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152396 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-09 08:41:27 +00:00
Richard Smith
80134582b6
Correct the documentation to give a legal example of a raw string literal.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152216 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-07 08:57:31 +00:00
Richard Smith
ec92bc7897
Add a pile of tests for unrestricted unions, and advertise support for them.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151992 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-03 23:51:05 +00:00
Jean-Daniel Dupas
3fd808742e
Fix Typo in 'objc changes' anchor.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151978 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-03 13:37:22 +00:00
Kostya Serebryany
48a8cd9840
add documentation for -f[no-]thread-sanitizer and -f[no-]address-sanitizer to docs/UsersManual.html
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151858 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-01 23:14:19 +00:00
Jean-Daniel Dupas
8a5e7fdd2c
Implement double underscore names support in __has_attribute
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151809 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-01 14:53:16 +00:00
Richard Smith
1d9f4c16ad
Correct an example of a feature name to actually use a feature name rather
...
than an attribute name. Patch by Michel Morin!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151791 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-01 02:12:07 +00:00
Richard Smith
88189556c5
Update release notes and language extensions pages to note that support for
...
generalized initializers is available.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151477 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-26 07:09:21 +00:00
Richard Smith
5297d71e8c
Accept __has_feature(__feature__) as a synonym for __has_feature(feature) (and
...
likewise for __has_extension). Patch by Jonathan Sauer!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151445 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-25 10:41:10 +00:00
Douglas Gregor
4ca8ac2e61
Implement a new type trait __is_trivially_constructible(T, Args...)
...
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151352 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-24 07:38:34 +00:00
Douglas Gregor
f28ded5e13
Fix indentation
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151264 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-23 17:54:00 +00:00
Douglas Gregor
09315f326d
Note that lambda expressions are available in the release notes for 3.1
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151263 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-23 17:51:51 +00:00
Douglas Gregor
46e021e897
Clang supports lambdas.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151239 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-23 05:44:09 +00:00
Chad Rosier
cd376a1a75
Improve placement of clang crash diagnostics section.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151192 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-22 20:26:10 +00:00
Chad Rosier
b211a4b32a
Add clang crash diagnostic info and associated flags to Clang user manual.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151184 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-22 19:14:46 +00:00
Dmitri Gribenko
65005eb83b
Add -Wstrncat-size and -Wempty-body to release notes.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150879 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-18 14:13:26 +00:00
Nico Weber
0460651695
Add a few minor items to the 3.1 release notes.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150656 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-16 02:35:03 +00:00
Richard Smith
45fb995781
Start off release notes for clang 3.1 with reference to C11 anonymous structs
...
and unions, and C++11 generalized constant expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150640 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-16 00:32:27 +00:00
David Blaikie
ceb15656fb
Remove the unuseful -fdiagnostics-show-name
...
This option was added in r129614 and doesn't have any use case that I'm aware
of. It's possible that external tools are using these names - and if that's
the case we can certainly reassess the functionality, but for now it lets us
shave out a few unneeded bits from clang.
Move the "StaticDiagNameIndex" table into the only remaining consumer, diagtool.
This removes the actual diagnostic name strings from clang entirely.
Reviewed by Chris Lattner & Ted Kremenek.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150612 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-15 19:45:34 +00:00
Richard Smith
b5216aaf80
Advertize support for constexpr.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150524 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-14 22:56:17 +00:00
Michael J. Spencer
8275fc0ba7
Fix broken link. I believe this has been broken for at least 7 months.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150329 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-12 09:11:39 +00:00
Benjamin Kramer
b919815a0c
Fix a typo (builting -> builtin).
...
Patch by Afriza N. Arief!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149822 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-05 11:24:56 +00:00
Kostya Serebryany
71efba0bba
The following patch adds __attribute__((no_address_safety_analysis)) which 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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148842 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-24 19:25:38 +00:00
Kostya Serebryany
f5249f509e
[asan] document the need for -fno-optimize-sibling-calls
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148716 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-23 18:50:23 +00:00
Benjamin Kramer
3419d7cd2e
Tweak markup.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148221 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-15 16:42:14 +00:00
Anton Yartsev
da90c77753
added descriptions of vector extensions, info about vector literals and vector operations.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148220 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-15 16:22:24 +00:00
Benjamin Kramer
665a8dc953
Fix ALL the markup.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148219 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-15 15:26:07 +00:00
Kostya Serebryany
e683fd9d6f
[asan] mention -fno-omit-frame-pointer in the docs
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147663 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-06 17:35:27 +00:00
Benjamin Kramer
ffbe9b9c64
Mass rename C1x references to C11. The name hasn't proliferated like "C++0x" 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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147221 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-23 17:00:35 +00:00
Douglas Gregor
2d1e21abdc
Fix typo 'typdefs', from Nikola Smiljanic
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146894 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-19 19:50:23 +00:00