summaryrefslogtreecommitdiffstats
path: root/clang/docs
Commit message (Collapse)AuthorAgeFilesLines
* Cross-DSO control flow integrity (Clang part).Evgeniy Stepanov2015-12-153-4/+155
| | | | | | | | | | | | | | Clang-side cross-DSO CFI. * Adds a command line flag -f[no-]sanitize-cfi-cross-dso. * Links a runtime library when enabled. * Emits __cfi_slowpath calls is bitset test fails. * Emits extra hash-based bitsets for external CFI checks. * Sets a module flag to enable __cfi_check generation during LTO. This mode does not yet support diagnostics. llvm-svn: 255694
* docs: Document -fno-sanitize-trap= and -fsanitize-recover= flags for CFI.Peter Collingbourne2015-12-111-0/+18
| | | | llvm-svn: 255393
* [clang-cl] Let /W4 map to -Wall -Wextra instead of just -Wall.Nico Weber2015-12-111-1/+1
| | | | | | | | | There's no way to make a flag alias to two flags, so add a /WCL4 flag that maps to the All, Extra diag groups. Fixes PR25563. http://reviews.llvm.org/D15350 llvm-svn: 255382
* [analyzer] Fix symbolic element index lifetime.Artem Dergachev2015-12-101-0/+23
| | | | | | | | | | | | SymbolReaper was destroying the symbol too early when it was referenced only from an index SVal of a live ElementRegion. In order to test certain aspects of this patch, extend the debug.ExprInspection checker to allow testing SymbolReaper in a direct manner. Differential Revision: http://reviews.llvm.org/D12726 llvm-svn: 255236
* [OPENMP] Make -fopenmp to turn on OpenMP support by default, clang partAlexey Bataev2015-12-101-2/+2
| | | | | | | Patch turns on OpenMP support in clang by default after fixing OpenMP buildbots. Differential Revision: http://reviews.llvm.org/D13803 llvm-svn: 255223
* Fix a typo in the clang user manual.Yunzhong Gao2015-12-101-2/+2
| | | | | | -fmax-unknown-pointer-align => -fmax-type-align llvm-svn: 255200
* [Docs] One more cleanup of -fsanitize= section.Alexey Samsonov2015-12-042-18/+17
| | | | | | | Describe -fsanitize-blacklist flags in separate paragraphs, move notes about importance of clang++ for vptr down to UBSan docs. llvm-svn: 254798
* [Docs] Update MSan docsAlexey Samsonov2015-12-042-48/+35
| | | | | | | | | | | | | | Summary: 1. Move MSan-specific flags and features from user manual to MSan page. 2. Update current status / list of supported platforms. Reviewers: eugenis, kcc Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D15246 llvm-svn: 254788
* [Docs] Move the list of CFI schemes down to CFI doc, and update it.Alexey Samsonov2015-12-042-31/+48
| | | | | | | | | | | | | Use proper headling levels in CFI doc. Before that, all sections were considered a subsection of "Introduction". Reviewers: pcc, kcc Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D15237 llvm-svn: 254771
* [Docs] Remove false claim: UBSan can also be combined with TSan/MSan.Alexey Samsonov2015-12-041-2/+1
| | | | llvm-svn: 254734
* Clang documentation for UBSan.Alexey Samsonov2015-12-043-61/+211
| | | | | | | | | | | | | | | | | | | | | | Summary: Create a separate page describing UBSan tool, move the description of fine-grained checks there, provide extra information about supported platforms, symbolization etc. This text is compiled from four parts: * Existing documentation copied from User's Manual * Layout used in documentation for another sanitizers (ASan, MSan etc.) * Text written from scratch * Small parts taken from Michael Morrison's attempt at creating UBSan page: http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20141215/249503.html Reviewers: kcc, rsmith, silvas Subscribers: tberghammer, danalbert, srhines, kcc Differential Revision: http://reviews.llvm.org/D15217 llvm-svn: 254733
* [Docs] Sanitizer docs migrated from code.google.com to github.com.Alexey Samsonov2015-12-044-9/+4
| | | | llvm-svn: 254672
* Add a narrowing AST matcher that matches on a FunctionDecl with a ↵Aaron Ballman2015-12-021-0/+14
| | | | | | non-throwing exception specification. llvm-svn: 254516
* [sanitizer coverage] document -fsanitize-coverage=trace-bbKostya Serebryany2015-12-021-0/+7
| | | | llvm-svn: 254481
* docs: Add design documentation for forward-edge CFI for indirect calls.Peter Collingbourne2015-12-011-3/+88
| | | | llvm-svn: 254464
* [libFuzzer] clarify the limitation of fsanitize-coverage=trace-cmpKostya Serebryany2015-11-301-0/+1
| | | | llvm-svn: 254337
* docs: Remove references to the long-defunct LLVM_USED_LIBSJustin Bogner2015-11-262-3/+2
| | | | | | | LLVM_USED_LIBS hasn't done anything since 2012, stop telling people to set it in the docs. llvm-svn: 254173
* Remove DataRecursiveASTVisitor; it no longer serves any purpose, since it's ↵Richard Smith2015-11-241-1/+1
| | | | | | just an alias for RecursiveASTVisitor. llvm-svn: 253949
* Add an AST matcher for narrowing when a type is volatile-qualified.Aaron Ballman2015-11-231-0/+17
| | | | llvm-svn: 253882
* Revert r253582: "clang-cl: Make /W4 imply -Wall -Wextra (PR25563)"Hans Wennborg2015-11-201-1/+1
| | | | | | | | | | The patch expanded the flag *at the end*, breaking invocations like: clang-cl /W4 -Wno-unused-parameter Reverting for now. llvm-svn: 253678
* Regenerate ASTMatchersReference without CRLF.Benjamin Kramer2015-11-201-139/+139
| | | | llvm-svn: 253654
* Fix ASTMatcher reference newlines and make the generator script windows-proof.Benjamin Kramer2015-11-203-4690/+4690
| | | | llvm-svn: 253653
* clang-cl: Make /W4 imply -Wall -Wextra (PR25563)Hans Wennborg2015-11-191-1/+1
| | | | llvm-svn: 253582
* Re-committing r253473 after hopefully fixing the bot breakage. There was a ↵Aaron Ballman2015-11-181-0/+73
| | | | | | copy-pasta issue that my local testing did not catch. llvm-svn: 253481
* Reverting r253473 while I investigate build bot failures.Aaron Ballman2015-11-181-73/+0
| | | | llvm-svn: 253475
* Adding AST matchers for VarDecl storage durations. Can now determine whether ↵Aaron Ballman2015-11-181-0/+73
| | | | | | a VarDecl has automatic, static, or thread storage duration. This also updates the documentation for matchers, which appear to be missing some previous additions. llvm-svn: 253473
* Mark is_destructible/is_nothrow_destructible as implementedDavid Majnemer2015-11-141-2/+2
| | | | | | | These were implemented back in r244564. However, I forgot to update the docs. llvm-svn: 253128
* [ASan] Allow -fsanitize-recover=address.Yury Gribov2015-11-111-2/+3
| | | | | | Differential Revision: http://reviews.llvm.org/D14243 llvm-svn: 252721
* Fixed a link.Alexander Kornienko2015-11-041-1/+1
| | | | llvm-svn: 252069
* Fixed header levels.Alexander Kornienko2015-11-041-2/+2
| | | | llvm-svn: 252068
* Removed mentions of clang-modernize, added a short description of clang-tidy.Alexander Kornienko2015-11-041-33/+9
| | | | llvm-svn: 252066
* Add support for __builtin_{add,sub,mul}_overflow.John McCall2015-10-291-2/+20
| | | | | | Patch by David Grayson! llvm-svn: 251651
* clang-format: Add an additional value to AlignAfterOpenBracket: AlwaysBreak.Daniel Jasper2015-10-271-4/+28
| | | | | | | | | | | | | | | | | | | | Summary: If this option is set, clang-format will always insert a line wrap, e.g. before the first parameter of a function call unless all parameters fit on the same line. This obviates the need to make a decision on the alignment itself. Use this style for Google's JavaScript style and add some minor tweaks to correctly handle nested blocks etc. with it. Don't use this option for for/while loops. Reviewers: klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D14104 llvm-svn: 251405
* Sample Profiles - Fix location of binary encoding documentation. NFC.Diego Novillo2015-10-191-1/+1
| | | | llvm-svn: 250705
* docs: remote stale refsSaleem Abdulrasool2015-10-193-28/+21
| | | | | | | | Since the attribute documentation is now auto-generated, the previous references are no longer valid. This prevented the docs build from completing successfully. llvm-svn: 250674
* Update `clang-format -help` output in clang-format docs.Nico Weber2015-10-191-39/+48
| | | | | | | | | | -assume-filename, -fallback-style, and -sort-includes are new. (They're also longer than the previous options, so all descriptions shift over by some amount, making this diff look larger than it is.) It looks like someone renamed "General options" to "Generic Options" too. llvm-svn: 250672
* Add an AST node matcher for TemplateTypeParmDecl objects.Eric Fiselier2015-10-171-1/+11
| | | | llvm-svn: 250602
* Sample profiles - Update text profile documentation.Diego Novillo2015-10-141-12/+54
| | | | | | | There's been some changes to the text encoding for sample profiles. This updates the documentation and an example. llvm-svn: 250310
* Add decayedType and hasDecayedType AST matchersMatthias Gehre2015-10-121-0/+17
| | | | | | | | | | | | Summary: Add decayedType and hasDecayedType AST matchers Reviewers: klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D13639 llvm-svn: 250114
* clang-format: Hopefully fix code blocks in docs.Daniel Jasper2015-10-072-1/+7
| | | | | | Otherwise I will have to install sphinx ;).. llvm-svn: 249542
* clang-format: Add empty line before code-blocks in Docs.Daniel Jasper2015-10-062-1/+7
| | | | llvm-svn: 249394
* clang-format: Make IncludeCategories configurable in .clang-format file.Daniel Jasper2015-10-062-18/+41
| | | | | | | | | This was made much easier by introducing an IncludeCategory struct to replace the previously used std::pair. Also, cleaned up documentation and added examples. llvm-svn: 249392
* Adding an AST node matcher for NonTypeTemplateParmDecl objects.Aaron Ballman2015-10-051-1/+11
| | | | llvm-svn: 249341
* Adding a narrowing AST matcher for FunctionDecl::isVariadic(), plus tests ↵Aaron Ballman2015-10-051-0/+12
| | | | | | and documentation. llvm-svn: 249321
* clang-format: Small doc fix.Daniel Jasper2015-10-051-3/+3
| | | | llvm-svn: 249312
* clang-format: Remove sentence in option cost threshold that weakens theDaniel Jasper2015-10-051-2/+0
| | | | | | | statement. Specifically, we don't want people that have already written a patch to just write a style guide for their 1-person project. llvm-svn: 249290
* clang-format: Document threshold for adding new options.Daniel Jasper2015-10-051-0/+22
| | | | llvm-svn: 249289
* clang-format: Add a new brace style "custom" as well as flags toDaniel Jasper2015-09-292-4/+88
| | | | | | | | | | | | | | | control the individual braces. The existing choices for brace wrapping are now merely presets for the different flags that get expanded upon calling the reformat function. All presets have been chose to keep the existing formatting, so there shouldn't be any difference in formatting behavior. Also change the dump_format_style.py to properly document the nested structs that are used to keep these flags discoverable among all the configuration flags. llvm-svn: 248802
* Fix a typo.Adrian Prantl2015-09-171-1/+1
| | | | llvm-svn: 247895
* Update the 3.8 release notes with the breaking change information regarding ↵Aaron Ballman2015-09-171-0/+45
| | | | | | AST matchers. llvm-svn: 247887
OpenPOWER on IntegriCloud