Index: clang/include/clang/Format/Format.h =================================================================== --- clang/include/clang/Format/Format.h +++ clang/include/clang/Format/Format.h @@ -1161,6 +1161,7 @@ /// \endcode bool CompactNamespaces; + // clang-format off /// If the constructor initializers don't fit on a line, put each /// initializer on its own line. /// \code @@ -1178,6 +1179,7 @@ /// } /// \endcode bool ConstructorInitializerAllOnOneLineOrOnePerLine; + // clang-format on /// The number of characters to use for indentation of constructor /// initializer lists as well as inheritance lists. @@ -1304,6 +1306,7 @@ tooling::IncludeStyle IncludeStyle; + // clang-format off /// Indent case labels one level from the switch statement. /// /// When ``false``, use the same indentation level as for the switch statement. @@ -1319,6 +1322,7 @@ /// } } /// \endcode bool IndentCaseLabels; + // clang-format on /// Indent goto labels. /// @@ -1453,6 +1457,7 @@ /// The JavaScriptQuoteStyle to use for JavaScript strings. JavaScriptQuoteStyle JavaScriptQuotes; + // clang-format off /// Whether to wrap JavaScript import/export statements. /// \code{.js} /// true: @@ -1466,6 +1471,7 @@ /// import {VeryLongImportsAreAnnoying, VeryLongImportsAreAnnoying, VeryLongImportsAreAnnoying,} from "some/module.js" /// \endcode bool JavaScriptWrapImports; + // clang-format on /// If true, the empty line at the start of blocks is kept. /// \code @@ -1747,6 +1753,7 @@ /// \endcode std::vector RawStringFormats; + // clang-format off /// If ``true``, clang-format will attempt to re-flow comments. /// \code /// false: @@ -1760,6 +1767,7 @@ /// * information */ /// \endcode bool ReflowComments; + // clang-format on /// If ``true``, clang-format will sort ``#includes``. /// \code @@ -2294,8 +2302,7 @@ /// a non-recoverable syntax error. tooling::Replacements reformat(const FormatStyle &Style, StringRef Code, ArrayRef Ranges, - StringRef FileName, - bool *IncompleteFormat); + StringRef FileName, bool *IncompleteFormat); /// Clean up any erroneous/redundant code in the given \p Ranges in \p /// Code. @@ -2406,6 +2413,6 @@ namespace std { template <> struct is_error_code_enum : std::true_type {}; -} +} // namespace std #endif // LLVM_CLANG_FORMAT_FORMAT_H