summaryrefslogtreecommitdiffstats
path: root/clang/docs
Commit message (Collapse)AuthorAgeFilesLines
...
* Wrap clang module files in a Mach-O, ELF, or COFF container.Adrian Prantl2015-02-201-0/+3
| | | | | | | | | | | This is a necessary prerequisite for debugging with modules. The .pcm files become containers that hold the serialized AST which allows us to store debug information in the module file that can be shared by all object files that were built importing the module. rdar://problem/19104245 llvm-svn: 230044
* Add -fno-implicit-modules.Manuel Klimek2015-02-201-0/+6
| | | | | | | If this flag is set, we error out when a module build is required. This is useful in environments where all required modules are passed via -fmodule-file. llvm-svn: 230006
* [docs] Recommend to use CMake for building sanitizers.Alexey Samsonov2015-02-183-6/+3
| | | | llvm-svn: 229754
* Revert "Remove support for building sanitizers from Makefile/autoconf build."Matthias Braun2015-02-173-3/+6
| | | | | | | | | This reverts commit r229554. Reverting this commit for now as several apple internal builds still rely on this functionality. llvm-svn: 229582
* Remove support for building sanitizers from Makefile/autoconf build.Alexey Samsonov2015-02-173-6/+3
| | | | | | | | They autotools build has a number of missing features, supports less OS, architectures, build configurations, doesn't have any tests and is hard to support in sync with CMake build. llvm-svn: 229554
* Fix amount of diagnostic classesAlex Denisov2015-02-111-1/+1
| | | | llvm-svn: 228814
* Add translationUnitDecl matcher.Samuel Benzaquen2015-02-101-31/+54
| | | | | | | | | | | | Summary: Add translationUnitDecl matcher. Reviewers: alexfh Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D7512 llvm-svn: 228694
* Replace DeclContext::getNextContext with DeclContext::collectAllContextsYaron Keren2015-02-071-5/+7
| | | | | | in the Clang CFE Internals Manual (done in r147729). llvm-svn: 228510
* Fix broken doc link to Clang 3.5 release notesReid Kleckner2015-01-261-1/+1
| | | | | | | | We appear to use 3.5.0 in the directory structure now. That's probably unnecessary. We should probably let the micro releases update the docs for the same minor version. llvm-svn: 227127
* [msan] Remove MSanDR reference from the manual.Evgeniy Stepanov2015-01-261-9/+1
| | | | | | It is no longer supported. llvm-svn: 227078
* docs/conf.py: update for 3.7Hans Wennborg2015-01-141-2/+2
| | | | llvm-svn: 226010
* ReleaseNotes.rst: update to 3.7Hans Wennborg2015-01-141-10/+6
| | | | | | The 3.6 release notes are in the 3.6 branch. llvm-svn: 226009
* Mention FreeBSD support.Roman Divacky2015-01-131-0/+1
| | | | llvm-svn: 225834
* Reimplement -fsanitize-recover family of flags.Alexey Samsonov2015-01-121-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | Introduce the following -fsanitize-recover flags: - -fsanitize-recover=<list>: Enable recovery for selected checks or group of checks. It is forbidden to explicitly list unrecoverable sanitizers here (that is, "address", "unreachable", "return"). - -fno-sanitize-recover=<list>: Disable recovery for selected checks or group of checks. - -f(no-)?sanitize-recover is now a synonym for -f(no-)?sanitize-recover=undefined,integer and will soon be deprecated. These flags are parsed left to right, and mask of "recoverable" sanitizer is updated accordingly, much like what we do for -fsanitize= flags. -fsanitize= and -fsanitize-recover= flag families are independent. CodeGen change: If there is a single UBSan handler function, responsible for implementing multiple checks, which have different recoverable setting, then we emit two handler calls instead of one: the first one for the set of "unrecoverable" checks, another one - for set of "recoverable" checks. If all checks implemented by a handler have the same recoverability setting, then the generated code will be the same. llvm-svn: 225719
* Fix markup from r224894.Nico Weber2014-12-281-6/+6
| | | | llvm-svn: 224895
* Add stub sections about Parse, Sema, CodeGen to the internals manual.Nico Weber2014-12-281-0/+32
| | | | | | | | | | I'd be interested if the paragraph on Parse not knowing much about AST is something folks agree with. I think this used to be true after rjmccall removed the Action interface in r112244 and I believe it's still true, but I'm not sure. (For example, ParseOpenMP.cpp does include AST/StmtOpenMP.h. Other than that, Parse not using AST nodes much seems to be still true, though.) llvm-svn: 224894
* Amending r223468 with this documentation change.Aaron Ballman2014-12-051-2/+2
| | | | llvm-svn: 223479
* Modify __has_attribute so that it only looks for GNU-style attributes. ↵Aaron Ballman2014-12-051-1/+5
| | | | | | Removes the ability to look for generic attributes and keywords via this macro, which has the potential to be a breaking change. However, since there is __has_cpp_attribute and __has_declspec_attribute, and given the limited usefulness of querying a generic attribute name regardless of syntax, this seems like the correct path forward. llvm-svn: 223468
* Added a new preprocessor macro: __has_declspec_attribute. This can be used ↵Aaron Ballman2014-12-051-0/+27
| | | | | | as a way to determine whether Clang supports a __declspec spelling for a given attribute, similar to __has_attribute and __has_cpp_attribute. llvm-svn: 223467
* Add support for has_feature(cxx_alignof) and has_feature(c_alignof).Nico Weber2014-12-031-0/+6
| | | | | | | r142020 added support for has_feature(cxx_alignas). This does the same for alignof. llvm-svn: 223186
* clang-format: Escape '*' in generated flag documentation.Daniel Jasper2014-12-022-1/+2
| | | | llvm-svn: 223118
* clang-format: Add option to suppress operator alignment.Daniel Jasper2014-12-021-1/+17
| | | | | | | | | | | | | | | | With alignment: int aaaaaa = aa + bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb * cccccccccccccccccccccccccccccccc; Without alignment: int aaaaaa = aa + bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb * cccccccccccccccccccccccccccccccc; This fixes llvm.org/PR21666. llvm-svn: 223117
* Re-apply r222646 (was reverted in r222667). Adding 4 ASTMatchers: ↵Manuel Klimek2014-11-251-1/+146
| | | | | | | | | | | | | | | | | | | | | | | typedefDecl, isInMainFile, isInSystemFile, isInFileMatchingName Change to original: ifndef out tests in Windows due to /-separated paths. Summary: Often one is only interested in matches within the main-file or matches that are not within a system-header, for which this patch adds isInMainFile and isInSystemFile. They take no arguments and narrow down the matches. The isInFileMatchingName is mainly thought for interactive clang-query-sessions, to make a matcher more specific without restarting the session with the files you are interested in for that moment. It takes a string that will be used as regular-expression to match the filename of where the matched node is expanded. Patch by Hendrik von Prince. llvm-svn: 222765
* Add flag -f(no-)modules-implicit-maps.Daniel Jasper2014-11-251-0/+3
| | | | | | | This suppresses the implicit search for files called 'module.modulemap' and similar. llvm-svn: 222745
* MS ABI: Add CodeGen support for rethrowing MS C++ exceptionsDavid Majnemer2014-11-251-2/+3
| | | | | | | | | | Rethrowing exceptions in the MS model is very simple: just call _CxxThrowException with nullptr for both arguments. N.B. They chose stdcall as the calling convention for x86 but cdecl for all other platforms. llvm-svn: 222733
* docs: Update the MSVCCompatibility doc for changes to debug infoDavid Majnemer2014-11-251-4/+7
| | | | | | The document should reflect that we now support emission for DWARF. llvm-svn: 222731
* Reverting r222646; the tests do not pass on Windows. Also reverts r222664, ↵Aaron Ballman2014-11-241-146/+1
| | | | | | which was required for r222646 to compile with Visual Studio 2012. llvm-svn: 222667
* Adding 4 ASTMatchers: typedefDecl, isInMainFile, isInSystemFile, ↵Manuel Klimek2014-11-241-1/+146
| | | | | | | | | | | | | | | | | | | | isInFileMatchingName Summary: Often one is only interested in matches within the main-file or matches that are not within a system-header, for which this patch adds isInMainFile and isInSystemFile. They take no arguments and narrow down the matches. The isInFileMatchingName is mainly thought for interactive clang-query-sessions, to make a matcher more specific without restarting the session with the files you are interested in for that moment. It takes a string that will be used as regular-expression to match the filename of where the matched node is expanded. Patch by Hendrik von Prince. llvm-svn: 222646
* Oops, the underline was too short for sphinx to like.Aaron Ballman2014-11-141-1/+1
| | | | llvm-svn: 221993
* Correcting some grammar and typos, and adding CERT as a collaborator.Aaron Ballman2014-11-141-5/+5
| | | | llvm-svn: 221992
* Complete support for the SD-6 standing document (based off N4200) with ↵Aaron Ballman2014-11-141-0/+30
| | | | | | support for __has_cpp_attribute. llvm-svn: 221991
* Update Clang's SD-6 support to match N4200 (except for __has_cpp_attribute,Richard Smith2014-11-121-0/+14
| | | | | | which we don't yet implement). llvm-svn: 221816
* docs: remove double carriage-returnSaleem Abdulrasool2014-11-021-2/+2
| | | | | | | The double carriage return would silence a warning due to a missing .clang-format. Permit the error to bubble through. llvm-svn: 221107
* clang-format: Update generated documentation with new flag.Daniel Jasper2014-10-281-0/+3
| | | | llvm-svn: 220786
* clang-format: improve vim integration docsSaleem Abdulrasool2014-10-271-2/+2
| | | | | | | | | | Improve the documentation for vim integration of clang-format. Prefer the use of <c-o> to do the normal mode command execution to avoid side-effects of the escape and re-insertion (cursor movement). Tweak the macros to use a double return to avoid having to manually return control to the editor from the subprocess. llvm-svn: 220685
* [modules] Support combining 'textual' with 'private'.Richard Smith2014-10-241-6/+5
| | | | llvm-svn: 220589
* Update the documentation for API change to CreateASTConsumer the rest of the ↵Nick Lewycky2014-10-221-5/+8
| | | | | | way. llvm-svn: 220450
* [modules] Add support for 'textual header' directives.Richard Smith2014-10-221-5/+14
| | | | | | | | This allows a module to specify that it logically contains a file, but that said file is non-modular and intended for textual inclusion. This allows layering checks to work properly in the presence of such files. llvm-svn: 220448
* Add missing qualifier to documentation.Nick Lewycky2014-10-211-1/+1
| | | | llvm-svn: 220268
* Update documentation to match API change in r215323.Nick Lewycky2014-10-211-1/+1
| | | | llvm-svn: 220267
* Switch C compilations to C11 by default.Richard Smith2014-10-201-4/+12
| | | | | | | | This is long-since overdue, and matches GCC 5.0. This should also be backwards-compatible, because we already supported all of C11 as an extension in C99 mode. llvm-svn: 220244
* [modules] Add support for #include_next.Richard Smith2014-10-201-0/+13
| | | | | | | | | | | | #include_next interacts poorly with modules: it depends on where in the list of include paths the current file was found. Files covered by module maps are not found in include search paths when building the module (and are not found in include search paths when @importing the module either), so this isn't really meaningful. Instead, we fake up the result that #include_next *should* have given: find the first path that would have resulted in the given file being picked, and search from there onwards. llvm-svn: 220177
* [ASan] Improve blacklisting of global variables.Alexey Samsonov2014-10-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | This commit changes the way we blacklist global variables in ASan. Now the global is excluded from instrumentation (either regular bounds checking, or initialization-order checking) if: 1) Global is explicitly blacklisted by its mangled name. This part is left unchanged. 2) SourceLocation of a global is in blacklisted source file. This changes the old behavior, where instead of looking at the SourceLocation of a variable we simply considered llvm::Module identifier. This was wrong, as identifier may not correspond to the file name, and we incorrectly disabled instrumentation for globals coming from #include'd files. 3) Global is blacklisted by type. Now we build the type of a global variable using Clang machinery (QualType::getAsString()), instead of llvm::StructType::getName(). After this commit, the active users of ASan blacklist files may have to revisit them (this is a backwards-incompatible change). llvm-svn: 220097
* Fix documentation typo.JF Bastien2014-10-101-1/+1
| | | | llvm-svn: 219509
* Implement various matchers around template argument handling.Manuel Klimek2014-10-091-0/+103
| | | | llvm-svn: 219408
* Escaping a special character in the documentation.Aaron Ballman2014-10-091-1/+1
| | | | llvm-svn: 219407
* clang-format: Add option to control call argument bin-packing separatelyDaniel Jasper2014-10-091-3/+9
| | | | | | | This is desirable for the Chromium style guide: http://www.chromium.org/developers/coding-style llvm-svn: 219400
* clang-format: Add documentation about disabling formatting.Daniel Jasper2014-10-071-0/+18
| | | | | | Patch by Marek Kurdej, thanks! llvm-svn: 219204
* Update title of the ReleaseNodes doc.Eli Bendersky2014-10-061-1/+1
| | | | | | It was still "3.5 (In-Progress)" - should be 3.6 llvm-svn: 219153
* [sphinx clean up] Fix warning introduced by r218957Dan Liew2014-10-031-1/+1
| | | | llvm-svn: 218983
OpenPOWER on IntegriCloud