summaryrefslogtreecommitdiffstats
path: root/clang/docs
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Rename AST node matchers to match the AST node names directly. Part of this ↵Aaron Ballman2015-09-171-336/+405
| | | | | | rename also splits recordDecl() (which used to match CXXRecordDecl) into recordDecl() (that matches RecordDecl) and cxxRecordDecl (that matches CXXRecordDecl). Also adds isStruct(), isUnion(), and isClass() narrowing matchers for RecordDecl objects. llvm-svn: 247885
* Updating docs for MSan to describe poison-in-dtor.Naomi Musgrave2015-09-171-0/+10
| | | | | | | | | | | | | | | | | | Summary: Describe the compile and runtime flags to enable MemorySanitizer detection of use-after-destroy. Reviewers: eugenis Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12914 Revise doc description of use-after-dtor. Change wording to specify memory no longer readable. llvm-svn: 247871
* Fixed HasDeclarationMatcher to properly convert all types into decls where ↵Aaron Ballman2015-09-111-3/+69
| | | | | | | | | | | | | | possible. Added objcObjectPointerType(), objcInterfaceDecl(), templateTypeParmType(), injectedClassNameType(), and unresolvedUsingTypenameDecl(). Updated documentation for pointerType() to call out that it does not match ObjCObjectPointerType types. Changed pointsTo() to handle ObjCObjectPointerType as well as PointerType. While this may seem like a lot of unrelated changes, they all relate back to fixing HasDeclarationMatcher. This now allows us to write a matcher like: varDecl(hasType(namedDecl(hasName("Foo")))) that matches code using typedefs, objc interfaces, template type parameters, injected class names, or unresolved using typenames. llvm-svn: 247404
* Docs: Document __builtin_nontemporal_load and __builtin_nontemporal_store.Michael Zolotukhin2015-09-111-0/+20
| | | | | | | | | | Summary: In r247104 I added the builtins for generating non-temporal memory operations, but now I realized that they lack documentation. This patch adds some. Differential Revision: http://reviews.llvm.org/D12785 llvm-svn: 247374
* Docs: Add missing new line before a list.Michael Zolotukhin2015-09-101-0/+1
| | | | llvm-svn: 247360
* CFI: Introduce -fsanitize=cfi-icall flag.Peter Collingbourne2015-09-102-6/+64
| | | | | | | | | | This flag causes the compiler to emit bit set entries for functions as well as runtime bitset checks at indirect call sites. Depends on the new function bitset mechanism. Differential Revision: http://reviews.llvm.org/D11857 llvm-svn: 247238
* add __builtin_unpredictable and convert to metadataSanjay Patel2015-09-021-0/+27
| | | | | | | | | | | | | | | | | | | | | | | This patch depends on r246688 (D12341). The goal is to make LLVM generate different code for these functions for a target that has cheap branches (see PR23827 for more details): int foo(); int normal(int x, int y, int z) { if (x != 0 && y != 0) return foo(); return 1; } int crazy(int x, int y) { if (__builtin_unpredictable(x != 0 && y != 0)) return foo(); return 1; } Differential Revision: http://reviews.llvm.org/D12458 llvm-svn: 246699
* Make trunk release notes point to 3.7, not 3.6Nico Weber2015-09-011-2/+2
| | | | llvm-svn: 246589
* Updating the AST matcher documentation with a new entry; NFC.Aaron Ballman2015-08-281-0/+14
| | | | llvm-svn: 246324
* Adding an AST matcher for namespaceAliasDecl.Aaron Ballman2015-08-281-0/+11
| | | | llvm-svn: 246322
* Add a -gmodules option to the driver and a -dwarf-ext-refs to cc1Adrian Prantl2015-08-271-0/+7
| | | | | | | | | | | | | to enable the use of external type references in the debug info (a.k.a. module debugging). The driver expands -gmodules to "-g -fmodule-format=obj -dwarf-ext-refs" and passes that to cc1. All this does at the moment is set a flag codegenopts. http://reviews.llvm.org/D11958 llvm-svn: 246192
* [Static Analyzer] Checks to catch nullability related issues.Gabor Horvath2015-08-261-0/+92
| | | | | | Differential Revision: http://reviews.llvm.org/D11468 llvm-svn: 246105
* [OPENMP] Info about OpenMP Support in Users Manual, NFC.Alexey Bataev2015-08-241-0/+26
| | | | | | Differential Revision: http://reviews.llvm.org/D12152 llvm-svn: 245823
* Add AST narrowing matchers for inline and anonymous namespaces. Since the ↵Aaron Ballman2015-08-181-4504/+4545
| | | | | | inline keyword can also be specified on a FunctionDecl, this is a polymorphic matcher. llvm-svn: 245337
* Doxygen: add build option to use svg instead of png files for graphsHans Wennborg2015-08-173-1/+11
| | | | | | Differential Revision: http://reviews.llvm.org/D11994 llvm-svn: 245259
* Fix AST matcher documentation.Manuel Klimek2015-08-142-84/+245
| | | | | | | | | | | Fix a bug in the matcher docs where callExpr(on(...)) was in the examples, but didn't work (on() only works for memberCallExpr). Fix a bug in the doc dump script that was introduced in r231575 when removing a regexp capture without adapting the code that uses the captures. llvm-svn: 245040
* Docs: keep copyright years up-to-dateHans Wennborg2015-08-121-1/+2
| | | | llvm-svn: 244797
* Docs: update clang-cl command-line documentationHans Wennborg2015-08-121-22/+59
| | | | llvm-svn: 244794
* ReleaseNotes: Small version nbr fixHans Wennborg2015-08-121-1/+1
| | | | llvm-svn: 244761
* Add missing documentation for conversionDecl; NFC.Aaron Ballman2015-08-111-0/+12
| | | | llvm-svn: 244669
* Add a polymorphic AST matcher for testing whether a constructor or a ↵Aaron Ballman2015-08-111-0/+26
| | | | | | conversion declaration is marked as explicit or not. llvm-svn: 244666
* Add an AST matcher to match member intializers of a CXXCtorInitializer.Aaron Ballman2015-08-111-0/+17
| | | | llvm-svn: 244662
* Fix typo.Nick Lewycky2015-08-101-1/+1
| | | | llvm-svn: 244490
* Add new llvm.loop.unroll.enable metadata for use with "#pragma unroll".Mark Heffernan2015-08-101-4/+16
| | | | | | | | | | | | | | | | | | | | | | This change adds the new unroll metadata "llvm.loop.unroll.enable" which directs the optimizer to unroll a loop fully if the trip count is known at compile time, and unroll partially if the trip count is not known at compile time. This differs from "llvm.loop.unroll.full" which explicitly does not unroll a loop if the trip count is not known at compile time With this change "#pragma unroll" generates "llvm.loop.unroll.enable" rather than "llvm.loop.unroll.full" metadata. This changes the semantics of "#pragma unroll" slightly to mean "unroll aggressively (fully or partially)" rather than "unroll fully or not at all". The motivating example for this change was some internal code with a loop marked with "#pragma unroll" which only sometimes had a compile-time trip count depending on template magic. When the trip count was a compile-time constant, everything works as expected and the loop is fully unrolled. However, when the trip count was not a compile-time constant the "#pragma unroll" explicitly disabled unrolling of the loop(!). Removing "#pragma unroll" caused the loop to be unrolled partially which was desirable from a performance perspective. llvm-svn: 244467
* Add WebKit brace style configuration option.Roman Kashitsyn2015-08-101-1/+3
| | | | | | | | | | | | | | | | | | Summary: Add brace style `BS_WebKit` as described on https://www.webkit.org/coding/coding-style.html: * Function definitions: place each brace on its own line. * Other braces: place the open brace on the line preceding the code block; place the close brace on its own line. Set brace style used in `getWebKitStyle()` to the newly added `BS_WebKit`. Reviewers: djasper, klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D11837 llvm-svn: 244446
* Add flags to disable profile generation.Diego Novillo2015-08-051-0/+13
| | | | | | | | | | | | This patch adds flags -fno-profile-instr-generate and -fno-profile-instr-use, and the GCC aliases -fno-profile-generate and -fno-profile-use. These flags are used in situations where users need to disable profile generation or use for specific files in a build, without affecting other files. llvm-svn: 244153
OpenPOWER on IntegriCloud