Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2020 23:22:36 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r362596 - head
Message-ID:  <202006242322.05ONMatQ031724@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Wed Jun 24 23:22:36 2020
New Revision: 362596
URL: https://svnweb.freebsd.org/changeset/base/362596

Log:
  Clang-format: Avoid hardcoded LLVM include-order style
  
  Reported by:	emaste

Modified:
  head/.clang-format

Modified: head/.clang-format
==============================================================================
--- head/.clang-format	Wed Jun 24 22:42:46 2020	(r362595)
+++ head/.clang-format	Wed Jun 24 23:22:36 2020	(r362596)
@@ -134,6 +134,12 @@ IncludeCategories:
   - Regex: '^\".*\.h\"'
     Priority: 10
     SortPriority: 100
+# LLVM's header include ordering style is almost the exact opposite of ours.
+# Unfortunately, they have hard-coded their preferences into clang-format.
+# Clobbering this regular expression to avoid matching prevents non-system
+# headers from being forcibly moved to the top of the include list.
+# http://llvm.org/docs/CodingStandards.html#include-style
+IncludeIsMainRegex: 'BLAH_DONT_MATCH_ANYTHING'
 SortIncludes: true
 KeepEmptyLinesAtTheStartOfBlocks: true
 TypenameMacros:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006242322.05ONMatQ031724>