summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPaul Hoad <mydeveloperday@gmail.com>2019-03-20 20:49:43 +0000
committerPaul Hoad <mydeveloperday@gmail.com>2019-03-20 20:49:43 +0000
commit9c0f34221d0091db37913871cdcd7b0c425d9ad9 (patch)
treee3d920f00ee687f9d8da51267945f3290ad5324d /docs
parentfdd0567e3912a5331f3768c9e82c0e16e4ed2f9e (diff)
downloadclang-9c0f34221d0091db37913871cdcd7b0c425d9ad9.tar.gz
[clang-format] BeforeHash added to IndentPPDirectives
Summary: The option BeforeHash added to IndentPPDirectives. Fixes Bug 36019. https://bugs.llvm.org/show_bug.cgi?id=36019 Reviewers: djasper, klimek, krasimir, sammccall, mprobst, Nicola, MyDeveloperDay Reviewed By: klimek, MyDeveloperDay Subscribers: kadircet, MyDeveloperDay, mnussbaum, geleji, ufna, cfe-commits Patch by to-mix. Differential Revision: https://reviews.llvm.org/D52150 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/ClangFormatStyleOptions.rst10
-rw-r--r--docs/ReleaseNotes.rst4
2 files changed, 12 insertions, 2 deletions
diff --git a/docs/ClangFormatStyleOptions.rst b/docs/ClangFormatStyleOptions.rst
index d4a56d3bb3..7cd11c7aa7 100644
--- a/docs/ClangFormatStyleOptions.rst
+++ b/docs/ClangFormatStyleOptions.rst
@@ -1411,6 +1411,16 @@ the configuration (without a prefix: ``Auto``).
# endif
#endif
+ * ``PPDIS_BeforeHash`` (in configuration: ``BeforeHash``)
+ Indents directives before the hash.
+
+ .. code-block:: c++
+
+ #if FOO
+ #if BAR
+ #include <foo>
+ #endif
+ #endif
**IndentWidth** (``unsigned``)
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst
index 14f5f5e21a..cd51330fcc 100644
--- a/docs/ReleaseNotes.rst
+++ b/docs/ReleaseNotes.rst
@@ -170,8 +170,8 @@ AST Matchers
clang-format
------------
-
-- ...
+- Added new option `PPDIS_BeforeHash` (in configuration: `BeforeHash`) to
+ `IndentPPDirectives` which indents preprocessor directives before the hash.
libclang
--------