[clang-tools-extra] [clangd] Allow specifying what headers are always included via "" or <> (PR #67749)
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 24 10:02:15 PST 2024
================
@@ -296,6 +296,19 @@ struct Fragment {
// ::). All nested namespaces are affected as well.
// Affects availability of the AddUsing tweak.
std::vector<Located<std::string>> FullyQualifiedNamespaces;
+
+ /// List of regexes for headers that should always be included with a
+ /// ""-style include. By default, and in case of a conflict with
+ /// AngledHeaders (i.e. a header matches a regex in both QuotedHeaders and
+ /// AngledHeaders), system headers use <> and non-system headers use "".
+ /// These can match any suffix of the header file in question.
----------------
sam-mccall wrote:
This should mention whether we're matching against the path to the header, or its spelling.
https://github.com/llvm/llvm-project/pull/67749
More information about the cfe-commits
mailing list