summaryrefslogtreecommitdiffstats
path: root/clang/docs
Commit message (Collapse)AuthorAgeFilesLines
* [ASTMatcher] Add a node matcher for EnumType.Haojian Wu2016-06-301-0/+15
| | | | | | | | | | Reviewers: aaron.ballman Subscribers: cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D21860 llvm-svn: 274217
* [ASTMatchers] Add isLambda() matcher.Samuel Benzaquen2016-06-281-0/+11
| | | | llvm-svn: 274015
* CodeGen: Update Clang to use the new type metadata.Peter Collingbourne2016-06-241-9/+9
| | | | | | Differential Revision: http://reviews.llvm.org/D21054 llvm-svn: 273730
* IgnoringImplicit matcher.Cong Liu2016-06-242-3/+22
| | | | llvm-svn: 273659
* Add documentation for RenderScript changesPirama Arumuga Nainar2016-06-211-0/+5
| | | | | | | | | | | | | | Summary: - Document the new 'kernel' attribute - Mention RenderScript support in the Release Notes. Reviewers: rsmith Subscribers: tberghammer, danalbert, cfe-commits, srhines Differential Revision: http://reviews.llvm.org/D21212 llvm-svn: 273283
* [Docs] More warning fixes to unbreak the docs buildbot.George Burgess IV2016-06-213-9/+14
| | | | | | | | | | | | | A number of warnings still remain, but these were the last of the "unlexable code"-related ones (AFAICT). I changed a few examples in docs/UsersManual.rst to showcase -Wextra-tokens because it's already documented (-Wmultichar isn't), and the sphinx C lexer apparently can't handle char literals like 'ab'. It seemed like a better overall approach than just marking the code blocks as none or console. llvm-svn: 273232
* [Docs] Try to fix the docs buildbot.George Burgess IV2016-06-211-1/+1
| | | | | | | It's complaining that it couldn't lex a compiler warning as C++. I don't blame it. llvm-svn: 273227
* [sanitizer] Allow sanitize coverage w/o sanitizers.Evgeniy Stepanov2016-06-141-4/+6
| | | | | | | The reason is that this (a) seems to work just fine and (b) useful when building stuff with sanitizer+coverage, but need to exclude the sanitizer for a particular source file. llvm-svn: 272717
* Fix documentation bot after r272656Adam Nemet2016-06-141-1/+1
| | | | llvm-svn: 272699
* Add loop pragma for Loop DistributionAdam Nemet2016-06-141-3/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This is similar to other loop pragmas like 'vectorize'. Currently it only has state values: distribute(enable) and distribute(disable). When one of these is specified the corresponding loop metadata is generated: !{!"llvm.loop.distribute.enable", i1 true/false} As a result, loop distribution will be attempted on the loop even if Loop Distribution in not enabled globally. Analogously, with 'disable' distribution can be turned off for an individual loop even when the pass is otherwise enabled. There are some slight differences compared to the existing loop pragmas. 1. There is no 'assume_safety' variant which makes its handling slightly different from 'vectorize'/'interleave'. 2. Unlike the existing loop pragmas, it does not have a corresponding numeric pragma like 'vectorize' -> 'vectorize_width'. So for the consistency checks in CheckForIncompatibleAttributes we don't need to check it against other pragmas. We just need to check for duplicates of the same pragma. Reviewers: rsmith, dexonsmith, aaron.ballman Subscribers: bob.wilson, cfe-commits, hfinkel Differential Revision: http://reviews.llvm.org/D19403 llvm-svn: 272656
* [docs] Coverage: Document the profile merge pool specifierVedant Kumar2016-06-141-0/+8
| | | | llvm-svn: 272604
* Revert "[ASTMatchers] New forEachOverriden matcher."Chandler Carruth2016-06-111-24/+0
| | | | | | | This reverts commit r272386. It doesn't compile with MSVC and those bots have been red the entire day as a consequence. llvm-svn: 272453
* [ASTMatchers] New forEachOverriden matcher.Clement Courbet2016-06-101-0/+24
| | | | | | Matches methods overridden by the given method. llvm-svn: 272386
* Replace an ambiguous "it"Rafael Espindola2016-06-091-1/+1
| | | | | | Thanks to Sean for the suggestion. llvm-svn: 272260
* [docs] Coverage: Clarify return value of __llvm_profile_write_fileVedant Kumar2016-06-081-2/+3
| | | | llvm-svn: 272215
* [docs] Coverage: Flesh out instructions for avoiding static initializeresVedant Kumar2016-06-081-8/+16
| | | | llvm-svn: 272214
* [docs] Coverage: Explain how to avoid static initializersVedant Kumar2016-06-071-0/+16
| | | | llvm-svn: 272067
* Make isNoThrow and hasDynamicExceptionSpec polymorphic so they can be used ↵Aaron Ballman2016-06-071-4/+36
| | | | | | | | with both functionDecl and functionPrototype matchers. Patch by Don Hinton. llvm-svn: 272028
* Adding an AST matcher to ignore parenthesis in *types* (rather than ↵Aaron Ballman2016-06-061-0/+15
| | | | | | expressions). This is required for traversing certain types (like function pointer types). llvm-svn: 271927
* Add a release note about the --build-id change.Rafael Espindola2016-06-061-1/+4
| | | | llvm-svn: 271918
* [docs] Clarify limitations section of SourceBasedCodeCoverage.rstVedant Kumar2016-06-061-4/+5
| | | | | | | | | Mention that the code coverage tool becomes less precise whenever unpredictable changes in control flow occur. Thanks to Sean Silva for pointing this out! llvm-svn: 271902
* [docs] Add a limitations section to SourceBasedCodeCoverage.rstVedant Kumar2016-06-021-2/+19
| | | | llvm-svn: 271544
* [docs] Fix misplaced commaVedant Kumar2016-06-021-1/+1
| | | | llvm-svn: 271472
* [docs] Minor formatting changes and typo fixesVedant Kumar2016-06-021-11/+10
| | | | llvm-svn: 271471
* [docs] Use cpp code-blocks where appropriateVedant Kumar2016-06-021-2/+2
| | | | llvm-svn: 271461
* [docs] Add missing newline to console sectionVedant Kumar2016-06-021-0/+1
| | | | llvm-svn: 271457
* [docs] Document the source-based code coverage featureVedant Kumar2016-06-022-0/+187
| | | | | | Differential Revision: http://reviews.llvm.org/D20715 llvm-svn: 271454
* [ASTMatchers] Breaking change of `has` matcherPiotr Padlewski2016-05-311-5/+7
| | | | | | | | has matcher can now match to implicit and paren casts http://reviews.llvm.org/D20801 llvm-svn: 271288
* [OPENMP] Update in ReleaseNotes for OpenMP support.Alexey Bataev2016-05-311-0/+15
| | | | | | | | Added notes about full support of all non-offloading features of OpenMP 4.5 + info about option -fopenmp-version=[31|40|45] that allows to control supported OpenMP version. llvm-svn: 271263
* [ASTMatchers] Add support of hasCondition for SwitchStmt.Etienne Bergeron2016-05-301-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The switch statement could be added to the hasCondition matcher. Example: ``` clang-query> match switchStmt(hasCondition(ignoringImpCasts(declRefExpr()))) ``` Output: ``` Match #1: Binding for "root": SwitchStmt 0x2f9b528 </usr/local/google/home/etienneb/examples/enum.cc:35:3, line:38:3> |-<<<NULL>>> |-ImplicitCastExpr 0x2f9b510 <line:35:11> 'int' <IntegralCast> | `-ImplicitCastExpr 0x2f9b4f8 <col:11> 'enum Color' <LValueToRValue> | `-DeclRefExpr 0x2f9b4d0 <col:11> 'enum Color' lvalue Var 0x2f9a118 'C' 'enum Color' `-CompoundStmt 0x2f9b610 <col:14, line:38:3> |-CaseStmt 0x2f9b578 <line:36:3, col:22> | |-ImplicitCastExpr 0x2f9b638 <col:8> 'int' <IntegralCast> | | `-DeclRefExpr 0x2f9b550 <col:8> 'enum Size' EnumConstant 0x2f99e40 'Small' 'enum Size' | |-<<<NULL>>> | `-ReturnStmt 0x2f9b5d0 <col:15, col:22> | `-IntegerLiteral 0x2f9b5b0 <col:22> 'int' 1 `-DefaultStmt 0x2f9b5f0 <line:37:3, col:12> `-BreakStmt 0x2f9b5e8 <col:12> 1 match. ``` Reviewers: aaron.ballman, sbenza, klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D20767 llvm-svn: 271208
* docs: Clarify that LTO visibility is based on source-level symbol visibility.Peter Collingbourne2016-05-271-8/+10
| | | | llvm-svn: 271063
* [msan] add a sentence about inline assemblyKostya Serebryany2016-05-271-0/+2
| | | | llvm-svn: 271005
* [mips] Compact branch policy setting.Simon Dardis2016-05-271-0/+10
| | | | | | | | | | | | | | This patch adds the commandline option -mcompact-branches={never,optimal,always), which controls how LLVM generates compact branches for MIPSR6 targets. By default, the compact branch policy is 'optimal' where LLVM will generate the most appropriate branch for any situation. The 'never' and 'always' policy will disable or always generate compact branches wherever possible respectfully. Reviewers: dsanders, vkalintiris, atanasyan Differential Revision: http://reviews.llvm.org/D20729 llvm-svn: 271000
* docs: Document how safestack handles setjmp and exceptions.Peter Collingbourne2016-05-241-0/+11
| | | | llvm-svn: 270634
* Clang support for __is_assignable intrinsicDavid Majnemer2016-05-231-0/+1
| | | | | | | | | | | | | | | | | | | MSVC now supports the __is_assignable type trait intrinsic, to enable easier and more efficient implementation of the Standard Library's is_assignable trait. As of Visual Studio 2015 Update 3, the VC Standard Library implementation uses the new intrinsic unconditionally. The implementation is pretty straightforward due to the previously existing is_nothrow_assignable and is_trivially_assignable. We handle __is_assignable via the same code as the other two except that we skip the extra checks for nothrow or triviality. Patch by Dave Bartolomeo! Differential Revision: http://reviews.llvm.org/D20492 llvm-svn: 270458
* Update -ffast-math documentation to match reality.Justin Lebar2016-05-201-0/+13
| | | | | | | | | | Reviewers: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20457 llvm-svn: 270279
* [ASTMatcher] Add a node matcher for UnresolvedLookupExpr.Haojian Wu2016-05-181-0/+15
| | | | | | | | | | Reviewers: alexfh, aaron.ballman Subscribers: aaron.ballman, klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D20360 llvm-svn: 269916
* Add the hasDynamicExceptionSpec() AST matcher to match function declarations ↵Aaron Ballman2016-05-161-0/+16
| | | | | | | | that have a dynamic exception specification. Patch by Don Hinton. llvm-svn: 269662
* Add an AST matcher for CastExpr kindEtienne Bergeron2016-05-131-0/+9
| | | | | | | | | | | | | | Summary: This AST matcher will match a given CastExpr kind. It's an narrowing matcher on CastExpr. Reviewers: klimek, alexfh, sbenza, aaron.ballman Subscribers: Prazek, jroelofs, aaron.ballman, klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D19871 llvm-svn: 269460
* [ubsan] Add -fsanitize-undefined-strip-path-components=NFilipe Cabecinhas2016-05-121-0/+20
| | | | | | | | | | | | | | | | | | | Summary: This option allows the user to control how much of the file name is emitted by UBSan. Tuning this option allows one to save space in the resulting binary, which is helpful for restricted execution environments. With a positive N, UBSan skips the first N path components. With a negative N, UBSan only keeps the last N path components. Reviewers: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19666 llvm-svn: 269309
* Add an AST matcher for string-literal lengthEtienne Bergeron2016-05-121-4/+29
| | | | | | | | | | | | | | | | Summary: This patch is adding support for a matcher to check string literal length. This matcher is used in clang-tidy checkers and is part of this refactoring: see: http://reviews.llvm.org/D19841 Reviewers: sbenza, klimek, aaron.ballman Subscribers: alexfh, klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D19876 llvm-svn: 269274
* More fixes to codeblock formatting in documentation.Richard Smith2016-05-061-3/+3
| | | | llvm-svn: 268749
* s/codeblock/code-block to fix the Sphinx build.Aaron Ballman2016-05-061-3/+3
| | | | llvm-svn: 268728
* Some release note updates for C++ language acceptance changes since Clang 3.8.Richard Smith2016-05-051-2/+52
| | | | llvm-svn: 268663
* Fix the doc extraction script to work with hasAnyName and with equalsNode.Samuel Benzaquen2016-05-042-6/+37
| | | | | | | | | The change from llvm::VariadicFunction to internal::VariadicFunction broke the extraction of hasAnyName(). equalsNode was broken because the argument type is 'const XXXX*' and the internal space caused a failure on the regex. llvm-svn: 268548
* fix docsKostya Serebryany2016-05-041-0/+1
| | | | llvm-svn: 268541
* document -f[no-]sanitize-recover=all and mention it in warning messagesKostya Serebryany2016-05-041-0/+1
| | | | llvm-svn: 268540
* [ASTMatchers] New matcher forFunctionGabor Horvath2016-05-041-0/+14
| | | | | | | | | | | | Summary: Matcher proposed in the review of checker misc-assign-operator (name pending). Its goal is to find the direct enclosing function declaration of a statement and run the inner matcher on it. Two version is attached in this patch (thus it will not compile), to be decided which approach to take. The second one always chooses one single parent while the first one does a depth-first search upwards (thus a height-first search) and returns the first positive match of the inner matcher (thus it always returns zero or one matches, not more). Further questions: is it enough to implement it in-place, or ASTMatchersInternals or maybe ASTMatchFinder should be involved? Reviewers: sbenza Subscribers: aaron.ballman, klimek, o.gyorgy, xazax.hun, cfe-commits Differential Revision: http://reviews.llvm.org/D19357 llvm-svn: 268490
* Add address space 258 (X86 SS segment) to clang documentation.David L Kreitzer2016-05-031-4/+5
| | | | | | | | | | The change reflects llvm r268431. Patch by Michael Lemay (michael.lemay@intel.com) Differential Revision: http://reviews.llvm.org/D19458 llvm-svn: 268432
* Re-apply r267784, r267824 and r267830.Peter Collingbourne2016-04-284-24/+137
| | | | | | I have updated the compiler-rt tests. llvm-svn: 267903
OpenPOWER on IntegriCloud