summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kruse <llvm-project@meinersbur.de>2022-03-02 12:47:42 -0600
committerMichael Kruse <llvm-project@meinersbur.de>2022-03-02 13:01:28 -0600
commit261253aa60cc10f21788fb55ae27152242a65989 (patch)
tree7080873c559ffc926be1458cd6d23ef1d3a5437c
parent967296bfefee9740b1dfb4644970d776e1b37b5b (diff)
[Clang][docs] Add preprocessor changes to ReleaseNotes.
-rw-r--r--clang/docs/ReleaseNotes.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 869d62aebfb1..a6cbf25fd48a 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
-------------------------