[all-commits] [llvm/llvm-project] f5e618: [sanitizer][NFC] Remove InternalScopedString::size()

Vitaly Buka via All-commits all-commits at lists.llvm.org
Tue Mar 16 14:12:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f5e6182ce6cd16080c62f6c8d599c09971904150
      https://github.com/llvm/llvm-project/commit/f5e6182ce6cd16080c62f6c8d599c09971904150
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2021-03-16 (Tue, 16 Mar 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_common.h
    M compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_libignore.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_posix.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_printf.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_procmaps_common.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_procmaps_mac.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_suppressions.cpp
    M compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
    M compiler-rt/lib/ubsan/ubsan_monitor.cpp

  Log Message:
  -----------
  [sanitizer][NFC] Remove InternalScopedString::size()

size() is inconsistent with length().
In most size() use cases we can replace InternalScopedString with
InternalMmapVector.

Remove non-constant data() to avoid direct manipulations of internal
buffer. append() should be enought to modify InternalScopedString.




More information about the All-commits mailing list