]> granicus.if.org Git - clang/commitdiff
add the option IndentPPDirectives to the release notes. Landed in r312125
authorSylvestre Ledru <sylvestre@debian.org>
Tue, 5 Sep 2017 13:56:40 +0000 (13:56 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 5 Sep 2017 13:56:40 +0000 (13:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312535 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ReleaseNotes.rst

index 426c156676636855a3a026812c86ab0a2f7fa380..d84fd3a7f4db828d7f870df3428d5a68c5cfa1e2 100644 (file)
@@ -74,7 +74,7 @@ Improvements to Clang's diagnostics
 Non-comprehensive list of changes in this release
 -------------------------------------------------
 
-- Bitrig OS was merged back into OpenBSD, so Bitrig support has been 
+- Bitrig OS was merged back into OpenBSD, so Bitrig support has been
   removed from Clang/LLVM.
 
 New Compiler Flags
@@ -190,7 +190,20 @@ There are two main patterns affected by this:
 clang-format
 ------------
 
-...
+* Option *IndentPPDirectives* added to indent preprocessor directives on
+  conditionals.
+
+  +----------------------+----------------------+
+  | Before               | After                |
+  +======================+======================+
+  |  .. code-block:: c++ | .. code-block:: c++  |
+  |                      |                      |
+  |    #if FOO           |   #if FOO            |
+  |    #if BAR           |   #  if BAR          |
+  |    #include <foo>    |   #    include <foo> |
+  |    #endif            |   #  endif           |
+  |    #endif            |   #endif             |
+  +----------------------+----------------------+
 
 * Option -verbose added to the command line.
   Shows the list of processed files.