| Retrieve BinaryOperator::getOpcode and BinaryOperator::getOpcodeStr via libclang and its python interface (#98489) This is a rework of patch [D10833](https://reviews.llvm.org/D10833) previously posted on LLVM Phabricator by arthurp in 2015. It allows to retrieve the type of binary operator via libclangs python bindings. I did clean up the changes, removed unrelated changes and rebased the changeset to the latest main branch. As this is my first contribution to the LLVM project, let me know if any required tests or documentation are missing. | 2 年前 |
| workflows/release-binaries: Use static ZSTD on macOS On macOS the shared zstd library points to a homebrew install that isn't very stable for users. (cherry picked from commit 748f5404ccdf28d4beef37efdaeba7a1701ab425) | 1 年前 |
| Fix std::initializer_list recognition if it's exported out of a module - Add implementation - Add a regression test - Add release notes | 1 年前 |
| [clang][examples] Fix build failure (NFC) /llvm-project/clang/examples/LLVMPrintFunctionNames/LLVMPrintFunctionNames.cpp:36:20: error: cannot use incomplete type 'llvm::Module' as a range for (auto &F : M) ^ | 2 年前 |
| added all modifications made for msdebug | 7 个月前 |
| added all modifications made for msdebug | 7 个月前 |
| [NFC][cmake] Sort COMPILER_RT_TEST_SUITES | 2 年前 |
| Fix print module manifest file for macos (#122370) This commit fixes -print-library-module-manifest-path on macos. Currently, this only works on linux systems. This is because on macos systems the library and header files are installed in a different location. The module manifest is next to the libraries and the search function was not looking in both places. There is also a test included. (cherry picked from commit acbd822879f7727127926c25e1b47f5017f962c5) | 1 年前 |
| [clang-scan-deps] Don't inspect Args[0] as an option (#109050) Since a26ec542371652e1d774696e90016fd5b0b1c191, we expand the executable name to an absolute path, if it isn't already one, if found in path. This broke a couple tests in some environments; when the clang workdir resides in a path under e.g. /opt. Tests that only use a tool name like "clang-cl" would get expanded to the absolute path in the build tree. The loop for finding the last "-o" like option for clang-cl command lines would inspect all arguments, including Args[0] which is the executable name itself. As an /opt path matches Arg.starts_with("/o"), this would get detected as an object file output name in cases where there was no other explicit output argument. Thus, this fixes those tests in workdirs under e.g. /opt. (cherry picked from commit cead9044a995910306e2e64b426fcc8042d7e0ef) | 1 年前 |
| [clang-format] Fix idempotent format of hash in macro body (#118513) Fixes #118334. (cherry picked from commit 54ca1c4212e7ff3df880adb1a04dc3d41c033681) | 1 年前 |
| [Clang][perf-training] Fix clean command in perf-helper.py (#118978) The first path argument was always being ignored, and since most calls to this command only passed one path, it wasn't actually doing anything in most cases. This bug was introduced by dd0356d741aefa25ece973d6cc4b55dcb73b84b4. (cherry picked from commit 18af3fc1bf8855e1e166e64a9210ed07d610aa54) | 1 年前 |
| Revert "[Clang] Implement P3034R1 Module Declarations Shouldn’t be Macros" (#99838) Reverts llvm/llvm-project#90574 | 1 年前 |
| Switch the default mode for clang-format to '-file'. Make 'LLVM' the fallback syntax used when we fail to find a '.clang-format' file. Adjust variable names appropriately. Update the editor integration pieces that specify a '-style' option to specify it as '-style=file'. I left the functionality in place because even if the preferred method is to use '.clang-format' files, this way if someone needs to clobber the style in their editor we show how to do so in these examples. Also check in a '.clang-format' file for Clang to ensure that separate checkouts and builds of Clang from LLVM can still get the nice formatting. =] This unfortunately required nuking the test for the absence of a '.clang-format' file as now the directory happening to be under your clang source tree will cause there to always be a file. ;] llvm-svn: 189741 | 12 年前 |
| [Clang] Revert inintentional changes to cmake committed in 33e5db6e0 | 2 年前 |
| Remove .gitignore entries not relevant in the monorepo. Differential Revision: https://reviews.llvm.org/D100049 | 5 年前 |
| [clang] Don't use -Wno-nested-anon-types on GCC (#95029) GCC usually doesn't warn about unrecognized -Wno-<foo> options, if no diagnostics are printed. However if some diagnostics are printed, it also mentions that there were unrecognized -Wno-<foo> options. Before 4feae05c6abda364a9295aecfa600d7d4e7dfeb6, we checked for whether -Wnested-anon-types was supported, and added the -Wno-<foo> form if the positive form of the option was supported. As of GCC 14, -Wnested-anon-types isn't supported, thus limit the use of the option to actual Clang (and still only while using the GCC compatible driver). This avoids unnecessary mentions about unrecognized -Wno-<foo> options when building with GCC. | 2 年前 |
| [clang][Docs] Add my Discourse + Discord name And escape the @ in my email | 2 年前 |
| Honor system specific paths of MAN pages Summary: Caught on NetBSD. Patch by: Kamil Rytarowski (krytarowski) Reviewers: beanz, jroelofs Subscribers: cfe-commits, joerg Differential Revision: http://reviews.llvm.org/D14800 llvm-svn: 253693 | 10 年前 |
| Fix typos throughout the license files that somehow I and my reviewers all missed! Thanks to Alex Bradbury for pointing this out, and the fact that I never added the intended legacy anchor to the developer policy. Add that anchor too. With hope, this will cause the links to all resolve successfully. llvm-svn: 351731 | 7 年前 |
| Revert "Test commit config" Undoing test commit. This reverts commit 3e50bcb44b7e850032d928ce53a582891336bc87. | 2 年前 |
| [clang] README.txt: Replace the link to the old bug tracker with the new one. (#93878) | 2 年前 |