Index: clang/docs/ClangFormatStyleOptions.rst =================================================================== --- clang/docs/ClangFormatStyleOptions.rst +++ clang/docs/ClangFormatStyleOptions.rst @@ -603,7 +603,7 @@ -**AlignOperands** (``OperandAlignmentStyle``) :versionbadge:`clang-format 12` +**AlignOperands** (``OperandAlignmentStyle``) :versionbadge:`clang-format 3.5` If ``true``, horizontally align operands of binary and ternary expressions. @@ -746,7 +746,7 @@ return; } -**AllowShortEnumsOnASingleLine** (``Boolean``) :versionbadge:`clang-format 12` +**AllowShortEnumsOnASingleLine** (``Boolean``) :versionbadge:`clang-format 11` Allow short enums on a single line. .. code-block:: c++ @@ -2603,7 +2603,7 @@ plop(); plop(); } } -**IndentExternBlock** (``IndentExternBlockStyle``) :versionbadge:`clang-format 12` +**IndentExternBlock** (``IndentExternBlockStyle``) :versionbadge:`clang-format 11` IndentExternBlockStyle is the type of indenting of extern blocks. Possible values: @@ -2789,7 +2789,7 @@ --i; --i; while (i); } while (i); -**InsertTrailingCommas** (``TrailingCommaStyle``) :versionbadge:`clang-format 12` +**InsertTrailingCommas** (``TrailingCommaStyle``) :versionbadge:`clang-format 11` If set to ``TCS_Wrapped`` will insert trailing commas in container literals (arrays and objects) that wrap across multiple lines. It is currently only available for JavaScript @@ -3147,7 +3147,7 @@ [self onOperationDone]; }]; -**ObjCBreakBeforeNestedBlockParam** (``Boolean``) :versionbadge:`clang-format 12` +**ObjCBreakBeforeNestedBlockParam** (``Boolean``) :versionbadge:`clang-format 11` Break parameters list into lines when there is nested block parameters in a function call. @@ -4355,7 +4355,7 @@ -**WhitespaceSensitiveMacros** (``List of Strings``) :versionbadge:`clang-format 12` +**WhitespaceSensitiveMacros** (``List of Strings``) :versionbadge:`clang-format 11` A vector of macros which are whitespace-sensitive and should not be touched. Index: clang/include/clang/Format/Format.h =================================================================== --- clang/include/clang/Format/Format.h +++ clang/include/clang/Format/Format.h @@ -499,7 +499,7 @@ /// If ``true``, horizontally align operands of binary and ternary /// expressions. - /// \version 12 + /// \version 3.5 OperandAlignmentStyle AlignOperands; /// If ``true``, aligns trailing comments. @@ -562,7 +562,7 @@ /// B /// } myEnum; /// \endcode - /// \version 12 + /// \version 11 bool AllowShortEnumsOnASingleLine; /// Different styles for merging short blocks containing at most one @@ -987,7 +987,7 @@ /// // ^ inserted /// ] /// \endcode - /// \version 12 + /// \version 11 TrailingCommaStyle InsertTrailingCommas; /// If ``false``, a function declaration's or function definition's @@ -2355,7 +2355,7 @@ /// \endcode /// /// For example: BOOST_PP_STRINGIZE - /// \version 12 + /// \version 11 std::vector WhitespaceSensitiveMacros; tooling::IncludeStyle IncludeStyle; @@ -2518,7 +2518,7 @@ }; /// IndentExternBlockStyle is the type of indenting of extern blocks. - /// \version 12 + /// \version 11 IndentExternBlockStyle IndentExternBlock; /// Indent the requires clause in a template. This only applies when @@ -2918,7 +2918,7 @@ /// }] /// } /// \endcode - /// \version 12 + /// \version 11 bool ObjCBreakBeforeNestedBlockParam; /// Add a space in front of an Objective-C protocol list, i.e. use