Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/docs/ReleaseNotes.rst
Show First 20 Lines • Show All 445 Lines • ▼ Show 20 Lines | |||||
- Clang has an internal limit of 2GB of preprocessed source code per | - Clang has an internal limit of 2GB of preprocessed source code per | ||||
compilation, including source reachable through imported AST files such as | compilation, including source reachable through imported AST files such as | ||||
PCH or modules. When Clang hits this limit, it now produces notes mentioning | PCH or modules. When Clang hits this limit, it now produces notes mentioning | ||||
which header and source files are consuming large amounts of this space. | which header and source files are consuming large amounts of this space. | ||||
``#pragma clang __debug sloc_usage`` can also be used to request this report. | ``#pragma clang __debug sloc_usage`` can also be used to request this report. | ||||
- Clang no longer permits the keyword 'bool' in a concept declaration as a | - Clang no longer permits the keyword 'bool' in a concept declaration as a | ||||
concepts-ts compatibility extension. | concepts-ts compatibility extension. | ||||
- Clang now diagnoses overflow undefined behavior in a constant expression while | - Clang now diagnoses overflow undefined behavior in a constant expression while | ||||
evaluating a compound assignment with remainder as operand. | evaluating a compound assignment with remainder as operand. | ||||
aaron.ballman: This makes it more clear this is an lld-specific change. | |||||
Changing this suggestion to: "that may have their behavior change when enabling the identical code folding optimization feature of some linkers." aaron.ballman: Changing this suggestion to: "that may have their behavior change when enabling the identical… | |||||
- Add ``-Wreturn-local-addr``, a GCC alias for ``-Wreturn-stack-address``. | - Add ``-Wreturn-local-addr``, a GCC alias for ``-Wreturn-stack-address``. | ||||
- Clang now suppresses ``-Wlogical-op-parentheses`` on ``(x && a || b)`` and ``(a || b && x)`` | - Clang now suppresses ``-Wlogical-op-parentheses`` on ``(x && a || b)`` and ``(a || b && x)`` | ||||
only when ``x`` is a string literal. | only when ``x`` is a string literal. | ||||
- Add ``-Wcompare-function-pointers`` to warn about comparisons that may have their behavior | |||||
change when enabling the identical code folding optimization feature of some linkers. | |||||
Non-comprehensive list of changes in this release | Non-comprehensive list of changes in this release | ||||
------------------------------------------------- | ------------------------------------------------- | ||||
- It's now possible to set the crash diagnostics directory through | - It's now possible to set the crash diagnostics directory through | ||||
the environment variable ``CLANG_CRASH_DIAGNOSTICS_DIR``. | the environment variable ``CLANG_CRASH_DIAGNOSTICS_DIR``. | ||||
The ``-fcrash-diagnostics-dir`` flag takes precedence. | The ``-fcrash-diagnostics-dir`` flag takes precedence. | ||||
- When using header modules, inclusion of a private header and violations of | - When using header modules, inclusion of a private header and violations of | ||||
the `use-declaration rules | the `use-declaration rules | ||||
▲ Show 20 Lines • Show All 532 Lines • Show Last 20 Lines |
This makes it more clear this is an lld-specific change.