From c2e58e726525943ffa6eef3392de42dc0a769470 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 22 Oct 2018 19:07:29 +0000 Subject: [PATCH] Hopefully fix the documentation generation issue llvm-svn: 344939 --- clang/docs/ClangFormatStyleOptions.rst | 6 ++++-- clang/include/clang/Format/Format.h | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst index 3a43c9891140..d50c883dbd9e 100644 --- a/clang/docs/ClangFormatStyleOptions.rst +++ b/clang/docs/ClangFormatStyleOptions.rst @@ -1406,12 +1406,14 @@ the configuration (without a prefix: ``Auto``). can be a subset of another - the longest prefix is always matched. Within a group, the imports are ordered lexicographically. - In the .clang-format configuration file, this can be configured like: + In the .clang-format configuration file, this can be configured like + in the following yaml example. This will result in imports being + formatted as in the Java example below. .. code-block:: yaml JavaImportGroups: ['com.example', 'com', 'org'] - Which will result in imports being formatted as so: + .. code-block:: java diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index cb5886f335ff..b777496eb19e 100644 --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -1139,11 +1139,13 @@ struct FormatStyle { /// can be a subset of another - the longest prefix is always matched. Within /// a group, the imports are ordered lexicographically. /// - /// In the .clang-format configuration file, this can be configured like: + /// In the .clang-format configuration file, this can be configured like + /// in the following yaml example. This will result in imports being + /// formatted as in the Java example below. /// \code{.yaml} /// JavaImportGroups: ['com.example', 'com', 'org'] /// \endcode - /// Which will result in imports being formatted as so: + /// /// \code{.java} /// import static com.example.function1; ///