Manuel Klimek
a98032e4cf
Documents linking requirements for libtooling.
...
llvm-svn: 158088
2012-06-06 17:51:31 +00:00
Nico Weber
4d2d33f3ba
Document how fixits on errors and warnings must behave.
...
Review and wording tweaks by Richard.
llvm-svn: 157953
2012-06-04 21:56:14 +00:00
Benjamin Kramer
474261af7b
Fix typos found by http://github.com/lyda/misspell-check
...
llvm-svn: 157886
2012-06-02 10:20:41 +00:00
Alexey Samsonov
731eb477c1
Clang docs update: list command-line flags that control the size of generated debug information. Reviewed by chandlerc@ and echristo@.
...
llvm-svn: 157681
2012-05-30 06:55:10 +00:00
Dmitri Gribenko
34983f25c6
Close HTML tag properly.
...
llvm-svn: 157533
2012-05-27 14:08:44 +00:00
Richard Smith
1bb8edb8ac
In response to some discussions on IRC, tweak the wording of the new
...
-Wsometimes-uninitialized diagnostics to make it clearer that the cause
of the issue may be a condition which must always evaluate to true or
false, rather than an uninitialized variable.
To emphasize this, add a new note with a fixit which removes the
impossible condition or replaces it with a constant.
Also, downgrade the diagnostic from -Wsometimes-uninitialized to
-Wconditional-uninitialized when it applies to a range-based for loop,
since the condition is not written explicitly in the code in that case.
llvm-svn: 157511
2012-05-26 06:20:46 +00:00
Richard Smith
cff136cda8
Release notes update for -Wsometimes-uninitialized.
...
llvm-svn: 157459
2012-05-25 02:35:34 +00:00
Manuel Klimek
24c4805b3b
Adds menu sidebar to the docs.
...
llvm-svn: 157399
2012-05-24 17:16:23 +00:00
Manuel Klimek
b76810fa94
Updates the tooling docs with the links to the tutorials and
...
adds the menu include.
llvm-svn: 157397
2012-05-24 17:09:10 +00:00
Manuel Klimek
3115e3d171
Adds a tutorial for how to write clang plugins.
...
llvm-svn: 157396
2012-05-24 17:07:18 +00:00
Bill Wendling
2495bca543
Remove 3.1 release notes to get ready for current development cycle.
...
llvm-svn: 157379
2012-05-24 06:42:56 +00:00
Kostya Serebryany
eddc05abfc
[tsan] grammar fixes
...
llvm-svn: 156984
2012-05-17 08:49:14 +00:00
Kostya Serebryany
e8d0a0bf5c
[tsan] fix typo
...
llvm-svn: 156912
2012-05-16 08:19:13 +00:00
Kostya Serebryany
f30e08d218
[tsan] first version of ThreadSanitizer docs
...
llvm-svn: 156910
2012-05-16 08:14:36 +00:00
Argyrios Kyrtzidis
da6d7679e8
Add documentation about boxing enum types and a codegen test to make
...
sure we pick up the underlying type, per suggestion by Fariborz.
No functionality change.
llvm-svn: 156851
2012-05-15 20:45:35 +00:00
David Chisnall
ab5edc3e89
Add a note about atomic builtins to c11 section of release notes.
...
llvm-svn: 156820
2012-05-15 13:18:03 +00:00
Jean-Daniel Dupas
a8bfc41ea7
Fix Xcode case (Upper X, lower c)
...
llvm-svn: 156742
2012-05-13 14:32:11 +00:00
Gregory Szorc
dcbc96705d
Add Python binding info to release notes
...
llvm-svn: 156721
2012-05-12 20:45:56 +00:00
Chris Lattner
40a97f48f7
remove something that is really old and out of date.
...
llvm-svn: 156206
2012-05-04 21:11:08 +00:00
Richard Smith
33c1cf9205
Fix typo and avoid layout issue with almost-but-not-quite-fixed-width fonts.
...
llvm-svn: 156095
2012-05-03 20:10:41 +00:00
Richard Smith
dcfde13648
Minor copy-edits to clang::fallthrough attribute documentation.
...
llvm-svn: 156094
2012-05-03 20:05:46 +00:00
Richard Smith
84837d5b5a
Add -Wimplicit-fallthrough warning flag, which warns on fallthrough between
...
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
2012-05-03 18:27:39 +00:00
Richard Smith
641a87b983
The release notes are no place for modesty.
...
llvm-svn: 155681
2012-04-27 00:40:44 +00:00
Manuel Klimek
18ac56bc0f
Adds a tutorial on how to write RAV based ASTFrontendActions.
...
llvm-svn: 155631
2012-04-26 08:49:54 +00:00
Manuel Klimek
34e0f6cba2
Reverted unintentional commit.
...
llvm-svn: 155629
2012-04-26 08:46:12 +00:00
Manuel Klimek
c01d3fbe0f
Adds a small tutorial on how to write RAV based ASTFrontendActions.
...
llvm-svn: 155627
2012-04-26 08:35:39 +00:00
Manuel Klimek
85e60b5dc9
Adds documentation for how to use the tooling library.
...
llvm-svn: 155550
2012-04-25 14:20:13 +00:00
Manuel Klimek
06b0a7369f
Adds a document describing the various tooling approaches and their pros and
...
cons.
llvm-svn: 155549
2012-04-25 13:57:00 +00:00
Kostya Serebryany
b90fe5c6ee
[asan] fix typo
...
llvm-svn: 155345
2012-04-23 10:15:18 +00:00
Kostya Serebryany
f43ce26688
[asan] update docs
...
llvm-svn: 155343
2012-04-23 09:05:50 +00:00
Patrick Beard
81a256a909
Added equivalent method calls in examples.
...
llvm-svn: 155155
2012-04-19 20:48:09 +00:00
Richard Smith
500ae098bb
Formatting fix.
...
llvm-svn: 155141
2012-04-19 17:46:52 +00:00
David Blaikie
c5caf7291c
Fix a broken link. Patch by Nikola Smiljanic.
...
llvm-svn: 155139
2012-04-19 17:21:46 +00:00
Patrick Beard
2a4cfae1b3
Clarified encoding of boxed C strings, balanced all <p> with </p>.
...
llvm-svn: 155126
2012-04-19 14:33:55 +00:00
Patrick Beard
5890bc548b
Changed title.
...
llvm-svn: 155088
2012-04-19 01:30:47 +00:00
Patrick Beard
cbcacc6aa3
Changed wording of availability.
...
llvm-svn: 155086
2012-04-19 01:02:16 +00:00
Patrick Beard
0caa39474b
Implements boxed expressions for Objective-C. <rdar://problem/10194391>
...
llvm-svn: 155082
2012-04-19 00:25:12 +00:00
Richard Smith
165039d49d
Mention atomics support in the release notes.
...
Thanks to Nico Weber for the suggestion.
llvm-svn: 154648
2012-04-13 01:24:35 +00:00
Richard Smith
b1e36c662b
Provide, and document, a set of __c11_atomic_* intrinsics to implement C11's
...
<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
2012-04-11 17:55:32 +00:00
Douglas Gregor
0598962a7b
Add a query macro for C++11 N3276, decltype does not require complete
...
return types, from Michel Morin!
llvm-svn: 154428
2012-04-10 20:00:33 +00:00
Daniel Dunbar
3c9bc4dbdb
[Lex] Add support for 'user specified system frameworks' (see test case).
...
- 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
2012-04-05 17:10:06 +00:00
David Blaikie
174ca49180
RelNote improvements made to -Wliteral-conversion by r141955.
...
llvm-svn: 154071
2012-04-05 00:47:38 +00:00
Manuel Klimek
d01a99ea41
Updated release notes for tooling.
...
llvm-svn: 154012
2012-04-04 12:53:16 +00:00
Douglas Gregor
9781893507
Add feature check "cxx_local_type_template_args" describing support
...
for templates with local template arguments, from Michel Morin! Fixes
PR12337.
llvm-svn: 153983
2012-04-04 00:48:39 +00:00
John McCall
67cd5e094e
Forbid the block and lambda copy-capture of __autoreleasing variables
...
in ARC, under the usual reasoning limiting the use of __autoreleasing.
llvm-svn: 153725
2012-03-30 05:23:48 +00:00
John McCall
01a360f06c
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.
llvm-svn: 153501
2012-03-27 07:42:12 +00:00
Richard Smith
6da64f39d4
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).
llvm-svn: 153464
2012-03-26 20:31:41 +00:00
Richard Smith
34bd1eb560
Revert accidentally-committed www changes (and an unused diagnostic);
...
forward-declared enums aren't /quite/ done yet.
llvm-svn: 153350
2012-03-23 23:11:49 +00:00
Richard Smith
b66d77793f
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.
llvm-svn: 153349
2012-03-23 23:09:08 +00:00
Patrick Beard
5e0bccf2d0
Removed repeated word (of of).
...
llvm-svn: 153195
2012-03-21 16:22:53 +00:00
Patrick Beard
aae4a392e5
numberWithFloat -> numberWithDouble.
...
llvm-svn: 153146
2012-03-20 22:24:08 +00:00
Patrick Beard
0661d0fc42
Fixed typo.
...
llvm-svn: 153142
2012-03-20 21:52:11 +00:00
Patrick Beard
f964c7be8d
Added summary section for Object Literals and Subscripting, which contains the external link.
...
llvm-svn: 153141
2012-03-20 21:51:03 +00:00
Patrick Beard
bbb7ffc63f
Fixed typos.
...
llvm-svn: 153126
2012-03-20 21:09:25 +00:00
Patrick Beard
fbb2e46299
Link to Objective-C literals documentation.
...
llvm-svn: 153124
2012-03-20 20:51:09 +00:00
Patrick Beard
958c98ab4b
Objective-C literals documentation.
...
llvm-svn: 153123
2012-03-20 20:50:45 +00:00
Patrick Beard
85bdcfc97b
Test commit.
...
llvm-svn: 153096
2012-03-20 17:25:17 +00:00
Benjamin Kramer
26dbe37993
LanguageExtensions: Manually word wrap a line to reduce horizontal scrolling.
...
llvm-svn: 153048
2012-03-19 19:12:30 +00:00
Kostya Serebryany
8b0a575065
fix link
...
llvm-svn: 152806
2012-03-15 16:22:06 +00:00
Kostya Serebryany
83d2a94e3a
[asan] update asan docs: mention CMake problem and to explain the status of MacOS 10.7 and 32-bit Linux
...
llvm-svn: 152805
2012-03-15 16:20:29 +00:00
Douglas Gregor
c683e4a8e9
Document the weak-linking behavior of the availability attribute
...
llvm-svn: 152543
2012-03-11 17:21:03 +00:00
Douglas Gregor
fdd417fcee
Document the availability attribute
...
llvm-svn: 152531
2012-03-11 04:53:21 +00:00
Douglas Gregor
cffca4a014
Clarify even further that the lambda-to-block-pointer conversion is only available in Objective-C++
...
llvm-svn: 152511
2012-03-10 22:20:11 +00:00
Douglas Gregor
bcfe5582a5
Document the conversion from a lambda closure type to a block pointer
...
in Objective-C++.
llvm-svn: 152446
2012-03-09 23:24:48 +00:00
Richard Smith
f5a0d10c2c
Add user-defined literals to release notes.
...
llvm-svn: 152424
2012-03-09 19:09:47 +00:00
Richard Smith
5023188315
User-defined literals are done.
...
llvm-svn: 152396
2012-03-09 08:41:27 +00:00
Richard Smith
1e3c1d38f2
Correct the documentation to give a legal example of a raw string literal.
...
llvm-svn: 152216
2012-03-07 08:57:31 +00:00
Richard Smith
522fa53703
Add a pile of tests for unrestricted unions, and advertise support for them.
...
llvm-svn: 151992
2012-03-03 23:51:05 +00:00
Jean-Daniel Dupas
999892f0d0
Fix Typo in 'objc changes' anchor.
...
llvm-svn: 151978
2012-03-03 13:37:22 +00:00
Kostya Serebryany
b187449435
add documentation for -f[no-]thread-sanitizer and -f[no-]address-sanitizer to docs/UsersManual.html
...
llvm-svn: 151858
2012-03-01 23:14:19 +00:00
Jean-Daniel Dupas
908f130d58
Implement double underscore names support in __has_attribute
...
llvm-svn: 151809
2012-03-01 14:53:16 +00:00
Richard Smith
d18cd186d0
Correct an example of a feature name to actually use a feature name rather
...
than an attribute name. Patch by Michel Morin!
llvm-svn: 151791
2012-03-01 02:12:07 +00:00
Richard Smith
2dc867f4e3
Update release notes and language extensions pages to note that support for
...
generalized initializers is available.
llvm-svn: 151477
2012-02-26 07:09:21 +00:00
Richard Smith
2cca7b5ca9
Accept __has_feature(__feature__) as a synonym for __has_feature(feature) (and
...
likewise for __has_extension). Patch by Jonathan Sauer!
llvm-svn: 151445
2012-02-25 10:41:10 +00:00
Douglas Gregor
29c42f2a25
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.
llvm-svn: 151352
2012-02-24 07:38:34 +00:00
Douglas Gregor
e5809a0aaf
Fix indentation
...
llvm-svn: 151264
2012-02-23 17:54:00 +00:00
Douglas Gregor
1fe7e90758
Note that lambda expressions are available in the release notes for 3.1
...
llvm-svn: 151263
2012-02-23 17:51:51 +00:00
Douglas Gregor
64bfb2e88e
Clang supports lambdas.
...
llvm-svn: 151239
2012-02-23 05:44:09 +00:00
Chad Rosier
c41c5a8c39
Improve placement of clang crash diagnostics section.
...
llvm-svn: 151192
2012-02-22 20:26:10 +00:00
Chad Rosier
35d14d91c2
Add clang crash diagnostic info and associated flags to Clang user manual.
...
llvm-svn: 151184
2012-02-22 19:14:46 +00:00
Dmitri Gribenko
e72fa2c113
Add -Wstrncat-size and -Wempty-body to release notes.
...
llvm-svn: 150879
2012-02-18 14:13:26 +00:00
Nico Weber
2668f0a132
Add a few minor items to the 3.1 release notes.
...
llvm-svn: 150656
2012-02-16 02:35:03 +00:00
Richard Smith
7e14ddd41b
Start off release notes for clang 3.1 with reference to C11 anonymous structs
...
and unions, and C++11 generalized constant expressions.
llvm-svn: 150640
2012-02-16 00:32:27 +00:00
David Blaikie
040a3a28f1
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.
llvm-svn: 150612
2012-02-15 19:45:34 +00:00
Richard Smith
1cb2af0b3a
Advertize support for constexpr.
...
llvm-svn: 150524
2012-02-14 22:56:17 +00:00
Michael J. Spencer
9dc864b6ce
Fix broken link. I believe this has been broken for at least 7 months.
...
llvm-svn: 150329
2012-02-12 09:11:39 +00:00
Benjamin Kramer
a20863e67d
Fix a typo (builting -> builtin).
...
Patch by Afriza N. Arief!
llvm-svn: 149822
2012-02-05 11:24:56 +00:00
Kostya Serebryany
588d6abf7d
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.
llvm-svn: 148842
2012-01-24 19:25:38 +00:00
Kostya Serebryany
8c84d4591d
[asan] document the need for -fno-optimize-sibling-calls
...
llvm-svn: 148716
2012-01-23 18:50:23 +00:00
Benjamin Kramer
83369b3377
Tweak markup.
...
llvm-svn: 148221
2012-01-15 16:42:14 +00:00
Anton Yartsev
e89856784c
added descriptions of vector extensions, info about vector literals and vector operations.
...
llvm-svn: 148220
2012-01-15 16:22:24 +00:00
Benjamin Kramer
eaa262b5b8
Fix ALL the markup.
...
llvm-svn: 148219
2012-01-15 15:26:07 +00:00
Kostya Serebryany
417dfe7a16
[asan] mention -fno-omit-frame-pointer in the docs
...
llvm-svn: 147663
2012-01-06 17:35:27 +00:00
Benjamin Kramer
e56f393249
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.
llvm-svn: 147221
2011-12-23 17:00:35 +00:00
Douglas Gregor
12aa609fd9
Fix typo 'typdefs', from Nikola Smiljanic
...
llvm-svn: 146894
2011-12-19 19:50:23 +00:00
Chris Lattner
ac2bda8dd0
fix a broken link
...
llvm-svn: 146859
2011-12-19 07:49:23 +00:00
Chris Lattner
ee9c24a40b
clarify that clang version number macros are marketing version #'s, not something useful.
...
llvm-svn: 146672
2011-12-15 19:06:36 +00:00
Kostya Serebryany
7c5c789e38
[asan] update asan docs
...
llvm-svn: 146446
2011-12-12 23:22:31 +00:00
Richard Smith
eb45aa0b2e
Document the updated behaviour of __builtin_constant_p introduced in r146236.
...
llvm-svn: 146241
2011-12-09 03:40:28 +00:00
Chris Lattner
1e13e8ac97
we got badgered into supporting multi-alternative constraints.
...
llvm-svn: 145822
2011-12-05 18:29:03 +00:00