TTom Stellard[clang][Sema] Fix a clang crash with btf_type_tag
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[docs] Update supported language standards list for C++ Differential Revision: https://reviews.llvm.org/D127065 | 4 年前 | |
[clang][docs][dataflow] Added an introduction to dataflow analysis This documentation supports the dataflow analysis framework (see "[RFC] A dataflow analysis framework for Clang AST" on cfe-dev). Since the implementation of the framework has not been committed yet, right now the doc describes dataflow analysis in general. Since this is the first markdown document in clang/docs, I added support for Markdown to clang/docs/conf.py in the same way as it is done in llvm/docs. Reviewed By: xazax.hun Differential Revision: https://reviews.llvm.org/D114231 | 4 年前 | |
[clang][analyzer] Added partial wide character support to CStringChecker Support for functions wmemcpy, wcslen, wcsnlen is added to the checker. Documentation and tests are updated and extended with the new functions. Reviewed By: martong Differential Revision: https://reviews.llvm.org/D130091 | 3 年前 | |
[clang][dataflow] Move NoopAnalysis from unittests to include This patch moves Analysis/FlowSensitive/NoopAnalysis.h from clang/unittests/ to clang/include/clang/, so that we can use it for doing context-sensitive analysis. Reviewed By: ymandel, gribozavr2, sgatev Differential Revision: https://reviews.llvm.org/D130304 | 3 年前 | |
[docs][clang] Fix a broken link on the APINotes doc This patch replaces a link with a GitHub one. Fixes llvm#55748 Differential Revision: https://reviews.llvm.org/D126599 | 4 年前 | |
[asan] Enable detect_stack_use_after_return=1 by default on Linux By default -fsanitize=address already compiles with this check, why not use it. For compatibly it can be disabled with env ASAN_OPTIONS=detect_stack_use_after_return=0. Reviewed By: eugenis, kda, #sanitizers, hans Differential Revision: https://reviews.llvm.org/D124057 | 4 年前 | |
[clang] Document objc_unsafeClaimAutoreleasedReturnValue. This has been added a few years ago but wasn't listed here. | 4 年前 | |
[NFC] Trim trailing whitespace in *.rst | 4 年前 | |
Documentation: use monospaced font in BlockLanguageSpec, and fix a link to this document llvm-svn: 170762 | 13 年前 | |
fix comment typo to cycle bots | 6 年前 | |
[clang docs] Minor fix in ClangCheck.rst Reviewers: djasper, rengolin Subscribers: Eugene.Zelenko Tags: #clang-c Differential Revision: https://reviews.llvm.org/D26484 llvm-svn: 286846 | 9 年前 | |
[DOCS] Minor fixes and removals of WIP warnings | 3 年前 | |
[docs] Document git-clang-format clang-format's documentation documented the more general clang-format-diff.py script. Add documentation for the less general but arguably easier-to-use git integration as well. Differential Revision: https://reviews.llvm.org/D129563 | 3 年前 | |
[clang-format][docs] Fix incorrect 'clang-format 7' option markers Introduced by 23a5090c6, some style option markers indicated 'clang-format 7', though their respective options were available in different releases. | 3 年前 | |
[mlir] Remove VectorToROCDL Between issues such as https://github.com/llvm/llvm-project/issues/56323, the fact that this lowering (unlike the code in amdgpu-to-rocdl) does not correctly set up bounds checks (and thus will cause page faults on reads that might need to be padded instead), and that fixing these problems would, essentially, involve replicating amdgpu-to-rocdl, remove --vector-to-rocdl for being broken. In addition, the lowering does not support many aspects of transfer_{read,write}, like supervectors, and may not work correctly in their presence. We (the MLIR-based convolution generator at AMD) do not use this conversion pass, nor are we aware of any other clients. Migration strategies: - Use VectorToLLVM - If buffer ops are particularly needed in your application, use amdgpu.raw_buffer_{load,store} A VectorToAMDGPU pass may be introduced in the future. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D129308 | 3 年前 | |
[Clang][Docs] Update the clang-linker-wrapper documentation. | 3 年前 | |
[NFC] Trim trailing whitespace in *.rst | 4 年前 | |
[clang][NFC] Fix Typo | 4 年前 | |
[CommandLine] --help: print "-o <xxx>" instead of "-o=<xxx>" Accepting -o= is a quirk of CommandLine. For --help, we should print the conventional "-o <xxx>". | 3 年前 | |
[CommandLine] --help: print "-o <xxx>" instead of "-o=<xxx>" Accepting -o= is a quirk of CommandLine. For --help, we should print the conventional "-o <xxx>". | 3 年前 | |
[docs] Add note about interaction between clang plugins and -clear-ast-before-backend Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D120666 | 4 年前 | |
[analyzer]Add user docs rst Summary: Add user documentation page. This is an empty page atm, later patches will add the specific user documentatoins. Reviewers: dkrupp Subscribers: whisperity, xazax.hun, baloghadamsoftware, szepet, rnkovacs, a.sidorin, mikhail.ramalho, Szelethus, donat.nagy, gamesh411, Charusso, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D64494 llvm-svn: 365639 | 6 年前 | |
[Branch-Rename] Fix some links According to the [[ https://foundation.llvm.org/docs/branch-rename/ | status of branch rename ]], the master branch of the LLVM repository is removed on 28 Jan 2021. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D95766 | 5 年前 | |
Add a clang-transformer tutorial Differential Revision: https://reviews.llvm.org/D114011 | 4 年前 | |
[docs] Fix warnings in ConstantInterpreter Fixed following trivial issues that caught by warnings by adding indents. clang/docs/ConstantInterpreter.rst:133: WARNING: Bullet list ends without a blank line; unexpected unindent. clang/docs/ConstantInterpreter.rst:136: WARNING: Bullet list ends without a blank line; unexpected unindent. clang/docs/ConstantInterpreter.rst:153: WARNING: Bullet list ends without a blank line; unexpected unindent. clang/docs/ConstantInterpreter.rst:195: WARNING: Bullet list ends without a blank line; unexpected unindent. clang/docs/ConstantInterpreter.rst:225: WARNING: Bullet list ends without a blank line; unexpected unindent. clang/docs/ConstantInterpreter.rst:370: WARNING: Bullet list ends without a blank line; unexpected unindent. clang/docs/ConstantInterpreter.rst:383: WARNING: Bullet list ends without a blank line; unexpected unindent. | 6 年前 | |
[NFC] Trim trailing whitespace in *.rst | 4 年前 | |
[NFC] Trim trailing whitespace in *.rst | 4 年前 | |
Update our URLs in clang doc to use https llvm-svn: 346101 | 7 年前 | |
[analyzer][NFC] Merge similar conditional paths Reviewed By: aaron.ballman, steakhal Differential Revision: https://reviews.llvm.org/D121045 | 4 年前 | |
Update all LLVM documentation mentioning runtimes in LLVM_ENABLE_PROJECTS We are moving away from building the runtimes with LLVM_ENABLE_PROJECTS, however the documentation was largely outdated. This commit updates all the documentation I could find to use LLVM_ENABLE_RUNTIMES instead of LLVM_ENABLE_PROJECTS for building runtimes. Note that in the near future, libcxx, libcxxabi and libunwind will stop supporting being built with LLVM_ENABLE_PROJECTS altogether. I don't know what the plans are for other runtimes like libc, openmp and compiler-rt, so I didn't make any changes to the documentation that would imply something for those projects. Once this lands, I will also cherry-pick this on the release/14.x branch to make sure that LLVM's documentation is up-to-date and reflects what we intend to support in the future. Differential Revision: https://reviews.llvm.org/D119351 | 4 年前 | |
[clang] Fix typos in documentation (NFC) | 4 年前 | |
Fix the Clang sphinx bot This should resolve the issues with: https://lab.llvm.org/buildbot/#/builders/92/builds/29439 | 3 年前 | |
Reverted r103214. llvm-svn: 103222 | 15 年前 | |
Driver: Replace a couple of out of date terms in the docs The Job base class was removed in r241310, so replace a couple of references to it with Command. Also change another use of Job with Action, since that's the term used in the source. llvm-svn: 241327 | 10 年前 | |
Update references to Discourse instead of the mailing lists. Update the references to the old Mailman mailing lists to point to Discourse forums. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D128766 | 3 年前 | |
Documentation: fix typo: stdard -> stdarg llvm-svn: 174613 | 13 年前 | |
[Clang] [Docs] Add HLSLSupport page This document is a first-stab at addressing some of the questions about HLSL support in Clang. Differential Revision: https://reviews.llvm.org/D123278 | 4 年前 | |
[HWASan] Mention x86_64 aliasing mode in design doc. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D98892 | 5 年前 | |
[tooling] Explain how to create a compilation database on Windows [NFC] Differential Revision: https://reviews.llvm.org/D120947 | 4 年前 | |
Update references to Discourse instead of the mailing lists. Update the references to the old Mailman mailing lists to point to Discourse forums. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D128766 | 3 年前 | |
[clang] Fix typos in documentation (NFC) | 4 年前 | |
NFC fix documentation build by rL263015 This time I hope it will fix the build for real. llvm-svn: 263052 | 10 年前 | |
[docs] [clang] Small documentation change for compilation databases We have an page dedicated to compliation databases including various ways to generate them, but we don't mention that clang has a built in method to do this. This addresses that. Reviewed By: joerg Differential Revision: https://reviews.llvm.org/D116882 | 4 年前 | |
[clang] Don't emit type test/assume for virtual classes that should never participate in WPD Reviewed By: pcc Differential Revision: https://reviews.llvm.org/D127876 | 4 年前 | |
[clang][docs] Release notes for C/C++ SVE Operators | 3 年前 | |
[lsan][docs] Clarify supported platforms Differential Revision: https://reviews.llvm.org/D100907 | 5 年前 | |
Update LibASTImporter.rst As my last commit changed the name of ImportError to ASTImportError , this section also needs to be updated so changed it. | 3 年前 | |
Update our URLs in clang doc to use https llvm-svn: 346101 | 7 年前 | |
[ASTMatchers] Adding a new matcher for callee declarations of Obj-C message expressions For an Obj-C message expression [o m], the adding matcher will match the declaration of the method m. This commit overloads the existing callee ASTMatcher, which originally was only for C/C++ nodes but also applies to Obj-C messages now. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D129398 | 3 年前 | |
[Documentation] Fixed typos in LibASTMatchers tutorial There was one missing parenthesis and a typo in the mentioned part of the documentation. Differential Revision: https://reviews.llvm.org/D124738 | 4 年前 | |
[NFC] Inclusive language: Remove instances of master in URLs [NFC] This patch fixes URLs containing "master". Old URLs were either broken or redirecting to the new URL. Reviewed By: #libc, ldionne, mehdi_amini Differential Revision: https://reviews.llvm.org/D113186 | 4 年前 | |
[Branch-Rename] Fix some links According to the [[ https://foundation.llvm.org/docs/branch-rename/ | status of branch rename ]], the master branch of the LLVM repository is removed on 28 Jan 2021. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D95766 | 5 年前 | |
[Documentation] Use HTTPS whenever possible Differential revision: https://reviews.llvm.org/D56946 llvm-svn: 351976 | 7 年前 | |
Fix "the the" typo in documentation and user facing strings There are many more instances of this pattern, but I chose to limit this change to .rst files (docs), anything in libcxx/include, and string literals. These have the highest chance of being seen by end users. Reviewed By: #libc, Mordante, martong, ldionne Differential Revision: https://reviews.llvm.org/D124708 | 4 年前 | |
[msan] Update Use-after-destruction documentation Reviewed By: kda, eugenis Differential Revision: https://reviews.llvm.org/D124058 | 4 年前 | |
[misexpect] Re-implement MisExpect Diagnostics Reimplements MisExpect diagnostics from D66324 to reconstruct its original checking methodology only using MD_prof branch_weights metadata. New checks rely on 2 invariants: 1) For frontend instrumentation, MD_prof branch_weights will always be populated before llvm.expect intrinsics are lowered. 2) for IR and sample profiling, llvm.expect intrinsics will always be lowered before branch_weights are populated from the IR profiles. These invariants allow the checking to assume how the existing branch weights are populated depending on the profiling method used, and emit the correct diagnostics. If these invariants are ever invalidated, the MisExpect related checks would need to be updated, potentially by re-introducing MD_misexpect metadata, and ensuring it always will be transformed the same way as branch_weights in other optimization passes. Frontend based profiling is now enabled without using LLVM Args, by introducing a new CodeGen option, and checking if the -Wmisexpect flag has been passed on the command line. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D115907 | 4 年前 | |
[NFC] Trim trailing whitespace in *.rst | 4 年前 | |
Fix typo. NFC. llvm-svn: 240888 | 10 年前 | |
[docs][clang] Fixing minor typo Changing "tot the" to "to the" | 4 年前 | |
Update references to Discourse instead of the mailing lists. Update the references to the old Mailman mailing lists to point to Discourse forums. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D128766 | 3 年前 | |
[OpenMP][NFC] Claim iterators in 'map' clause and motion clauses | 3 年前 | |
[Documentation] Use HTTPS whenever possible Differential revision: https://reviews.llvm.org/D56946 llvm-svn: 351976 | 7 年前 | |
Reverted r103214. llvm-svn: 103222 | 15 年前 | |
Reverted r103214. llvm-svn: 103222 | 15 年前 | |
[NFC] Trim trailing whitespace in *.rst | 4 年前 | |
Add docs/README.txt to point to llvm/docs/README.txt. llvm-svn: 171426 | 13 年前 | |
Fix small nits in clang-refactor doc. llvm-svn: 315286 | 8 年前 | |
[clang][Sema] Fix a clang crash with btf_type_tag For the following program, $ cat t.c struct t { int (__attribute__((btf_type_tag("rcu"))) *f)(); int a; }; int foo(struct t *arg) { return arg->a; } Compiling with 'clang -g -O2 -S t.c' will cause a failure like below: clang: /home/yhs/work/llvm-project/clang/lib/Sema/SemaType.cpp:6391: void {anonymous}::DeclaratorLocFiller::VisitParenTypeLoc(clang::ParenTypeLoc): Assertion Chunk.Kind == DeclaratorChunk::Paren' failed. PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: ...... #5 0x00007f89e4280ea5 abort (/lib64/libc.so.6+0x21ea5) #6 0x00007f89e4280d79 _nl_load_domain.cold.0 (/lib64/libc.so.6+0x21d79) #7 0x00007f89e42a6456 (/lib64/libc.so.6+0x47456) #8 0x00000000045c2596 GetTypeSourceInfoForDeclarator((anonymous namespace)::TypeProcessingState&, clang::QualType, clang::TypeSourceInfo*) SemaType.cpp:0:0 #9 0x00000000045ccfa5 GetFullTypeForDeclarator((anonymous namespace)::TypeProcessingState&, clang::QualType, clang::TypeSourceInfo*) SemaType.cpp:0:0 ...... The reason of the failure is due to the mismatch of TypeLoc and D.getTypeObject().Kind. For example, the TypeLoc is BTFTagAttributedType 0x88614e0 'int btf_type_tag(rcu)()' sugar |-ParenType 0x8861480 'int ()' sugar | -FunctionNoProtoType 0x8861450 'int ()' cdecl | `-BuiltinType 0x87fd500 'int' while corresponding D.getTypeObject().Kind points to DeclaratorChunk::Paren, and this will cause later assertion. To fix the issue, similar to AttributedTypeLoc, let us skip BTFTagAttributedTypeLoc in GetTypeSourceInfoForDeclarator(). Differential Revision: https://reviews.llvm.org/D136807 | 3 年前 | |
[SYCL] Enable opencl_global_[host,device] attributes for SYCL Differential Revision: https://reviews.llvm.org/D100396 | 5 年前 | |
[Clang][Doc][SafeStack] Fix deadlink (NFC) | 4 年前 | |
[NFC] Trim trailing whitespace in *.rst | 4 年前 | |
[sanitizer] Add "mainfile" prefix to sanitizer special case list When an issue exists in the main file (caller) instead of an included file (callee), using a src pattern applying to the included file may be inappropriate if it's the caller's responsibility. Add mainfile prefix to check the main filename. For the example below, the issue may reside in a.c (foo should not be called with a misaligned pointer or foo should switch to an unaligned load), but with src we can only apply to the innocent callee a.h. With this patch we can use the more appropriate mainfile:a.c. //--- a.h // internal linkage static inline int load(int *x) { return *x; } //--- a.c, -fsanitize=alignment #include "a.h" int foo(void *x) { return load(x); } See the updated clang/docs/SanitizerSpecialCaseList.rst for a caveat due to C++ vague linkage functions. Reviewed By: #sanitizers, kstoimenov, vitalybuka Differential Revision: https://reviews.llvm.org/D129832 | 3 年前 | |
[docs] -fsanitize=cfi only allowed with -fvisibility= llvm-svn: 334870 | 7 年前 | |
Delete x86_64 ShadowCallStack support Summary: ShadowCallStack on x86_64 suffered from the same racy security issues as Return Flow Guard and had performance overhead as high as 13% depending on the benchmark. x86_64 ShadowCallStack was always an experimental feature and never shipped a runtime required to support it, as such there are no expected downstream users. Reviewers: pcc Reviewed By: pcc Subscribers: mgorny, javed.absar, hiraditya, jdoerfert, cfe-commits, #sanitizers, llvm-commits Tags: #clang, #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D59034 llvm-svn: 355624 | 7 年前 | |
Coverage: Document how to collect a profile without a filesystem The profiling runtime was designed to work without static initializers or a a filesystem (see 117cf2bd1ff585f9754b5f30f5a4cfd65b230bbf and others). The no-static-initializers part was already documented but this part got missed before. Differential Revision: https://reviews.llvm.org/D101000 | 5 年前 | |
[docs] Add "Standard C++ Modules" We get some standard C++ module things done in clang15.x. But we lack a user documentation for it. The implementation of standard C++ modules share a big part of codes with clang modules. But they have very different semantics and user interfaces, so I think it is necessary to add a document for Standard C++ modules. Previously, there were also some people ask the document for standard C++ Modules and I couldn't offer that time. Reviewed By: iains, Mordante, h-vetinari, ruoso, dblaikie, JohelEGP, aaronmondal Differential Revision: https://reviews.llvm.org/D131388 (cherry picked from commit b1d5af81249dc7e5697faf9ee33f86012ccd8668) | 3 年前 | |
[clang] Fix sentence in the usage section of ThinLTO docs. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D110750 | 4 年前 | |
[clang][docs] Inclusive language: remove use of sanity check in option description Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D114562 | 4 年前 | |
[tsan] Add support for disable_sanitizer_instrumentation attribute Unlike __attribute__((no_sanitize("thread"))), this one will cause TSan to skip the entire function during instrumentation. Depends on https://reviews.llvm.org/D108029 Differential Revision: https://reviews.llvm.org/D108202 | 4 年前 | |
Update all LLVM documentation mentioning runtimes in LLVM_ENABLE_PROJECTS We are moving away from building the runtimes with LLVM_ENABLE_PROJECTS, however the documentation was largely outdated. This commit updates all the documentation I could find to use LLVM_ENABLE_RUNTIMES instead of LLVM_ENABLE_PROJECTS for building runtimes. Note that in the near future, libcxx, libcxxabi and libunwind will stop supporting being built with LLVM_ENABLE_PROJECTS altogether. I don't know what the plans are for other runtimes like libc, openmp and compiler-rt, so I didn't make any changes to the documentation that would imply something for those projects. Once this lands, I will also cherry-pick this on the release/14.x branch to make sure that LLVM's documentation is up-to-date and reflects what we intend to support in the future. Differential Revision: https://reviews.llvm.org/D119351 | 4 年前 | |
Update our URLs in clang doc to use https llvm-svn: 346101 | 7 年前 | |
Fix "the the" typo in documentation and user facing strings There are many more instances of this pattern, but I chose to limit this change to .rst files (docs), anything in libcxx/include, and string literals. These have the highest chance of being seen by end users. Reviewed By: #libc, Mordante, martong, ldionne Differential Revision: https://reviews.llvm.org/D124708 | 4 年前 | |
[clang] Document -femit-compact-unwind option in the User’s Manual Reviewed By: #lld-macho, thakis Differential Revision: https://reviews.llvm.org/D129772 | 3 年前 | |
[docs] Remove hard-coded version numbers from sphinx configs This updates all the non-runtime project release notes to use the version number from CMake instead of the hard-coded version numbers in conf.py. It also hides warnings about pre-releases when the git suffix is dropped from the LLVM version in CMake. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D112181 | 4 年前 | |
[docs] Add missing file llvm-svn: 262604 | 10 年前 | |
[NFC] Inclusive Language: change master to main for .chm files [NFC] As part of using inclusive language within the llvm project, this patch replaces master with main when referring to .chm files. Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D113299 | 4 年前 | |
[docs] Add "Standard C++ Modules" We get some standard C++ module things done in clang15.x. But we lack a user documentation for it. The implementation of standard C++ modules share a big part of codes with clang modules. But they have very different semantics and user interfaces, so I think it is necessary to add a document for Standard C++ modules. Previously, there were also some people ask the document for standard C++ Modules and I couldn't offer that time. Reviewed By: iains, Mordante, h-vetinari, ruoso, dblaikie, JohelEGP, aaronmondal Differential Revision: https://reviews.llvm.org/D131388 (cherry picked from commit b1d5af81249dc7e5697faf9ee33f86012ccd8668) | 3 年前 | |
docs: Initial Sphinx setup for Clang. I don't think this will be visible just yet on <clang.llvm.org/docs/> since I don't think that the necessary server-side setup has taken place. Don't shoot me over the theme. I don't want to duplicate LLVM's theme into the clang repo at the moment, so I just used one of Sphinx's default themes. llvm-svn: 170042 | 13 年前 |
See llvm/docs/README.txt