Skip to content

Commit 49c9a68

Browse files
The release notes for ObjCBreakBeforeNestedBlockParam was placed between the release note for IndentCaseBlocks and its example code
Remove other whitespace and line limit issues and double blank line issues
1 parent 81e9ede commit 49c9a68

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ Non-comprehensive list of changes in this release
6767
- clang adds support for a set of extended integer types (``_ExtInt(N)``) that
6868
permit non-power of 2 integers, exposing the LLVM integer types. Since a major
6969
motivating use case for these types is to limit 'bit' usage, these types don't
70-
automatically promote to 'int' when operations are done between two ``ExtInt(N)``
71-
types, instead math occurs at the size of the largest ``ExtInt(N)`` type.
70+
automatically promote to 'int' when operations are done between two
71+
``ExtInt(N)`` types, instead math occurs at the size of the largest
72+
``ExtInt(N)`` type.
7273

7374
- Users of UBSan, PGO, and coverage on Windows will now need to add clang's
7475
library resource directory to their library search path. These features all
@@ -81,17 +82,15 @@ Non-comprehensive list of changes in this release
8182
linker. If the user links the program with the ``clang`` or ``clang-cl``
8283
drivers, the driver will pass this flag for them.
8384

84-
8585
New Compiler Flags
8686
------------------
8787

88-
8988
- -fstack-clash-protection will provide a protection against the stack clash
9089
attack for x86 architecture through automatic probing of each page of
9190
allocated stack.
9291

9392
- -ffp-exception-behavior={ignore,maytrap,strict} allows the user to specify
94-
the floating-point exception behavior. The default setting is ``ignore``.
93+
the floating-point exception behavior. The default setting is ``ignore``.
9594

9695
- -ffp-model={precise,strict,fast} provides the user an umbrella option to
9796
simplify access to the many single purpose floating point options. The default
@@ -110,11 +109,11 @@ Modified Compiler Flags
110109

111110
- -fno-common has been enabled as the default for all targets. Therefore, C
112111
code that uses tentative definitions as definitions of a variable in multiple
113-
translation units will trigger multiple-definition linker errors. Generally,
114-
this occurs when the use of the ``extern`` keyword is neglected in the declaration
115-
of a variable in a header file. In some cases, no specific translation unit
116-
provides a definition of the variable. The previous behavior can be restored by
117-
specifying ``-fcommon``.
112+
translation units will trigger multiple-definition linker errors. Generally,
113+
this occurs when the use of the ``extern`` keyword is neglected in the
114+
declaration of a variable in a header file. In some cases, no specific
115+
translation unit provides a definition of the variable. The previous
116+
behavior can be restored by specifying ``-fcommon``.
118117
- -Wasm-ignored-qualifier (ex. `asm const ("")`) has been removed and replaced
119118
with an error (this matches a recent change in GCC-9).
120119
- -Wasm-file-asm-volatile (ex. `asm volatile ("")` at global scope) has been
@@ -176,7 +175,7 @@ C++ Language Changes in Clang
176175
Previous versions of Clang rejected some constructs of this form
177176
(specifically, where the linkage of the type happened to be computed
178177
before the parser reached the typedef name); those cases are still rejected
179-
in Clang 11. In addition, cases that previous versions of Clang did not
178+
in Clang 11. In addition, cases that previous versions of Clang did not
180179
reject now produce an extension warning. This warning can be disabled with
181180
the warning flag ``-Wno-non-c-typedef-for-linkage``.
182181

@@ -207,7 +206,6 @@ C++1z Feature Support
207206
Objective-C Language Changes in Clang
208207
-------------------------------------
209208

210-
211209
OpenCL C Language Changes in Clang
212210
----------------------------------
213211

@@ -216,7 +214,6 @@ OpenCL C Language Changes in Clang
216214
ABI Changes in Clang
217215
--------------------
218216

219-
220217
OpenMP Support in Clang
221218
-----------------------
222219

@@ -234,7 +231,6 @@ These are major API changes that have happened since the 10.0.0 release of
234231
Clang. If upgrading an external codebase that uses Clang as a library,
235232
this section should help get you past the largest hurdles of upgrading.
236233

237-
238234
Build System Changes
239235
--------------------
240236

@@ -255,15 +251,11 @@ AST Matchers
255251
clang-format
256252
------------
257253

258-
259254
- Option ``IndentCaseBlocks`` has been added to support treating the block
260255
following a switch case label as a scope block which gets indented itself.
261256
It helps avoid having the closing bracket align with the switch statement's
262257
closing bracket (when ``IndentCaseLabels`` is ``false``).
263258

264-
- Option ``ObjCBreakBeforeNestedBlockParam`` has been added to optionally apply
265-
linebreaks for function arguments declarations before nested blocks.
266-
267259
.. code-block:: c++
268260

269261
switch (fool) { vs. switch (fool) {
@@ -278,6 +270,9 @@ clang-format
278270
}
279271
}
280272

273+
- Option ``ObjCBreakBeforeNestedBlockParam`` has been added to optionally apply
274+
linebreaks for function arguments declarations before nested blocks.
275+
281276
- Option ``InsertTrailingCommas`` can be set to ``TCS_Wrapped`` to insert
282277
trailing commas in container literals (arrays and objects) that wrap across
283278
multiple lines. It is currently only available for JavaScript and disabled by
@@ -317,7 +312,6 @@ Static Analyzer
317312
Undefined Behavior Sanitizer (UBSan)
318313
------------------------------------
319314

320-
321315
Core Analysis Improvements
322316
==========================
323317

0 commit comments

Comments
 (0)