Skip to content

Commit

Permalink
[libc++] Add details about string annotations (#80912)
Browse files Browse the repository at this point in the history
This commit adds information that only long strings are annotated, and
with all allocators by default.

To read why short string annotations are not turned on yet, read comments in a related
PR: llvm/llvm-project#79536

---------

Co-authored-by: Mark de Wever <zar-rpg@xs4all.nl>
NOKEYCHECK=True
GitOrigin-RevId: 7661ade5d1ac4fc8e1e2339b2476cb8e45c24641
  • Loading branch information
2 people authored and copybara-github committed Feb 20, 2024
1 parent d3a59f7 commit 0285388
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/ReleaseNotes/18.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ Improvements and New Features
``${PREFIX}/share/libc++/v1``.

- AddressSanitizer annotations have been added to ``std::basic_string``.
These annotations are enabled for all allocators by default.
It's only enabled for long strings, strings using the small buffer optimization are not annotated.

- The libc++ source code has been formatted with ``clang-format``. This
`discourse thread <https://discourse.llvm.org/t/rfc-clang-formatting-all-of-libc-once-and-for-all>`_
Expand Down

0 comments on commit 0285388

Please sign in to comment.