[llvm-branch-commits] [clang] 261253a - [Clang][docs] Add preprocessor changes to ReleaseNotes.

Michael Kruse via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Mar 2 11:03:14 PST 2022


Author: Michael Kruse
Date: 2022-03-02T13:01:28-06:00
New Revision: 261253aa60cc10f21788fb55ae27152242a65989

URL: https://github.com/llvm/llvm-project/commit/261253aa60cc10f21788fb55ae27152242a65989
DIFF: https://github.com/llvm/llvm-project/commit/261253aa60cc10f21788fb55ae27152242a65989.diff

LOG: [Clang][docs] Add preprocessor changes to ReleaseNotes.

Added: 
    

Modified: 
    clang/docs/ReleaseNotes.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 869d62aebfb18..a6cbf25fd48a5 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -76,6 +76,9 @@ Non-comprehensive list of changes in this release
 - Configuration file syntax extended with ``<CFGDIR>`` token. This expands to
   the base path of the current config file. See :ref:`configuration-files` for
   details.
+- The ``-E -P`` preprocessor output now always omits blank lines, matching
+  gcc behaviour. Previously, up to 8 consecutive blank lines could appear
+  in the output.
 
 New Compiler Flags
 ------------------
@@ -91,6 +94,14 @@ New Compiler Flags
   outside of such a region.
 - ``-falign-loops=N`` (N is a power of 2) is now supported for non-LTO cases.
   (`D106701 <https://reviews.llvm.org/D106701>`_)
+- The ``-fminimize-whitespace`` flag allows removing redundant whitespace
+  from preprocessor output (``-E`` flag). When combined with ``-P``, this
+  includes newlines. Otherwise, only indention is removed (other horizontal
+  whitespace is always collapsed).
+  The motivation is to improve compiler cache hit rate by becoming invariant
+  to whitespace changes, such as reformatting using clang-format. Patches
+  for `ccache <https://github.com/ccache/ccache/pull/815>`_ and
+  `sccache <https://github.com/mozilla/sccache/pull/1055>`_ are under review.
 
 Deprecated Compiler Flags
 -------------------------


        


More information about the llvm-branch-commits mailing list