[clang] [clang-format] Add MainIncludeChar option. (PR #78752)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 21 13:09:20 PST 2024


================
@@ -151,6 +151,21 @@ struct IncludeStyle {
   /// before any other include.
   /// \version 10
   std::string IncludeIsMainSourceRegex;
+
+  /// Character to consider in the include directives for the main header.
+  enum MainIncludeCharDiscriminator {
+    /// Main include uses quotes: ``#include "foo.hpp"``
+    MICD_Quote,
+    /// Main include uses brackets: ``#include <foo.hpp>``
+    MICD_Bracket,
+    /// Main include uses either quotes or brackets.
----------------
j-jorge wrote:

Done.

https://github.com/llvm/llvm-project/pull/78752


More information about the cfe-commits mailing list