| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[CMake] Rename TARGET_TRIPLE to LLVM_TARGET_TRIPLE This clarifies that this is an LLVM specific variable and avoids potential conflicts with other projects. Differential Revision: https://reviews.llvm.org/D119918 | 4 年前 | |
[clang-apply-replacements] Added an option to ignore insert conflict. If two different texts are inserted at the same offset, clang-apply-replacements prints the conflict error and discards all fixes. This patch adds support for adjusting conflict offset and keeps running to continually fix them. https://godbolt.org/z/P938EGoxj doesn't have any fixes when I run run-clang-tidy.py to generate a YAML file with clang-tidy and fix them with clang-apply-replacements. The YAML file has two different header texts insertions at the same offset, unlike clang-tidy with '-fix', clang-apply-replacements does not adjust for this conflict. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D123924 | 4 年前 | |
Update redirected output file. | 5 年前 | |
[clang-doc] Improving Markdown Output This change has two components. The moves the generated file for a namespace to the directory named after the namespace in a file named 'index.<format>'. This greatly improves the browsing experience since the index page is shown by default for a directory. The second improves the markdown output by adding the links to the referenced pages for children objects and the link back to the source code. Patch By: Clayton Differential Revision: https://reviews.llvm.org/D72954 | 6 年前 | |
[lit] Fix another test case that r374652 missed llvm-svn: 375058 | 6 年前 | |
[clang-tools-extra] NFC: Fix trivial typo in documents and comments Differential Revision: https://reviews.llvm.org/D77458 | 6 年前 | |
[clang-tooling] Prevent llvm::fatal_error on invalid CLI option Fail gracefully instead. Prevent further misuse by enforcing the factory builder instead of the constructor. Differential Revision: https://reviews.llvm.org/D94420 | 5 年前 | |
Use function prototypes when appropriate; NFC This prepares the clang-tools-extra project for -Wstrict-prototypes being enabled by default. | 4 年前 | |
[clang-tidy] Fix a false positive in readability-simplify-boolean-expr Reviewed By: LegalizeAdulthood Differential Revision: https://reviews.llvm.org/D134590 (cherry picked from commit 8c783b8ec78ec857e446a89a35463baed8026f40) | 3 年前 | |
[NFC][clang-tools-extra] Inclusive language: replace master with main [NFC] As part of using inclusive language within the llvm project, this patch replaces master with main in SubModule2.h. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D114100 | 4 年前 | |
[Lex] Introduce PPCallbacks::LexedFileChanged() preprocessor callback This is a preprocessor callback focused on the lexed file changing, without conflating effects of line number directives and other pragmas. A client that only cares about what files the lexer processes, like dependency generation, can use this more straightforward callback instead of PPCallbacks::FileChanged(). Clients that want the pragma directive effects as well can keep using FileChanged(). A use case where PPCallbacks::LexedFileChanged() is particularly simpler to use than FileChanged() is in a situation where a client wants to keep track of lexed file changes that include changes from/to the predefines buffer, where it becomes unnecessary complicated trying to use FileChanged() while filtering out the pragma directives effects callbacks. Also take the opportunity to provide information about the prior FileID the Lexer moved from, even when entering a new file. Differential Revision: https://reviews.llvm.org/D128947 | 3 年前 | |
Disable clang-format entirely for test directories See discussion here: https://github.com/llvm/llvm-project/issues/55982 And the RFC here: https://discourse.llvm.org/t/rfc-disable-clang-format-in-the-clang-test-tree/63498/2 We don't generally expect test files to be formatted according to the style guide. Indeed, some tests may require specific formatting for the purposes of the test. When tests intentionally do not conform to the "correct" formatting, this causes errors in the CI, which can drown out real errors and causes people to stop trusting the CI over time. From the history of the clang/test/.clang-format file, it looks as if there have been attempts to make clang-format do a subset of formatting that would be useful for tests. However, it looks as if it's hard to make clang-format do exactly the right thing -- see the back-and-forth between 13316a7 and 7b5bddf. These changes disable the .clang-format file for clang/test, llvm/test, and clang-tools-extra/test. Fixes #55982 Differential Revision: https://reviews.llvm.org/D128706 | 3 年前 | |
Use -text git attribute instead of text eol=... These automatic conversions lead to issues in various workflows, and all we want here are files that retain their line endings under all circumstances. -text captures that perfectly well and leads to fewer issues. It is preferable to binary, because with -text we still get textual diffs. Differential Revision: https://reviews.llvm.org/D124606 | 4 年前 | |
Fix check-clang-tools target after 7cc8377f2c572a919ecb This change was intended to add the tests check-clang and check-clang-pseudo, but afterwards it was *only* running those tests. (This was because unlike add_lit_testsuite, add_lit_testsuite*s* does not get included in umbrella suites). | 4 年前 | |
[clang-tidy] Organize test files into subdirectories by module (NFC) Eliminate clutter by reorganizing the Lit test files for clang-tidy: - Move checkers/<module>-* to checkers/<module>/*. - Move module specific inputs from Inputs to <module>/Inputs. Remove any module prefix from the file or subdirectory name as they are no longer needed. - Introduce a Lit substitution %clang_tidy_headers for the system headers in checkers/Inputs/Headers and use this throughout. This avoids referencing system headers through a relative path to the parent directory and makes it clear that these fake system headers are shared among all modules. - Update add_new_check.py to follow the above conventions when creating the boiler plate test files for a new check. - Update Contributing.rst to describe per-module Inputs directory and fix link to test source code. Differential Revision: https://reviews.llvm.org/D128072 | 3 年前 | |
[cmake] Provide CURRENT_TOOLS_DIR centrally, replacing CLANG_TOOLS_DIR CLANG_TOOLS_DIR holds the the current bin/ directory, maybe with a %(build_mode) placeholder. It is used to add the just-built binaries to $PATH for lit tests. In most cases it equals LLVM_TOOLS_DIR, which is used for the same purpose. But for a standalone build of clang, CLANG_TOOLS_DIR points at the build tree and LLVM_TOOLS_DIR points at the provided LLVM binaries. Currently CLANG_TOOLS_DIR is set in clang/test/, clang-tools-extra/test/, and other things always built with clang. This is a few cryptic lines of CMake in each place. Meanwhile LLVM_TOOLS_DIR is provided by configure_site_lit_cfg(). This patch moves CLANG_TOOLS_DIR to configure_site_lit_cfg() and renames it: - there's nothing clang-specific about the value - it will also replace LLD_TOOLS_DIR, LLDB_TOOLS_DIR etc (not in this patch) It also defines CURRENT_LIBS_DIR. While I removed the last usage of CLANG_LIBS_DIR in e4cab4e24d1, there are LLD_LIBS_DIR usages etc that may be live, and I'd like to mechanically update them in a followup patch. Differential Revision: https://reviews.llvm.org/D121763 | 4 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 4 年前 | ||
| 4 年前 | ||
| 5 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 6 年前 | ||
| 5 年前 | ||
| 4 年前 | ||
| 3 年前 | ||
| 4 年前 | ||
| 3 年前 | ||
| 3 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 3 年前 | ||
| 4 年前 |