mirror-llvm-project/clang-tools-extra
Corentin Jabot e24eb10725
[Clang] Treat line directives as header names. (#211512)
We treated line directives as being unevaluated string literal. However
- The standard has no such restriction - or rather the standard has
different, unclear restriction (https://wg21.link/CWG2693)
- Because of Windows paths, it's common for "C:\foo\bar" to be used, and
these should not form escape sequences.

To remain consistent with other implementations, we do not allow `#line
1 <>` at this time. We do however support `#line 1 ""` to avoid a
breaking change.

Fixes a regression introduced by #201413
2026-07-29 19:04:17 +02:00
..
clang-apply-replacements [clang-apply-replacements] Change cleanup to only happen with --format (#178763) 2026-02-05 18:54:44 -08:00
clang-change-namespace [Tooling][clang-tools-extra] Consume CommonOptionsParser errors in tools (#193675) 2026-04-24 13:25:26 +08:00
clang-doc Fix clang-doc crash when comment contains invalid UTF-8 bytes (#210886) 2026-07-25 05:20:11 +08:00
clang-include-fixer [Tooling][clang-tools-extra] Consume CommonOptionsParser errors in tools (#193675) 2026-04-24 13:25:26 +08:00
clang-move Associate documentation comments with macro definitions (#198452) 2026-05-21 14:49:40 -07:00
clang-query
clang-reorder-fields [Tooling][clang-tools-extra] Consume CommonOptionsParser errors in tools (#193675) 2026-04-24 13:25:26 +08:00
clang-tidy [clang-tidy] Support Markdown documentation in rename_check.py (#210577) 2026-07-26 20:51:23 +08:00
clangd [Clang] Treat line directives as header names. (#211512) 2026-07-29 19:04:17 +02:00
docs [clang-tidy][docs] Fix broken redundant-void-arg documentation. NFC. (#212692) 2026-07-29 15:54:54 +08:00
include-cleaner [include-cleaner] Support ObjC interface and protocol declarations in LocateSymbol (#212617) 2026-07-28 23:19:34 +02:00
modularize Remove unused variables in the monorepo (#204994) 2026-06-24 11:50:30 +02:00
pp-trace [Clang-tools-extra] Add missing values to CharacteristicKindStrings (#205455) 2026-06-25 10:55:10 -07:00
test [clang-tidy] Fix nested macro false positives in misc-redundant-expression (#209385) 2026-07-26 12:37:48 +00:00
tool-template
unittests [clang-format][clang-tools-extra] Fix leaking of host-level config into test environment (#206358) 2026-07-23 13:59:53 +08:00
.gitignore
CMakeLists.txt reapply "[clang-tidy] support query based custom check" (#159547) 2025-09-19 21:47:57 +08:00
LICENSE.TXT
Maintainers.md [clang-tools-extra][docs] Convert maintainers file to Markdown (#200365) 2026-06-01 11:13:00 +01:00
README.txt [clang-tools-extra][NFC] Fix link to code review in README.txt (#148384) 2025-07-17 18:38:05 +03: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.

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

Code review for this tree should take place on Github:
  https://github.com/llvm/llvm-project/pulls?q=label%3Aclang-tools-extra

If you find a bug in these tools, please file it in the LLVM bug tracker:
  https://github.com/llvm/llvm-project/issues/