fune/security/sandbox/chromium/base
Chris Peterson 88ecbe13e5 Bug 1880015 - Remove some unused chromium/base/strings functions to fix C++20 build. r=bobowen
Attempting to compile security/sandbox with -std=c++20 hits this build error:

> security/sandbox/chromium/base/strings/string_util.cc:1043:53: error: overload resolution selected deleted operator '<<'
> |             DLOG(ERROR) << "Invalid placeholder: $" << *i;

This error is caused because C++20 removed basic_string's `operator<<` overloads for char types because the overloads didn't behave as callers expected: instead of printing the character value ('A'), they treated the char as an integer value (65):

https://en.cppreference.com/w/cpp/io/basic_ostream/operator_ltlt2

mozilla-central's security/sandbox code doesn't actually use these `ReplaceStringPlaceholders` functions, so just remove them instead of cherry picking Chromium's upstream fix.

Differential Revision: https://phabricator.services.mozilla.com/D201675
2024-02-14 01:24:37 +00:00
..
containers
debug
files
hash
memory
numerics
posix
process
strings Bug 1880015 - Remove some unused chromium/base/strings functions to fix C++20 build. r=bobowen 2024-02-14 01:24:37 +00:00
synchronization
third_party
threading
time
win
at_exit.cc
at_exit.h
atomic_ref_count.h
atomic_sequence_num.h
atomicops.h
atomicops_internals_portable.h
atomicops_internals_x86_msvc.h
base_export.h
base_paths.h
base_paths_win.h
base_switches.cc
base_switches.h
bind.h
bind_helpers.h
bind_internal.h
bit_cast.h
bits.h
callback.h
callback_forward.h
callback_internal.cc
callback_internal.h
compiler_specific.h
cpu.cc
cpu.h
environment.cc
environment.h
file_descriptor_posix.h
format_macros.h
guid.h
immediate_crash.h
lazy_instance.h
lazy_instance_helpers.cc
lazy_instance_helpers.h
location.cc
location.h
logging.h
macros.h
no_destructor.h
optional.h
os_compat_android.h
path_service.h
rand_util.h
rand_util_win.cc
scoped_clear_last_error.h
scoped_clear_last_error_win.cc
sequence_checker.h
sequence_checker_impl.h
sequence_token.h
sequenced_task_runner.h
sequenced_task_runner_helpers.h
single_thread_task_runner.h
stl_util.h
task_runner.h
template_util.h
thread_annotations.h
token.cc
token.h
tuple.h
unguessable_token.cc
unguessable_token.h
version.cc
version.h