[all-commits] [llvm/llvm-project] 29c8c0: [libc++] Use bit field for checking if string is i...

philnik777 via All-commits all-commits at lists.llvm.org
Thu Apr 21 05:20:35 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 29c8c070a1770fc510ccad3be753f6f50336f8cc
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2022-04-21 (Thu, 21 Apr 2022)

  Changed paths:
    M libcxx/include/string
    A libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
    M libcxx/test/std/strings/basic.string/string.capacity/over_max_size.pass.cpp
    M libcxx/utils/gdb/libcxx/printers.py

  Log Message:
  [libc++] Use bit field for checking if string is in long or short mode

This makes the code a bit simpler and (I think) removes the undefined behaviour from the normal string layout.

Reviewed By: ldionne, Mordante, #libc

Spies: labath, dblaikie, JDevlieghere, krytarowski, jgorbe, jingham, saugustine, arichardson, libcxx-commits

Differential Revision: https://reviews.llvm.org/D123580

More information about the All-commits mailing list