llvm/clang-tools-extra
Kadir Cetinkaya 50f4f32b56
[clangd] Retain main file fixes attached to diags from preamble
Clangd ignores fixits if the diagnsotics is outside the main file (e.g.
a note on a declaration from a header), but the fix might still be inside the
main file (e.g. change the function call).

This patch changes the logic to retain fixes that touch main file, if the
diagnostic owning them is still inside main file, even if they are attached to a
note outside the main file.

Differential Revision: https://reviews.llvm.org/D122315
2022-03-24 15:19:25 +01:00
..
clang-apply-replacements [clang-tools-extra] Remove unused forward declarations (NFC) 2022-01-30 16:05:00 -08:00
clang-change-namespace
clang-doc [clang-doc] SerializeIndex - pass Index param by constant reference 2022-02-17 13:28:02 +00:00
clang-include-fixer [clang-tools-extra][cmake] Use GNUInstallDirs to support custom installation dirs. 2022-01-22 20:57:21 +00:00
clang-move
clang-query
clang-reorder-fields
clang-tidy [clang-tidy] Fix false positives in misc-redundant-expression check 2022-03-23 00:32:45 +01:00
clangd [clangd] Retain main file fixes attached to diags from preamble 2022-03-24 15:19:25 +01:00
docs [clang-tidy] Fix false positives in misc-redundant-expression check 2022-03-23 00:32:45 +01:00
modularize [clang-tools-extra][cmake] Use GNUInstallDirs to support custom installation dirs. 2022-01-22 20:57:21 +00:00
pp-trace [clang][lex] Remove PPCallbacks::FileNotFound() 2022-02-15 09:48:25 +01:00
pseudo [pseudo] Introduce parse forest. 2022-03-24 14:47:17 +01:00
test [clang-tidy] Fix false positives in misc-redundant-expression check 2022-03-23 00:32:45 +01:00
tool-template
unittests [libTooling] Generalize string explanation as templated metadata 2022-03-21 20:39:35 +00:00
.gitignore
CMakeLists.txt Reapply [pseudo] Move pseudoparser from clang to clang-tools-extra" 2022-03-16 01:10:55 +01:00
CODE_OWNERS.TXT
LICENSE.TXT
README.txt Replace links to archived mailing lists by links to Discourse forums 2022-03-23 10:10:20 -04:00

//===----------------------------------------------------------------------===//
// Clang Tools repository
//===----------------------------------------------------------------------===//

Welcome to the repository of extra Clang Tools.  This repository holds tools
that are developed as part of the LLVM compiler infrastructure project and the
Clang frontend.  These tools are kept in a separate "extra" repository to
allow lighter weight checkouts of the core Clang codebase.

This repository is only intended to be checked out inside of a full LLVM+Clang
tree, and in the 'tools/extra' subdirectory of the Clang checkout.

All discussion regarding Clang, Clang-based tools, and code in this repository
should be held using the standard Clang forum:
  https://discourse.llvm.org/c/clang

Code review for this tree should take place on the standard Clang patch and
commit lists:
  http://lists.llvm.org/mailman/listinfo/cfe-commits

If you find a bug in these tools, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/