6 Commits

Author SHA1 Message Date
Kadir Cetinkaya
e7b4b437fb
[include-cleaner] Use filename as requested, not resolved path
This was an unintended change in d5297b72aa32ad3a69563a1fcc61294282f0b379.
We don't want to resolve symlinks in filenames, as these might lead to
unexpected spellings, compared to requested filenames.
2024-06-19 12:04:42 +02:00
kadir çetinkaya
d5297b72aa
[include-cleaner] Pass WorkingDir to suggestPathToFileForDiagnostics (#95114)
Addresses https://github.com/llvm/llvm-project/issues/81215.
2024-06-14 15:45:04 +02:00
David Goldman
9fe632ba18 [clang][HeaderSearch] Treat framework headers as Angled for suggestPath
- Rename the IsSystem flag to be IsAngled since that's how callers
  actually use the flag.

- Since frameworks by convention use <> style includes, make sure
  we treat them as Angled

Also update clangd's custom logic for frameworks accordingly.

Differential Revision: https://reviews.llvm.org/D156704
2023-08-09 15:51:02 -04:00
Simon Pilgrim
b0fd2fd816 [include_cleaner] IncludeSpeller.cpp - fix MSVC "not all control paths return a value" warning. NFC. 2023-07-24 10:37:59 +01:00
Sam McCall
ab4e461353 [include-cleaner] allow spelling strategies to customize verbatim/system headers
Our use case is wanting to apply a spelling strategy to rewrite the spellings
written in IWYU pragma private directives.

Differential Revision: https://reviews.llvm.org/D155671
2023-07-22 02:36:29 +02:00
Viktoriia Bakalova
90c5fe9822 [include-cleaner] Allow multiple strategies for spelling includes.
Summary:

Reviewers:

Subscribers:

Differential Revision: https://reviews.llvm.org/D150185
2023-06-05 09:47:12 +00:00