summaryrefslogtreecommitdiffstats
path: root/clang/docs
Commit message (Collapse)AuthorAgeFilesLines
* [ASTMatchers] add typeAliasTemplateDecl matcher.Eric Liu2017-03-281-0/+9
| | | | | | | | | | | | Reviewers: hokein, aaron.ballman Reviewed By: aaron.ballman Subscribers: aaron.ballman, cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D28671 llvm-svn: 298912
* Add LibreOffice Clang plugin to ExternalClangExamples.rstStephan Bergmann2017-03-221-0/+8
| | | | | | | | | | Reviewers: rsmith, rizsotto.mailinglist Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D31133 llvm-svn: 298490
* Remove the -faltivec alias option and replace it with -maltivec everywhere.Eric Christopher2017-03-212-2/+2
| | | | | | | | | | | The alias was only ever used on darwin and had some issues there, and isn't used in practice much. Also fixes a problem with -mno-altivec not turning off -maltivec. Also add a diagnostic for faltivec/fno-altivec that directs users to use maltivec options and include the altivec.h file explicitly. llvm-svn: 298449
* [docs] Clarify sanitizer flag behaviorVedant Kumar2017-03-201-3/+3
| | | | | | | | PR32346 suggests that UBSan's docs about the -fsanitize, -fno-sanitize-recover, and -fsanitize-trap options are not explicit enough. Try to improve the wording. llvm-svn: 298310
* Proposal: Backward-edge CFI for return statements (RCFI)Kostya Serebryany2017-03-201-1/+89
| | | | | | | | | | | | | | Summary: Proposal: Backward-edge CFI for return statements (RCFI) Reviewers: pcc, eugenis, krasin Reviewed By: eugenis Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D31112 llvm-svn: 298303
* Fix some sphinx -Werror'sJonathan Roelofs2017-03-202-21/+32
| | | | | | ... mostly having to do with code blocks which the syntax highlighter chokes on llvm-svn: 298275
* Add more examples to clang-format configurationSylvestre Ledru2017-03-201-2/+228
| | | | | | | | | | | | Reviewers: djasper Reviewed By: djasper Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D30990 llvm-svn: 298245
* [Modules] Add documentation on private frameworksBruno Cardoso Lopes2017-03-161-0/+11
| | | | | | | | | Expand a bit on private modules with some guidance on how to write them in the context of frameworks. rdar://problem/24758771 llvm-svn: 298012
* Add AST matchers for ObjCProtocolDecl, ObjCCategoryDecl, ObjCMethodDecl, ↵Aaron Ballman2017-03-151-0/+53
| | | | | | | | ObjCIvarDecl, and ObjCPropertyDecl. Patch by Dave Lee. llvm-svn: 297882
* Add more clang-format changes to the 5.0 release notesKrasimir Georgiev2017-03-141-5/+17
| | | | llvm-svn: 297730
* describe the recent changes in clang-format in the 5.0 release notesSylvestre Ledru2017-03-141-0/+25
| | | | llvm-svn: 297721
* [ubsan] Add a nullability sanitizerVedant Kumar2017-03-141-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach UBSan to detect when a value with the _Nonnull type annotation assumes a null value. Call expressions, initializers, assignments, and return statements are all checked. Because _Nonnull does not affect IRGen, the new checks are disabled by default. The new driver flags are: -fsanitize=nullability-arg (_Nonnull violation in call) -fsanitize=nullability-assign (_Nonnull violation in assignment) -fsanitize=nullability-return (_Nonnull violation in return stmt) -fsanitize=nullability (all of the above) This patch builds on top of UBSan's existing support for detecting violations of the nonnull attributes ('nonnull' and 'returns_nonnull'), and relies on the compiler-rt support for those checks. Eventually we will need to update the diagnostic messages in compiler-rt (there are FIXME's for this, which will be addressed in a follow-up). One point of note is that the nullability-return check is only allowed to kick in if all arguments to the function satisfy their nullability preconditions. This makes it necessary to emit some null checks in the function body itself. Testing: check-clang and check-ubsan. I also built some Apple ObjC frameworks with an asserts-enabled compiler, and verified that we get valid reports. Differential Revision: https://reviews.llvm.org/D30762 llvm-svn: 297700
* [clang-format] Add more examples and fix a bug in the py generation scriptSylvestre Ledru2017-03-132-1/+292
| | | | | | | | | | | | Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D30860 llvm-svn: 297623
* [clang-format] Add option to break before inheritance separation operator in ↵Andi-Bogdan Postelnicu2017-03-101-0/+4
| | | | | | | | class declaration. Differential Revision: https://reviews.llvm.org/D30487 llvm-svn: 297467
* Remove a useless subsitution in doxygen2rst which was incorrectly replacing ↵Sylvestre Ledru2017-03-092-6/+5
| | | | | | | | | | | | | | | | * by \* Summary: For example, "int\* a;" is displayed instead of "int* a;" Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D30740 llvm-svn: 297363
* [analyzer] Improve usability of ExprInspectionCheckerAnna Zaks2017-03-091-1/+7
| | | | | | | | | | | | | | | | Some of the magic functions take arguments of arbitrary type. However, for semantic correctness, the compiler still requires a declaration of these functions with the correct type. Since C does not have argument-type-overloaded function, this made those functions hard to use in C code. Improve this situation by allowing arbitrary suffixes in the affected magic functions' names, thus allowing the user to create different declarations for different types. A patch by Keno Fischer! Differential Revision: https://reviews.llvm.org/D30589 llvm-svn: 297325
* Add more examples to clang-format configurationSylvestre Ledru2017-03-081-1/+104
| | | | | | | | | | | | Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D30734 llvm-svn: 297275
* Add examples to clang-format configurationSylvestre Ledru2017-03-061-0/+93
| | | | | | | | | | | | Reviewers: klimek, djasper Reviewed By: djasper Subscribers: krasimir, kimgr, cfe-commits Differential Revision: https://reviews.llvm.org/D30532 llvm-svn: 297025
* [clang-format] Add a new flag FixNamespaceComments to FormatStyleKrasimir Georgiev2017-03-011-1/+14
| | | | | | | | | | | | | | | | Summary: This patch enables namespace end comments under a new flag FixNamespaceComments, which is enabled for the LLVM and Google styles. Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D30405 llvm-svn: 296632
* UBSan docs: Explicitly mention that `-fsanitize=unsigned-integer-overflow` ↵Nico Weber2017-02-271-1/+3
| | | | | | | | does not catch UB. https://reviews.llvm.org/D27455 llvm-svn: 296387
* Add clazy to external Clang examples pageKevin Funk2017-02-241-0/+5
| | | | | | | | | | Reviewers: silvas, rizsotto.mailinglist, sergio.martins Reviewed By: rizsotto.mailinglist Differential Revision: https://reviews.llvm.org/D30252 llvm-svn: 296098
* Update Bugzilla URLs in docsIsmail Donmez2017-02-171-3/+3
| | | | llvm-svn: 295433
* [OpenCL][Doc] Added OpenCL vendor extension description to user manual docAnastasia Stulova2017-02-161-1/+38
| | | | | | | | | Added description of a new feature that allows to specify vendor extension in flexible way using compiler pragma instead of modifying source code directly (committed in clang@r289979). Review: D29829 llvm-svn: 295313
* docs: update docs for objc_storeStrong behaviourSaleem Abdulrasool2017-02-111-5/+2
| | | | | | objc_storeStrong does not return a value. llvm-svn: 294855
* Don't try to link to the 4.0 release notesHans Wennborg2017-02-091-3/+3
| | | | llvm-svn: 294658
* [DebugInfo] Added support to Clang FE for generating debug info for ↵Amjad Aboud2017-02-091-0/+16
| | | | | | | | | | | preprocessor macros. Added "-fdebug-macro" flag (and "-fno-debug-macro" flag) to enable (and to disable) emitting macro debug info. Added CC1 "-debug-info-macro" flag that enables emitting macro debug info. Differential Revision: https://reviews.llvm.org/D16135 llvm-svn: 294637
* [docs] coverage: Clarify which flags enable gcov-style profiling (NFC)Vedant Kumar2017-02-091-0/+1
| | | | | | | | | Point out that --coverage and -ftest-coverage, which is what most people are used to, do not enable clang's frontend based coverage pass. Suggested by Benn Bolay! llvm-svn: 294626
* [sancov] pc_guard_init is called at least once per DSO.Mike Aizatsky2017-02-081-4/+5
| | | | | | | | Summary: Documentation update for https://reviews.llvm.org/D29662 Differential Revision: https://reviews.llvm.org/D29722 llvm-svn: 294522
* [X86] Add -mprefetchwt1/-mno-prefetchwt1 command line options and ↵Craig Topper2017-02-081-0/+2
| | | | | | __PREFETCHWT1__ define to match gcc. llvm-svn: 294424
* [X86] Add -msgx/-mno-sgx command line options and __SGX__ define to match gcc.Craig Topper2017-02-081-0/+2
| | | | llvm-svn: 294423
* [X86] Update command line documentation for -mclwb and -mmovbe which I ↵Craig Topper2017-02-081-0/+4
| | | | | | forgot in my previous commits. llvm-svn: 294420
* [X86] Add -mmpx/-mno-mpx command line options and __MPX__ define to match gcc.Craig Topper2017-02-081-0/+2
| | | | llvm-svn: 294419
* [X86] Add -mclflushopt/-mno-clflushopt command line support and ↵Craig Topper2017-02-081-0/+2
| | | | | | __CLFLUSHOPT__ define to match gcc. llvm-svn: 294411
* Improve docs: Add missing #pragma push directive.Asiri Rathnayake2017-02-021-0/+1
| | | | | | NFC. llvm-svn: 293877
* [docs] Add help text and refine grouping for various options.Richard Smith2017-01-271-119/+129
| | | | | | Also accept -G= (and -msmall-data-threshold=) as an alias for -G on MIPS as well as Hexagon. llvm-svn: 293254
* Improve workaround for Sphinx's lack of support for command line options ↵Richard Smith2017-01-271-839/+76
| | | | | | containing '+', '.' etc. to be more stable as the set of options changes. llvm-svn: 293252
* Clarify how to forward-declare __llvm_profile symbols.Nico Weber2017-01-251-0/+2
| | | | llvm-svn: 293065
* [docs] Add TableGen-based generator for command line argument documentation,Richard Smith2017-01-242-0/+3287
| | | | | | | and generate documentation for all (non-hidden) options supported by the 'clang' driver. llvm-svn: 292968
* [sanitizer-coverage] emit __sanitizer_cov_trace_pc_guard w/o a preceding ↵Kostya Serebryany2017-01-241-6/+12
| | | | | | 'if' by default. Update the docs, also add deprecation notes around other parts of sanitizer coverage llvm-svn: 292862
* Fix documentation typo from r292558.Richard Smith2017-01-231-1/+1
| | | | llvm-svn: 292811
* [docs] Regenerate DiagnosticsReference.rst. We don't have automatic ↵Richard Smith2017-01-201-76/+447
| | | | | | generation of this set up server-side yet. llvm-svn: 292637
* Fix documentation typo.Malcolm Parsons2017-01-201-1/+1
| | | | llvm-svn: 292595
* Fix documentation typo.Richard Smith2017-01-201-1/+1
| | | | llvm-svn: 292559
* Add documentation for constexpr string builtin support.Richard Smith2017-01-201-0/+40
| | | | llvm-svn: 292558
* [docs] Tell Doxygen to expand LLVM_ALIGNAS to nothingMalcolm Parsons2017-01-191-3/+3
| | | | | | | | | | | | | | | | | Summary: Docs for clang::Decl and clang::TemplateSpecializationType have not been generated since LLVM_ALIGNAS was added to them. Tell Doxygen to expand LLVM_ALIGNAS to nothing as described at https://www.stack.nl/~dimitri/doxygen/manual/preprocessing.html Reviewers: aaron.ballman, klimek, alexfh Subscribers: ioeric, cfe-commits Differential Revision: https://reviews.llvm.org/D28850 llvm-svn: 292477
* UsersManual.rst: add missing newlineHans Wennborg2017-01-171-0/+1
| | | | llvm-svn: 292265
* Replace non-ASCII ellipsis with "..." to silence Sphinx warnings.Aaron Ballman2017-01-161-2/+2
| | | | llvm-svn: 292115
* Add -fstrict-vtable-pointers to UsersManualPiotr Padlewski2017-01-161-0/+7
| | | | | | | | | | | | | Summary: Add missing flag to UsersManual It would be good to merge it to 4.0 branch. Reviewers: hans Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D28727 llvm-svn: 292112
* fix a few typo in the doc but also in the clang messagesSylvestre Ledru2017-01-142-2/+2
| | | | llvm-svn: 292015
* Remove unused lambda captures. NFCMalcolm Parsons2017-01-131-1/+2
| | | | llvm-svn: 291939
OpenPOWER on IntegriCloud