summaryrefslogtreecommitdiffstats
path: root/clang/docs
Commit message (Collapse)AuthorAgeFilesLines
* [docs] Use x86_64 and i386 instead of x86 as arch for triples.Florian Hahn2016-12-051-2/+2
| | | | | | | | | | | | Summary: x86 is not a valid arch for target triples, but x86_64 and i386 are. Reviewers: rengolin, silvas Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26960 llvm-svn: 288723
* Add the --no-color option to the git call in the doc when using ↵Sylvestre Ledru2016-12-031-1/+1
| | | | | | clang-format-diff llvm-svn: 288605
* Extend CompilationDatabase by a field for the output filenameJoerg Sonnenberger2016-12-011-0/+3
| | | | | | | | | | | | | | In bigger projects like an Operating System, the same source code is often compiled in slightly different ways. This could be the difference between PIC and non-PIC code for static vs dynamic libraries, it could also be the difference between size optimised versions of tools for ramdisk images. At the moment, the compilation database has no way to distinguish such cases. As first step, add a field in the JSON format for it and process it accordingly. Differential Revision: https://reviews.llvm.org/D27138 llvm-svn: 288436
* Adds hasUnqualifiedDesugaredType to allow matching through type sugar.Manuel Klimek2016-12-011-124/+136
| | | | | | Differential Revision: https://reviews.llvm.org/D27207 llvm-svn: 288366
* [analyzer] Minor fixes and improvements to debug.ExprInspectionArtem Dergachev2016-11-301-0/+39
| | | | | | | | | | | | | | | | | | - Fix the bug with transition handling in ExprInspectionChecker's checkDeadSymbols implementation. - Test this bug by adding a new function clang_analyzer_numTimesReached() to catch number of passes through the code, which should be handy for testing against unintended state splits. - Add two more functions should help debugging issues quickly without running the debugger or dumping exploded graphs - clang_analyzer_dump() which dump()s an SVal argument to a warning message, and clang_analyzer_printState(), which dump()s the current program state to stderr. Differential Revision: https://reviews.llvm.org/D26835 llvm-svn: 288257
* Document the arguments form of commands.Joerg Sonnenberger2016-11-251-0/+2
| | | | llvm-svn: 287926
* [clang docs] Minor fix in ClangCheck.rstMandeep Singh Grang2016-11-141-3/+3
| | | | | | | | | | | | Reviewers: djasper, rengolin Subscribers: Eugene.Zelenko Tags: #clang-c Differential Revision: https://reviews.llvm.org/D26484 llvm-svn: 286846
* As we released 3.9, from the 4.0 release notes, points to version 3.9 ↵Sylvestre Ledru2016-11-121-3/+3
| | | | | | instead of 3.8 llvm-svn: 286718
* Add the new option -Og in the release notes. See r286602 for more informationSylvestre Ledru2016-11-121-1/+5
| | | | llvm-svn: 286717
* [ASTMatchers] Fix a typo in cStyleCastExpr() HTML docs as well. NFC.Artem Dergachev2016-11-111-1/+1
| | | | llvm-svn: 286651
* Add a new optimization option -Og Sylvestre Ledru2016-11-111-1/+4
| | | | | | | | | | | | | | Summary: Just like gcc, we should have the -Og option as more and more software are using it: https://llvm.org/bugs/show_bug.cgi?id=20765 Reviewers: echristo, dberlin, dblaikie, keith.walker.arm, rengolin Subscribers: aprantl, friss, mehdi_amini, RKSimon, probinson, majnemer, cfe-commits Differential Revision: https://reviews.llvm.org/D24998 llvm-svn: 286602
* [ASTMatcher] Add CXXNewExpr support to hasDeclarationMalcolm Parsons2016-10-311-0/+54
| | | | | | | | | | Reviewers: sbenza, lukasza, aaron.ballman, klimek Subscribers: lukasza, sbenza, cfe-commits Differential Revision: https://reviews.llvm.org/D26032 llvm-svn: 285644
* [Modules] Add a command line option for loading the clang builtins modulemap.Elad Cohen2016-10-311-0/+3
| | | | | | | | | -fbuiltin-module-map loads the clang builtins modulemap file. (This is equivalent to -fmodule-map-file=<resource dir>/include/module.modulemap) Differential Revision: https://reviews.llvm.org/D25767 llvm-svn: 285548
* [docs] Update the TSan and MSan docs to refer to the new no_sanitize attributeAnna Zaks2016-10-272-10/+10
| | | | | | | | | | TSan and MSan were the only remaining sanitizers referring to the deprecated attribute for issue suppression. Update the docs to recommend __attribute__((no_sanitize("..."))) instead. Differential Revision: https://reviews.llvm.org/D25885 llvm-svn: 285349
* Add documentation describing the components of a complete toolchain ↵Richard Smith2016-10-273-0/+359
| | | | | | including Clang. llvm-svn: 285341
* [Modules] Add 'no_undeclared_includes' module map attributeBruno Cardoso Lopes2016-10-211-0/+2
| | | | | | | | | | | | | The 'no_undeclared_includes' attribute should be used in a module to tell that only non-modular headers and headers from used modules are accepted. The main motivation behind this is to prevent dep cycles between system libraries (such as darwin) and libc++. Patch by Richard Smith! llvm-svn: 284797
* [ThinLTO] Update doc to include lld (now supported).Davide Italiano2016-10-131-2/+4
| | | | | | Differential Revision: https://reviews.llvm.org/D25537 llvm-svn: 284137
* Document potential implementation of CFI in hardware.Kostya Serebryany2016-10-121-0/+54
| | | | | | | | | | | | Summary: Document potential implementation of CFI in hardware. Reviewers: eugenis, pcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D25455 llvm-svn: 284029
* [Driver] Make -print-libgcc-file-name print compiler-rt lib when usedMichal Gorny2016-10-101-1/+2
| | | | | | | | | | | | | | | | | | | | Make the -print-libgcc-file-name option print an appropriate compiler runtime library, that is libgcc.a if gcc runtime is used and an appropriate compiler-rt library if that runtime is used. The main use for this is to allow linking executables built with -nodefaultlibs (e.g. to avoid linking to the standard C++ library) to the compiler runtime library, e.g. using: clang++ ... -nodefaultlibs $(clang++ ... -print-libgcc-file-name) in which case currently a program built like this linked to the gcc runtime unconditionally. The patch fixes it to use compiler-rt libraries instead when compiler-rt is the active runtime. Differential Revision: https://reviews.llvm.org/D25338 llvm-svn: 283746
* Revert r283572 - [Driver] Make -print-libgcc-file-name print compiler-rt lib ↵Michal Gorny2016-10-071-2/+1
| | | | | | | | | | when used Revert the -print-libgcc-file-name change as the new test fails on Darwin. It needs to be updated to run the libgcc part only on systems supporting that rtlib. llvm-svn: 283586
* [Driver] Make -print-libgcc-file-name print compiler-rt lib when usedMichal Gorny2016-10-071-1/+2
| | | | | | | | | | | | | | | | | | | | Make the -print-libgcc-file-name option print an appropriate compiler runtime library, that is libgcc.a if gcc runtime is used and an appropriate compiler-rt library if that runtime is used. The main use for this is to allow linking executables built with -nodefaultlibs (e.g. to avoid linking to the standard C++ library) to the compiler runtime library, e.g. using: clang++ ... -nodefaultlibs $(clang++ ... -print-libgcc-file-name) in which case currently a program built like this linked to the gcc runtime unconditionally. The patch fixes it to use compiler-rt libraries instead when compiler-rt is the active runtime. Differential Revision: https://reviews.llvm.org/D25338 llvm-svn: 283572
* [sancov] documentation update after r283241Mike Aizatsky2016-10-041-1/+1
| | | | llvm-svn: 283242
* [ThinLTO] Spell `llvm-ar` correctly.Davide Italiano2016-10-041-1/+1
| | | | llvm-svn: 283217
* [coroutines] Adding builtins for coroutine intrinsics and backendutil support.Gor Nishanov2016-10-031-0/+76
| | | | | | | | | | | | | Summary: With this commit simple coroutines can be created in plain C using coroutine builtins. Reviewers: rnk, EricWF, rsmith Subscribers: modocache, mgorny, mehdi_amini, beanz, cfe-commits Differential Revision: https://reviews.llvm.org/D24373 llvm-svn: 283155
* [sanitizer-coverage] fix docsKostya Serebryany2016-09-301-0/+1
| | | | llvm-svn: 282962
* [sancov] -symbolize documentation updateMike Aizatsky2016-09-301-6/+13
| | | | llvm-svn: 282948
* [sanitizer-coverage] a bit more docsKostya Serebryany2016-09-291-1/+13
| | | | llvm-svn: 282752
* [sanitizer-coverage] more docsKostya Serebryany2016-09-291-0/+67
| | | | llvm-svn: 282751
* [sanitize-coverage] doc typoKostya Serebryany2016-09-291-1/+1
| | | | llvm-svn: 282749
* [sanitizer-coverage/libFuzzer] make the guards for trace-pc 32-bit; create ↵Kostya Serebryany2016-09-291-2/+2
| | | | | | one array of guards per function, instead of one guard per BB. reorganize the code so that trace-pc-guard does not create unneeded globals llvm-svn: 282735
* Silencing a Sphinx diagnostic with options, again.Aaron Ballman2016-09-271-2/+2
| | | | | | | Warning, treated as error: /opt/llvm/build.attributes.src/tools/clang/docs/CommandGuide/clang.rst:413: WARNING: unknown option: -save-stats=cwd llvm-svn: 282484
* [ASTMatcher] Clarify isStaticStorageClass and hasStaticStorageDuration ↵Haojian Wu2016-09-271-6/+14
| | | | | | | | | | | | documents. Reviewers: aaron.ballman Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D24928 llvm-svn: 282474
* CC1: Add -save-stats optionMatthias Braun2016-09-261-0/+6
| | | | | | | | | This option behaves in a similar spirit as -save-temps and writes internal llvm statistics in json format to a file. Differential Revision: https://reviews.llvm.org/D24820 llvm-svn: 282426
* [ASTMatcher] Add isStaticStorageClass matcher for varDecl and functionDecl.Haojian Wu2016-09-261-1/+29
| | | | | | | | | | Reviewers: klimek Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D24821 llvm-svn: 282415
* [docs] Touch up the coverage docs some moreVedant Kumar2016-09-221-22/+20
| | | | llvm-svn: 282169
* Third attempt to fix Sphinx botTeresa Johnson2016-09-221-1/+1
| | | | | | | Bot now complaining about -flto=thin reference, used similar workaround for that failure. llvm-svn: 282154
* Second attempt to fix Sphinx botTeresa Johnson2016-09-221-1/+1
| | | | | | | | | | | | | | | The fix in r282148 was not enough to fix the following error: /home/llvmbb/llvm-build-dir/clang-sphinx-docs/llvm/src/tools/clang/docs/CommandGuide/clang.rst:338: WARNING: unknown option: -flto=full on the sphinx bot: http://lab.llvm.org:8011/builders/clang-sphinx-docs/builds/16313 (not reproducible locally). This time, simply remove the option reference. llvm-svn: 282151
* Fixing sphinx build due to diagnostic:Aaron Ballman2016-09-221-1/+1
| | | | | | /opt/llvm/build.attributes.src/tools/clang/docs/CommandGuide/clang.rst:338: WARNING: unknown option: -flto=full llvm-svn: 282148
* [docs] Add ThinLTO user documentationTeresa Johnson2016-09-213-1/+165
| | | | | | | | | | | | Summary: Add some user facing documentation on ThinLTO and how to use it. Reviewers: mehdi_amini Subscribers: mehdi_amini, cfe-commits Differential Revision: https://reviews.llvm.org/D24806 llvm-svn: 282089
* Fix typo in documentation.Nick Lewycky2016-09-201-2/+2
| | | | | | Since this is a header it will break links to this section. llvm-svn: 281996
* [docs] Extend the code coverage docs some moreVedant Kumar2016-09-201-3/+35
| | | | | | | | Flesh out the section on interpreting coverage reports, mention the coverage export feature, and add notes on how to build llvm with coverage turned on. llvm-svn: 281988
* [docs] Touch up the code coverage docVedant Kumar2016-09-191-9/+29
| | | | llvm-svn: 281881
* [libFuzzer] use 'if guard' instead of 'if guard >= 0' with trace-pc; change ↵Kostya Serebryany2016-09-181-3/+3
| | | | | | the guard type to intptr_t; use separate array for 8-bit counters llvm-svn: 281845
* [sanitizer-coverage] change trace-pc to use 8-byte guardsKostya Serebryany2016-09-171-10/+9
| | | | llvm-svn: 281809
* [sanitizer-coverage] make trace-pc-guard and indirect-call work togetherKostya Serebryany2016-09-151-2/+5
| | | | llvm-svn: 281665
* Document option '-rtlib' in clang's man page and help infoJonas Hahnfeld2016-09-141-1/+6
| | | | | | | | | | This patch adds an entry for "-rtlib" in the output of `man clang` and `clang -help`. Patch by Lei Zhang! Differential Revision: https://reviews.llvm.org/D24069 llvm-svn: 281440
* [docs] Fix formatting of &nbsp; characters so that tables line up properly. AddRichard Smith2016-09-141-2/+4
| | | | | | | padding around table cells so the borders of adjacent tables don't run into each other (now that they're perfectly aligned). llvm-svn: 281436
* [docs] Order diagnostic cross-references alphabetically rather than based onRichard Smith2016-09-141-24/+24
| | | | | | order in the .td file. llvm-svn: 281434
* Update DiagnosticsReference and fix emitter to emit -Wpedantic diagnostics ↵Richard Smith2016-09-141-229/+249
| | | | | | and groups in a deterministic order. llvm-svn: 281433
* [sanitizer-coverage] add yet another flavour of coverage instrumentation: ↵Kostya Serebryany2016-09-141-0/+26
| | | | | | trace-pc-guard. The intent is to eventually replace all of {bool coverage, 8bit-counters, trace-pc} with just this one. Clang part llvm-svn: 281432
OpenPOWER on IntegriCloud