diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
commit | a5950576e397b1909261050b8c7da16db58f10b1 (patch) | |
tree | 7ba7677f6a4c3e19e2cefab34d16df2c8963b4d4 /contrib/restricted/abseil-cpp-tstring/y_absl/debugging | |
parent | 81eddc8c0b55990194e112b02d127b87d54164a9 (diff) | |
download | ydb-a5950576e397b1909261050b8c7da16db58f10b1.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/restricted/abseil-cpp-tstring/y_absl/debugging')
36 files changed, 205 insertions, 205 deletions
diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/failure_signal_handler.cc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/failure_signal_handler.cc index fa6e30f935..02bf678650 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/failure_signal_handler.cc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/failure_signal_handler.cc @@ -14,9 +14,9 @@ // limitations under the License. // -#include "y_absl/debugging/failure_signal_handler.h" +#include "y_absl/debugging/failure_signal_handler.h" -#include "y_absl/base/config.h" +#include "y_absl/base/config.h" #ifdef _WIN32 #include <windows.h> @@ -41,12 +41,12 @@ #include <cstring> #include <ctime> -#include "y_absl/base/attributes.h" +#include "y_absl/base/attributes.h" #include "y_absl/base/internal/errno_saver.h" -#include "y_absl/base/internal/raw_logging.h" -#include "y_absl/base/internal/sysinfo.h" -#include "y_absl/debugging/internal/examine_stack.h" -#include "y_absl/debugging/stacktrace.h" +#include "y_absl/base/internal/raw_logging.h" +#include "y_absl/base/internal/sysinfo.h" +#include "y_absl/debugging/internal/examine_stack.h" +#include "y_absl/debugging/stacktrace.h" #ifndef _WIN32 #define ABSL_HAVE_SIGACTION @@ -57,7 +57,7 @@ #endif #endif -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN ABSL_CONST_INIT static FailureSignalHandlerOptions fsh_options; @@ -218,7 +218,7 @@ static void InstallOneFailureHandler(FailureSignalData* data, static void WriteToStderr(const char* data) { y_absl::base_internal::ErrnoSaver errno_saver; - y_absl::raw_logging_internal::SafeWriteToStderr(data, strlen(data)); + y_absl::raw_logging_internal::SafeWriteToStderr(data, strlen(data)); } static void WriteSignalMessage(int signo, int cpu, @@ -248,7 +248,7 @@ struct WriterFnStruct { void (*writerfn)(const char*); }; -// Many of the y_absl::debugging_internal::Dump* functions in +// Many of the y_absl::debugging_internal::Dump* functions in // examine_stack.h take a writer function pointer that has a void* arg // for historical reasons. failure_signal_handler_writer only takes a // data pointer. This function converts between these types. @@ -266,12 +266,12 @@ ABSL_ATTRIBUTE_NOINLINE static void WriteStackTrace( void* stack[kNumStackFrames]; int frame_sizes[kNumStackFrames]; int min_dropped_frames; - int depth = y_absl::GetStackFramesWithContext( + int depth = y_absl::GetStackFramesWithContext( stack, frame_sizes, kNumStackFrames, 1, // Do not include this function in stack trace. ucontext, &min_dropped_frames); - y_absl::debugging_internal::DumpPCAndFrameSizesAndStackTrace( - y_absl::debugging_internal::GetProgramCounter(ucontext), stack, frame_sizes, + y_absl::debugging_internal::DumpPCAndFrameSizesAndStackTrace( + y_absl::debugging_internal::GetProgramCounter(ucontext), stack, frame_sizes, depth, min_dropped_frames, symbolize_stacktrace, writerfn, writerfn_arg); } @@ -286,7 +286,7 @@ static void WriteFailureInfo(int signo, void* ucontext, int cpu, &writerfn_struct); } -// y_absl::SleepFor() can't be used here since AbslInternalSleepFor() +// y_absl::SleepFor() can't be used here since AbslInternalSleepFor() // may be overridden to do something that isn't async-signal-safe on // some platforms. static void PortableSleepForSeconds(int seconds) { @@ -311,9 +311,9 @@ static void ImmediateAbortSignalHandler(int) { } #endif -// y_absl::base_internal::GetTID() returns pid_t on most platforms, but -// returns y_absl::base_internal::pid_t on Windows. -using GetTidType = decltype(y_absl::base_internal::GetTID()); +// y_absl::base_internal::GetTID() returns pid_t on most platforms, but +// returns y_absl::base_internal::pid_t on Windows. +using GetTidType = decltype(y_absl::base_internal::GetTID()); ABSL_CONST_INIT static std::atomic<GetTidType> failed_tid(0); #ifndef ABSL_HAVE_SIGACTION @@ -323,7 +323,7 @@ static void AbslFailureSignalHandler(int signo) { static void AbslFailureSignalHandler(int signo, siginfo_t*, void* ucontext) { #endif - const GetTidType this_tid = y_absl::base_internal::GetTID(); + const GetTidType this_tid = y_absl::base_internal::GetTID(); GetTidType previous_failed_tid = 0; if (!failed_tid.compare_exchange_strong( previous_failed_tid, static_cast<intptr_t>(this_tid), @@ -331,7 +331,7 @@ static void AbslFailureSignalHandler(int signo, siginfo_t*, void* ucontext) { ABSL_RAW_LOG( ERROR, "Signal %d raised at PC=%p while already in AbslFailureSignalHandler()", - signo, y_absl::debugging_internal::GetProgramCounter(ucontext)); + signo, y_absl::debugging_internal::GetProgramCounter(ucontext)); if (this_tid != previous_failed_tid) { // Another thread is already in AbslFailureSignalHandler(), so wait // a bit for it to finish. If the other thread doesn't kill us, @@ -385,4 +385,4 @@ void InstallFailureSignalHandler(const FailureSignalHandlerOptions& options) { } ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/failure_signal_handler.h b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/failure_signal_handler.h index 879df3c434..cb6db66d88 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/failure_signal_handler.h +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/failure_signal_handler.h @@ -19,15 +19,15 @@ // This file configures the Abseil *failure signal handler* to capture and dump // useful debugging information (such as a stacktrace) upon program failure. // -// To use the failure signal handler, call `y_absl::InstallFailureSignalHandler()` +// To use the failure signal handler, call `y_absl::InstallFailureSignalHandler()` // very early in your program, usually in the first few lines of main(): // // int main(int argc, char** argv) { // // Initialize the symbolizer to get a human-readable stack trace -// y_absl::InitializeSymbolizer(argv[0]); +// y_absl::InitializeSymbolizer(argv[0]); // -// y_absl::FailureSignalHandlerOptions options; -// y_absl::InstallFailureSignalHandler(options); +// y_absl::FailureSignalHandlerOptions options; +// y_absl::InstallFailureSignalHandler(options); // DoSomethingInteresting(); // return 0; // } @@ -46,12 +46,12 @@ #include "y_absl/base/config.h" -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN // FailureSignalHandlerOptions // -// Struct for holding `y_absl::InstallFailureSignalHandler()` configuration +// Struct for holding `y_absl::InstallFailureSignalHandler()` configuration // options. struct FailureSignalHandlerOptions { // If true, try to symbolize the stacktrace emitted on failure, provided that @@ -116,6 +116,6 @@ const char* FailureSignalToString(int signo); } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_FAILURE_SIGNAL_HANDLER_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/address_is_readable.cc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/address_is_readable.cc index df217335ea..8c7ad66c63 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/address_is_readable.cc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/address_is_readable.cc @@ -15,11 +15,11 @@ // base::AddressIsReadable() probes an address to see whether it is readable, // without faulting. -#include "y_absl/debugging/internal/address_is_readable.h" +#include "y_absl/debugging/internal/address_is_readable.h" #if !defined(__linux__) || defined(__ANDROID__) -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -28,7 +28,7 @@ bool AddressIsReadable(const void* /* addr */) { return true; } } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #else @@ -41,9 +41,9 @@ ABSL_NAMESPACE_END #include <cstdint> #include "y_absl/base/internal/errno_saver.h" -#include "y_absl/base/internal/raw_logging.h" +#include "y_absl/base/internal/raw_logging.h" -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -134,6 +134,6 @@ bool AddressIsReadable(const void *addr) { } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/address_is_readable.h b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/address_is_readable.h index 279dcc640b..6bd751a7ae 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/address_is_readable.h +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/address_is_readable.h @@ -17,7 +17,7 @@ #include "y_absl/base/config.h" -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -27,6 +27,6 @@ bool AddressIsReadable(const void *addr); } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_INTERNAL_ADDRESS_IS_READABLE_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/demangle.cc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/demangle.cc index 0a4daa2f5c..973360147a 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/demangle.cc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/demangle.cc @@ -17,13 +17,13 @@ // // Note that we only have partial C++11 support yet. -#include "y_absl/debugging/internal/demangle.h" +#include "y_absl/debugging/internal/demangle.h" #include <cstdint> #include <cstdio> #include <limits> -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -1956,4 +1956,4 @@ bool Demangle(const char *mangled, char *out, int out_size) { } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/demangle.h b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/demangle.h index a9b42edb45..ac26059915 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/demangle.h +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/demangle.h @@ -55,7 +55,7 @@ #include "y_absl/base/config.h" -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -66,6 +66,6 @@ bool Demangle(const char *mangled, char *out, int out_size); } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_INTERNAL_DEMANGLE_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/elf_mem_image.cc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/elf_mem_image.cc index ba4bbc3855..3c179a7db3 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/elf_mem_image.cc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/elf_mem_image.cc @@ -15,7 +15,7 @@ // Allow dynamic symbol lookup in an in-memory Elf image. // -#include "y_absl/debugging/internal/elf_mem_image.h" +#include "y_absl/debugging/internal/elf_mem_image.h" #ifdef ABSL_HAVE_ELF_MEM_IMAGE // defined in elf_mem_image.h @@ -23,7 +23,7 @@ #include <cassert> #include <cstddef> #include "y_absl/base/config.h" -#include "y_absl/base/internal/raw_logging.h" +#include "y_absl/base/internal/raw_logging.h" // From binutils/include/elf/common.h (this doesn't appear to be documented // anywhere else). @@ -38,7 +38,7 @@ #define VERSYM_VERSION 0x7fff -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -378,6 +378,6 @@ void ElfMemImage::SymbolIterator::Update(int increment) { } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_HAVE_ELF_MEM_IMAGE diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/elf_mem_image.h b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/elf_mem_image.h index 13a6b2e664..24dc09f7a3 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/elf_mem_image.h +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/elf_mem_image.h @@ -44,7 +44,7 @@ #define ElfW(x) __ElfN(x) #endif -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -131,7 +131,7 @@ class ElfMemImage { } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_HAVE_ELF_MEM_IMAGE diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/examine_stack.cc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/examine_stack.cc index c59d92b6a3..b074255bd5 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/examine_stack.cc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/examine_stack.cc @@ -14,7 +14,7 @@ // limitations under the License. // -#include "y_absl/debugging/internal/examine_stack.h" +#include "y_absl/debugging/internal/examine_stack.h" #ifndef _WIN32 #include <unistd.h> @@ -27,13 +27,13 @@ #include <csignal> #include <cstdio> -#include "y_absl/base/attributes.h" -#include "y_absl/base/internal/raw_logging.h" -#include "y_absl/base/macros.h" -#include "y_absl/debugging/stacktrace.h" -#include "y_absl/debugging/symbolize.h" +#include "y_absl/base/attributes.h" +#include "y_absl/base/internal/raw_logging.h" +#include "y_absl/base/macros.h" +#include "y_absl/debugging/stacktrace.h" +#include "y_absl/debugging/symbolize.h" -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -134,7 +134,7 @@ static void DumpPCAndFrameSizeAndSymbol(void (*writerfn)(const char*, void*), const char* const prefix) { char tmp[1024]; const char* symbol = "(unknown)"; - if (y_absl::Symbolize(symbolize_pc, tmp, sizeof(tmp))) { + if (y_absl::Symbolize(symbolize_pc, tmp, sizeof(tmp))) { symbol = tmp; } char buf[1024]; @@ -200,4 +200,4 @@ void DumpPCAndFrameSizesAndStackTrace( } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/examine_stack.h b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/examine_stack.h index 32892a1150..ce2e8c9735 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/examine_stack.h +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/examine_stack.h @@ -19,7 +19,7 @@ #include "y_absl/base/config.h" -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -37,6 +37,6 @@ void DumpPCAndFrameSizesAndStackTrace( } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_INTERNAL_EXAMINE_STACK_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stack_consumption.h b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stack_consumption.h index 80137ad0eb..a7d602a342 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stack_consumption.h +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stack_consumption.h @@ -29,7 +29,7 @@ defined(__aarch64__) || defined(__riscv)) #define ABSL_INTERNAL_HAVE_DEBUGGING_STACK_CONSUMPTION 1 -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -43,7 +43,7 @@ int GetSignalHandlerStackConsumption(void (*signal_handler)(int)); } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_INTERNAL_HAVE_DEBUGGING_STACK_CONSUMPTION diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_aarch64-inl.inc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_aarch64-inl.inc index 700f607488..682f58108f 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_aarch64-inl.inc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_aarch64-inl.inc @@ -14,10 +14,10 @@ #include <cstdint> #include <iostream> -#include "y_absl/base/attributes.h" -#include "y_absl/debugging/internal/address_is_readable.h" -#include "y_absl/debugging/internal/vdso_support.h" // a no-op on non-elf or non-glibc systems -#include "y_absl/debugging/stacktrace.h" +#include "y_absl/base/attributes.h" +#include "y_absl/debugging/internal/address_is_readable.h" +#include "y_absl/debugging/internal/vdso_support.h" // a no-op on non-elf or non-glibc systems +#include "y_absl/debugging/stacktrace.h" static const uintptr_t kUnknownFrameSize = 0; @@ -34,9 +34,9 @@ static const unsigned char* GetKernelRtSigreturnAddress() { address = reinterpret_cast<uintptr_t>(nullptr); #ifdef ABSL_HAVE_VDSO_SUPPORT - y_absl::debugging_internal::VDSOSupport vdso; + y_absl::debugging_internal::VDSOSupport vdso; if (vdso.IsPresent()) { - y_absl::debugging_internal::VDSOSupport::SymbolInfo symbol_info; + y_absl::debugging_internal::VDSOSupport::SymbolInfo symbol_info; auto lookup = [&](int type) { return vdso.LookupSymbol("__kernel_rt_sigreturn", "LINUX_2.6.39", type, &symbol_info); @@ -96,7 +96,7 @@ static void **NextStackFrame(void **old_frame_pointer, const void *uc) { // Check that alleged frame pointer is actually readable. This is to // prevent "double fault" in case we hit the first fault due to e.g. // stack corruption. - if (!y_absl::debugging_internal::AddressIsReadable( + if (!y_absl::debugging_internal::AddressIsReadable( pre_signal_frame_pointer)) return nullptr; @@ -152,7 +152,7 @@ static int UnwindImpl(void** result, int* sizes, int max_depth, int skip_count, void* prev_return_address = nullptr; while (frame_pointer && n < max_depth) { - // The y_absl::GetStackFrames routine is called when we are in some + // The y_absl::GetStackFrames routine is called when we are in some // informational context (the failure signal handler for example). // Use the non-strict unwinding rules to produce a stack trace // that is as complete as possible (even if it contains a few bogus @@ -186,7 +186,7 @@ static int UnwindImpl(void** result, int* sizes, int max_depth, int skip_count, return n; } -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { bool StackTraceWorksForTest() { @@ -194,6 +194,6 @@ bool StackTraceWorksForTest() { } } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_INTERNAL_STACKTRACE_AARCH64_INL_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_arm-inl.inc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_arm-inl.inc index b73307120e..fc59d0e628 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_arm-inl.inc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_arm-inl.inc @@ -19,7 +19,7 @@ #include <cstdint> -#include "y_absl/debugging/stacktrace.h" +#include "y_absl/debugging/stacktrace.h" // WARNING: // This only works if all your code is in either ARM or THUMB mode. With @@ -58,7 +58,7 @@ static void **NextStackFrame(void **old_sp) { return new_sp; } -// This ensures that y_absl::GetStackTrace sets up the Link Register properly. +// This ensures that y_absl::GetStackTrace sets up the Link Register properly. #ifdef __GNUC__ void StacktraceArmDummyFunction() __attribute__((noinline)); void StacktraceArmDummyFunction() { __asm__ volatile(""); } @@ -84,7 +84,7 @@ static int UnwindImpl(void** result, int* sizes, int max_depth, int skip_count, int n = 0; while (sp && n < max_depth) { - // The y_absl::GetStackFrames routine is called when we are in some + // The y_absl::GetStackFrames routine is called when we are in some // informational context (the failure signal handler for example). // Use the non-strict unwinding rules to produce a stack trace // that is as complete as possible (even if it contains a few bogus @@ -121,7 +121,7 @@ static int UnwindImpl(void** result, int* sizes, int max_depth, int skip_count, return n; } -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { bool StackTraceWorksForTest() { @@ -129,6 +129,6 @@ bool StackTraceWorksForTest() { } } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_INTERNAL_STACKTRACE_ARM_INL_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_config.h b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_config.h index 7ba212ab03..56d7cbf359 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_config.h +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_config.h @@ -28,7 +28,7 @@ #elif defined(_WIN32) #define ABSL_STACKTRACE_INL_HEADER \ - "y_absl/debugging/internal/stacktrace_win32-inl.inc" + "y_absl/debugging/internal/stacktrace_win32-inl.inc" #elif defined(__APPLE__) #ifdef ABSL_HAVE_THREAD_LOCAL @@ -54,7 +54,7 @@ #if __has_include(<execinfo.h>) // Note: When using glibc this may require -funwind-tables to function properly. #define ABSL_STACKTRACE_INL_HEADER \ - "y_absl/debugging/internal/stacktrace_generic-inl.inc" + "y_absl/debugging/internal/stacktrace_generic-inl.inc" #endif // __has_include(<execinfo.h>) #elif defined(__i386__) || defined(__x86_64__) #define ABSL_STACKTRACE_INL_HEADER \ @@ -81,7 +81,7 @@ // Fallback to the empty implementation. #if !defined(ABSL_STACKTRACE_INL_HEADER) #define ABSL_STACKTRACE_INL_HEADER \ - "y_absl/debugging/internal/stacktrace_unimplemented-inl.inc" + "y_absl/debugging/internal/stacktrace_unimplemented-inl.inc" #endif #endif // ABSL_DEBUGGING_INTERNAL_STACKTRACE_CONFIG_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_generic-inl.inc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_generic-inl.inc index fa623aa954..684cd0c339 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_generic-inl.inc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_generic-inl.inc @@ -24,8 +24,8 @@ #include <atomic> #include <cstring> -#include "y_absl/debugging/stacktrace.h" -#include "y_absl/base/attributes.h" +#include "y_absl/debugging/stacktrace.h" +#include "y_absl/base/attributes.h" // Sometimes, we can try to get a stack trace from within a stack // trace, because we don't block signals inside this code (which would be too @@ -95,7 +95,7 @@ static int UnwindImpl(void** result, int* sizes, int max_depth, int skip_count, return result_count; } -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { bool StackTraceWorksForTest() { @@ -103,6 +103,6 @@ bool StackTraceWorksForTest() { } } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_INTERNAL_STACKTRACE_GENERIC_INL_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_powerpc-inl.inc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_powerpc-inl.inc index 1e41c4ebf2..f8a7c0c2d7 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_powerpc-inl.inc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_powerpc-inl.inc @@ -31,12 +31,12 @@ #include <cstdint> #include <cstdio> -#include "y_absl/base/attributes.h" -#include "y_absl/base/optimization.h" -#include "y_absl/base/port.h" -#include "y_absl/debugging/stacktrace.h" -#include "y_absl/debugging/internal/address_is_readable.h" -#include "y_absl/debugging/internal/vdso_support.h" // a no-op on non-elf or non-glibc systems +#include "y_absl/base/attributes.h" +#include "y_absl/base/optimization.h" +#include "y_absl/base/port.h" +#include "y_absl/debugging/stacktrace.h" +#include "y_absl/debugging/internal/address_is_readable.h" +#include "y_absl/debugging/internal/vdso_support.h" // a no-op on non-elf or non-glibc systems // Given a stack pointer, return the saved link register value. // Note that this is the link register for a callee. @@ -101,13 +101,13 @@ static void **NextStackFrame(void **old_sp, const void *uc) { // possibly be there. static const unsigned char *kernel_sigtramp_rt64_address = nullptr; if (kernel_symbol_status == kNotInitialized) { - y_absl::debugging_internal::VDSOSupport vdso; + y_absl::debugging_internal::VDSOSupport vdso; if (vdso.IsPresent()) { - y_absl::debugging_internal::VDSOSupport::SymbolInfo + y_absl::debugging_internal::VDSOSupport::SymbolInfo sigtramp_rt64_symbol_info; if (!vdso.LookupSymbol( "__kernel_sigtramp_rt64", "LINUX_2.6.15", - y_absl::debugging_internal::VDSOSupport::kVDSOSymbolType, + y_absl::debugging_internal::VDSOSupport::kVDSOSymbolType, &sigtramp_rt64_symbol_info) || sigtramp_rt64_symbol_info.address == nullptr) { // Unexpected: VDSO is present, yet the expected symbol is missing @@ -144,7 +144,7 @@ static void **NextStackFrame(void **old_sp, const void *uc) { // Check that alleged stack pointer is actually readable. This is to // prevent a "double fault" in case we hit the first fault due to e.g. // a stack corruption. - if (y_absl::debugging_internal::AddressIsReadable(sp_before_signal)) { + if (y_absl::debugging_internal::AddressIsReadable(sp_before_signal)) { // Alleged stack pointer is readable, use it for further unwinding. new_sp = sp_before_signal; } @@ -156,7 +156,7 @@ static void **NextStackFrame(void **old_sp, const void *uc) { return new_sp; } -// This ensures that y_absl::GetStackTrace sets up the Link Register properly. +// This ensures that y_absl::GetStackTrace sets up the Link Register properly. ABSL_ATTRIBUTE_NOINLINE static void AbslStacktracePowerPCDummyFunction() { ABSL_BLOCK_TAIL_CALL_OPTIMIZATION(); } @@ -200,7 +200,7 @@ static int UnwindImpl(void** result, int* sizes, int max_depth, int skip_count, // The outermost frame is set up by runtimes and it does not have a // caller frame, so it is skipped. - // The y_absl::GetStackFrames routine is called when we are in some + // The y_absl::GetStackFrames routine is called when we are in some // informational context (the failure signal handler for example). // Use the non-strict unwinding rules to produce a stack trace // that is as complete as possible (even if it contains a few @@ -240,7 +240,7 @@ static int UnwindImpl(void** result, int* sizes, int max_depth, int skip_count, return n; } -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { bool StackTraceWorksForTest() { @@ -248,6 +248,6 @@ bool StackTraceWorksForTest() { } } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_INTERNAL_STACKTRACE_POWERPC_INL_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_unimplemented-inl.inc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_unimplemented-inl.inc index 54dccaeae9..01a964c902 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_unimplemented-inl.inc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_unimplemented-inl.inc @@ -11,7 +11,7 @@ static int UnwindImpl(void** /* result */, int* /* sizes */, return 0; } -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { bool StackTraceWorksForTest() { @@ -19,6 +19,6 @@ bool StackTraceWorksForTest() { } } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_INTERNAL_STACKTRACE_UNIMPLEMENTED_INL_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_win32-inl.inc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_win32-inl.inc index 69bd7e3f2f..012af44b85 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_win32-inl.inc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_win32-inl.inc @@ -80,7 +80,7 @@ static int UnwindImpl(void** result, int* sizes, int max_depth, int skip_count, return n; } -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { bool StackTraceWorksForTest() { @@ -88,6 +88,6 @@ bool StackTraceWorksForTest() { } } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_INTERNAL_STACKTRACE_WIN32_INL_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_x86-inl.inc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_x86-inl.inc index 8936f8ca70..86dcce5eea 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_x86-inl.inc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/stacktrace_x86-inl.inc @@ -29,15 +29,15 @@ #include <cstdint> #include <limits> -#include "y_absl/base/macros.h" -#include "y_absl/base/port.h" -#include "y_absl/debugging/internal/address_is_readable.h" -#include "y_absl/debugging/internal/vdso_support.h" // a no-op on non-elf or non-glibc systems -#include "y_absl/debugging/stacktrace.h" +#include "y_absl/base/macros.h" +#include "y_absl/base/port.h" +#include "y_absl/debugging/internal/address_is_readable.h" +#include "y_absl/debugging/internal/vdso_support.h" // a no-op on non-elf or non-glibc systems +#include "y_absl/debugging/stacktrace.h" -#include "y_absl/base/internal/raw_logging.h" +#include "y_absl/base/internal/raw_logging.h" -using y_absl::debugging_internal::AddressIsReadable; +using y_absl::debugging_internal::AddressIsReadable; #if defined(__linux__) && defined(__i386__) // Count "push %reg" instructions in VDSO __kernel_vsyscall(), @@ -175,11 +175,11 @@ static void **NextStackFrame(void **old_fp, const void *uc, static const unsigned char *kernel_vsyscall_address = nullptr; if (num_push_instructions == -1) { #ifdef ABSL_HAVE_VDSO_SUPPORT - y_absl::debugging_internal::VDSOSupport vdso; + y_absl::debugging_internal::VDSOSupport vdso; if (vdso.IsPresent()) { - y_absl::debugging_internal::VDSOSupport::SymbolInfo + y_absl::debugging_internal::VDSOSupport::SymbolInfo rt_sigreturn_symbol_info; - y_absl::debugging_internal::VDSOSupport::SymbolInfo vsyscall_symbol_info; + y_absl::debugging_internal::VDSOSupport::SymbolInfo vsyscall_symbol_info; if (!vdso.LookupSymbol("__kernel_rt_sigreturn", "LINUX_2.5", STT_FUNC, &rt_sigreturn_symbol_info) || !vdso.LookupSymbol("__kernel_vsyscall", "LINUX_2.5", STT_FUNC, @@ -351,7 +351,7 @@ static int UnwindImpl(void **result, int *sizes, int max_depth, int skip_count, return n; } -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { bool StackTraceWorksForTest() { @@ -359,6 +359,6 @@ bool StackTraceWorksForTest() { } } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_INTERNAL_STACKTRACE_X86_INL_INC_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/symbolize.h b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/symbolize.h index e6e2b0724a..c26fe4af7a 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/symbolize.h +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/symbolize.h @@ -35,9 +35,9 @@ #include <elf.h> #include <link.h> // For ElfW() macro. #include <functional> -#include <util/generic/string.h> - -namespace y_absl { +#include <util/generic/string.h> + +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -58,7 +58,7 @@ bool GetSectionHeaderByName(int fd, const char *name, size_t name_len, } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_INTERNAL_HAVE_ELF_SYMBOLIZE @@ -74,7 +74,7 @@ ABSL_NAMESPACE_END #define ABSL_INTERNAL_HAVE_EMSCRIPTEN_SYMBOLIZE 1 #endif -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -136,7 +136,7 @@ bool GetFileMappingHint(const void** start, const void** end, uint64_t* offset, } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // __cplusplus diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/vdso_support.cc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/vdso_support.cc index 7905eba32f..056e983778 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/vdso_support.cc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/vdso_support.cc @@ -16,7 +16,7 @@ // // VDSOSupport -- a class representing kernel VDSO (if present). -#include "y_absl/debugging/internal/vdso_support.h" +#include "y_absl/debugging/internal/vdso_support.h" #ifdef ABSL_HAVE_VDSO_SUPPORT // defined in vdso_support.h @@ -42,9 +42,9 @@ #include <sys/auxv.h> #endif -#include "y_absl/base/dynamic_annotations.h" -#include "y_absl/base/internal/raw_logging.h" -#include "y_absl/base/port.h" +#include "y_absl/base/dynamic_annotations.h" +#include "y_absl/base/internal/raw_logging.h" +#include "y_absl/base/port.h" #ifndef AT_SYSINFO_EHDR #define AT_SYSINFO_EHDR 33 // for crosstoolv10 @@ -55,7 +55,7 @@ using Elf64_auxv_t = Elf64_Auxinfo; using Elf32_auxv_t = Elf32_Auxinfo; #endif -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -186,6 +186,6 @@ int GetCPU() { } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_HAVE_VDSO_SUPPORT diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/vdso_support.h b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/vdso_support.h index c0064b9fe1..c6888f7d46 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/vdso_support.h +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/internal/vdso_support.h @@ -41,8 +41,8 @@ #include <atomic> -#include "y_absl/base/attributes.h" -#include "y_absl/debugging/internal/elf_mem_image.h" +#include "y_absl/base/attributes.h" +#include "y_absl/debugging/internal/elf_mem_image.h" #ifdef ABSL_HAVE_ELF_MEM_IMAGE @@ -52,7 +52,7 @@ #define ABSL_HAVE_VDSO_SUPPORT 1 #endif -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -151,7 +151,7 @@ int GetCPU(); } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_HAVE_ELF_MEM_IMAGE diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check.cc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check.cc index ae5cf79fe2..236a644812 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check.cc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check.cc @@ -17,11 +17,11 @@ // therefore Abseil code which depends on these functions is conditioned on the // definition of LEAK_SANITIZER. #include "y_absl/base/attributes.h" -#include "y_absl/debugging/leak_check.h" +#include "y_absl/debugging/leak_check.h" #ifndef LEAK_SANITIZER -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN bool HaveLeakSanitizer() { return false; } bool LeakCheckerIsActive() { return false; } @@ -31,7 +31,7 @@ void UnRegisterLivePointers(const void*, size_t) { } LeakCheckDisabler::LeakCheckDisabler() { } LeakCheckDisabler::~LeakCheckDisabler() { } ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #else @@ -41,7 +41,7 @@ ABSL_NAMESPACE_END extern "C" ABSL_ATTRIBUTE_WEAK int __lsan_is_turned_off(); #endif -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN bool HaveLeakSanitizer() { return true; } @@ -64,6 +64,6 @@ void UnRegisterLivePointers(const void* ptr, size_t size) { LeakCheckDisabler::LeakCheckDisabler() { __lsan_disable(); } LeakCheckDisabler::~LeakCheckDisabler() { __lsan_enable(); } ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // LEAK_SANITIZER diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check.h b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check.h index d69f08f248..d939637d6b 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check.h +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check.h @@ -34,7 +34,7 @@ #include "y_absl/base/config.h" -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN // HaveLeakSanitizer() @@ -128,6 +128,6 @@ void RegisterLivePointers(const void* ptr, size_t size); void UnRegisterLivePointers(const void* ptr, size_t size); ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_LEAK_CHECK_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check/ya.make b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check/ya.make index f22152ef8a..a7f423e394 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check/ya.make +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check/ya.make @@ -17,7 +17,7 @@ ADDINCL( NO_COMPILER_WARNINGS() -SRCDIR(contrib/restricted/abseil-cpp-tstring/y_absl/debugging) +SRCDIR(contrib/restricted/abseil-cpp-tstring/y_absl/debugging) SRCS( leak_check.cc diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check_disable/ya.make b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check_disable/ya.make index 41792f1bc6..269d307c17 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check_disable/ya.make +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/leak_check_disable/ya.make @@ -17,7 +17,7 @@ ADDINCL( NO_COMPILER_WARNINGS() -SRCDIR(contrib/restricted/abseil-cpp-tstring/y_absl/debugging) +SRCDIR(contrib/restricted/abseil-cpp-tstring/y_absl/debugging) SRCS( leak_check_disable.cc diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/stacktrace.cc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/stacktrace.cc index 9263d6a2a8..6de1f01a93 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/stacktrace.cc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/stacktrace.cc @@ -31,34 +31,34 @@ // trying to use the unwinder to instrument malloc(). // // Note: if you add a new implementation here, make sure it works -// correctly when y_absl::GetStackTrace() is called with max_depth == 0. +// correctly when y_absl::GetStackTrace() is called with max_depth == 0. // Some code may do that. -#include "y_absl/debugging/stacktrace.h" +#include "y_absl/debugging/stacktrace.h" #include <atomic> -#include "y_absl/base/attributes.h" -#include "y_absl/base/port.h" -#include "y_absl/debugging/internal/stacktrace_config.h" +#include "y_absl/base/attributes.h" +#include "y_absl/base/port.h" +#include "y_absl/debugging/internal/stacktrace_config.h" #if defined(ABSL_STACKTRACE_INL_HEADER) #include ABSL_STACKTRACE_INL_HEADER #else # error Cannot calculate stack trace: will need to write for your environment -# include "y_absl/debugging/internal/stacktrace_aarch64-inl.inc" -# include "y_absl/debugging/internal/stacktrace_arm-inl.inc" +# include "y_absl/debugging/internal/stacktrace_aarch64-inl.inc" +# include "y_absl/debugging/internal/stacktrace_arm-inl.inc" # include "y_absl/debugging/internal/stacktrace_emscripten-inl.inc" -# include "y_absl/debugging/internal/stacktrace_generic-inl.inc" -# include "y_absl/debugging/internal/stacktrace_powerpc-inl.inc" +# include "y_absl/debugging/internal/stacktrace_generic-inl.inc" +# include "y_absl/debugging/internal/stacktrace_powerpc-inl.inc" # include "y_absl/debugging/internal/stacktrace_riscv-inl.inc" -# include "y_absl/debugging/internal/stacktrace_unimplemented-inl.inc" -# include "y_absl/debugging/internal/stacktrace_win32-inl.inc" -# include "y_absl/debugging/internal/stacktrace_x86-inl.inc" +# include "y_absl/debugging/internal/stacktrace_unimplemented-inl.inc" +# include "y_absl/debugging/internal/stacktrace_win32-inl.inc" +# include "y_absl/debugging/internal/stacktrace_x86-inl.inc" #endif -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace { @@ -139,4 +139,4 @@ int DefaultStackUnwinder(void** pcs, int* sizes, int depth, int skip, } ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/stacktrace.h b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/stacktrace.h index cbd48b986b..10dd5a7315 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/stacktrace.h +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/stacktrace.h @@ -33,7 +33,7 @@ #include "y_absl/base/config.h" -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN // GetStackFrames() @@ -41,7 +41,7 @@ ABSL_NAMESPACE_BEGIN // Records program counter values for up to `max_depth` frames, skipping the // most recent `skip_count` stack frames, stores their corresponding values // and sizes in `results` and `sizes` buffers, and returns the number of frames -// stored. (Note that the frame generated for the `y_absl::GetStackFrames()` +// stored. (Note that the frame generated for the `y_absl::GetStackFrames()` // routine itself is also skipped.) // // Example: @@ -51,7 +51,7 @@ ABSL_NAMESPACE_BEGIN // bar() { // void* result[10]; // int sizes[10]; -// int depth = y_absl::GetStackFrames(result, sizes, 10, 1); +// int depth = y_absl::GetStackFrames(result, sizes, 10, 1); // } // // The current stack frame would consist of three function calls: `bar()`, @@ -87,7 +87,7 @@ extern int GetStackFrames(void** result, int* sizes, int max_depth, // program counter values for up to `max_depth` frames, skipping the most recent // `skip_count` stack frames, stores their corresponding values and sizes in // `results` and `sizes` buffers, and returns the number of frames stored. (Note -// that the frame generated for the `y_absl::GetStackFramesWithContext()` routine +// that the frame generated for the `y_absl::GetStackFramesWithContext()` routine // itself is also skipped.) // // The `uc` parameter, if non-null, should be a pointer to a `ucontext_t` value @@ -111,7 +111,7 @@ extern int GetStackFramesWithContext(void** result, int* sizes, int max_depth, // Records program counter values for up to `max_depth` frames, skipping the // most recent `skip_count` stack frames, stores their corresponding values // in `results`, and returns the number of frames -// stored. Note that this function is similar to `y_absl::GetStackFrames()` +// stored. Note that this function is similar to `y_absl::GetStackFrames()` // except that it returns the stack trace only, and not stack frame sizes. // // Example: @@ -120,7 +120,7 @@ extern int GetStackFramesWithContext(void** result, int* sizes, int max_depth, // foo() { bar(); } // bar() { // void* result[10]; -// int depth = y_absl::GetStackTrace(result, 10, 1); +// int depth = y_absl::GetStackTrace(result, 10, 1); // } // // This produces: @@ -138,7 +138,7 @@ extern int GetStackTrace(void** result, int max_depth, int skip_count); // program counter values for up to `max_depth` frames, skipping the most recent // `skip_count` stack frames, stores their corresponding values in `results`, // and returns the number of frames stored. (Note that the frame generated for -// the `y_absl::GetStackFramesWithContext()` routine itself is also skipped.) +// the `y_absl::GetStackFramesWithContext()` routine itself is also skipped.) // // The `uc` parameter, if non-null, should be a pointer to a `ucontext_t` value // passed to a signal handler registered via the `sa_sigaction` field of a @@ -163,7 +163,7 @@ extern int GetStackTraceWithContext(void** result, int max_depth, // GetStack{Frames,Trace}{,WithContext}() functions above. // // The arguments passed to the unwinder function will match the -// arguments passed to `y_absl::GetStackFramesWithContext()` except that sizes +// arguments passed to `y_absl::GetStackFramesWithContext()` except that sizes // will be non-null iff the caller is interested in frame sizes. // // If unwinder is set to null, we revert to the default stack-tracing behavior. @@ -172,9 +172,9 @@ extern int GetStackTraceWithContext(void** result, int max_depth, // WARNING // ***************************************************************************** // -// y_absl::SetStackUnwinder is not suitable for general purpose use. It is +// y_absl::SetStackUnwinder is not suitable for general purpose use. It is // provided for custom runtimes. -// Some things to watch out for when calling `y_absl::SetStackUnwinder()`: +// Some things to watch out for when calling `y_absl::SetStackUnwinder()`: // // (a) The unwinder may be called from within signal handlers and // therefore must be async-signal-safe. @@ -207,7 +207,7 @@ extern void SetStackUnwinder(int (*unwinder)(void** pcs, int* sizes, // be null when called. // // The semantics are the same as the corresponding `GetStack*()` function in the -// case where `y_absl::SetStackUnwinder()` was never called. Equivalents are: +// case where `y_absl::SetStackUnwinder()` was never called. Equivalents are: // // null sizes | non-nullptr sizes // |==========================================================| @@ -226,6 +226,6 @@ namespace debugging_internal { extern bool StackTraceWorksForTest(); } // namespace debugging_internal ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_STACKTRACE_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/stacktrace/ya.make b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/stacktrace/ya.make index a56bdc8a4c..2337a8c6c1 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/stacktrace/ya.make +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/stacktrace/ya.make @@ -12,9 +12,9 @@ OWNER( LICENSE(Apache-2.0) PEERDIR( - contrib/restricted/abseil-cpp-tstring/y_absl/base/internal/raw_logging - contrib/restricted/abseil-cpp-tstring/y_absl/base/log_severity - contrib/restricted/abseil-cpp-tstring/y_absl/debugging + contrib/restricted/abseil-cpp-tstring/y_absl/base/internal/raw_logging + contrib/restricted/abseil-cpp-tstring/y_absl/base/log_severity + contrib/restricted/abseil-cpp-tstring/y_absl/debugging ) ADDINCL( @@ -23,7 +23,7 @@ ADDINCL( NO_COMPILER_WARNINGS() -SRCDIR(contrib/restricted/abseil-cpp-tstring/y_absl/debugging) +SRCDIR(contrib/restricted/abseil-cpp-tstring/y_absl/debugging) SRCS( stacktrace.cc diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize.cc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize.cc index 88c92a19ea..f2722db9c8 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize.cc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize.cc @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "y_absl/debugging/symbolize.h" +#include "y_absl/debugging/symbolize.h" #ifdef _WIN32 #include <winapifamily.h> @@ -24,15 +24,15 @@ #endif #if defined(ABSL_INTERNAL_HAVE_ELF_SYMBOLIZE) -#include "y_absl/debugging/symbolize_elf.inc" +#include "y_absl/debugging/symbolize_elf.inc" #elif defined(ABSL_INTERNAL_HAVE_SYMBOLIZE_WIN32) // The Windows Symbolizer only works if PDB files containing the debug info // are available to the program at runtime. -#include "y_absl/debugging/symbolize_win32.inc" +#include "y_absl/debugging/symbolize_win32.inc" #elif defined(__APPLE__) #include "y_absl/debugging/symbolize_darwin.inc" #elif defined(__EMSCRIPTEN__) #include "y_absl/debugging/symbolize_emscripten.inc" #else -#include "y_absl/debugging/symbolize_unimplemented.inc" +#include "y_absl/debugging/symbolize_unimplemented.inc" #endif diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize.h b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize.h index 2a99f65c83..f8eaff7527 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize.h +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize.h @@ -25,7 +25,7 @@ // * Implicitly, through the installation of an Abseil failure signal handler. // (See failure_signal_handler.h for more information.) // * By calling `Symbolize()` directly on a program counter you obtain through -// `y_absl::GetStackTrace()` or `y_absl::GetStackFrames()`. (See stacktrace.h +// `y_absl::GetStackTrace()` or `y_absl::GetStackFrames()`. (See stacktrace.h // for more information. // * By calling `Symbolize()` directly on a program counter you obtain through // other means (which would be platform-dependent). @@ -38,11 +38,11 @@ // // int main(int argc, char** argv) { // // Initialize the Symbolizer before installing the failure signal handler -// y_absl::InitializeSymbolizer(argv[0]); +// y_absl::InitializeSymbolizer(argv[0]); // // // Now you may install the failure signal handler -// y_absl::FailureSignalHandlerOptions options; -// y_absl::InstallFailureSignalHandler(options); +// y_absl::FailureSignalHandlerOptions options; +// y_absl::InstallFailureSignalHandler(options); // // // Start running your main program // ... @@ -52,9 +52,9 @@ #ifndef ABSL_DEBUGGING_SYMBOLIZE_H_ #define ABSL_DEBUGGING_SYMBOLIZE_H_ -#include "y_absl/debugging/internal/symbolize.h" +#include "y_absl/debugging/internal/symbolize.h" -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN // InitializeSymbolizer() @@ -67,7 +67,7 @@ ABSL_NAMESPACE_BEGIN // Example: // // int main(int argc, char *argv[]) { -// y_absl::InitializeSymbolizer(argv[0]); +// y_absl::InitializeSymbolizer(argv[0]); // // Now you can use the symbolizer // } void InitializeSymbolizer(const char* argv0); @@ -86,7 +86,7 @@ void InitializeSymbolizer(const char* argv0); // static void DumpPCAndSymbol(void *pc) { // char tmp[1024]; // const char *symbol = "(unknown)"; -// if (y_absl::Symbolize(pc, tmp, sizeof(tmp))) { +// if (y_absl::Symbolize(pc, tmp, sizeof(tmp))) { // symbol = tmp; // } // y_absl::PrintF("%p %s\n", pc, symbol); @@ -94,6 +94,6 @@ void InitializeSymbolizer(const char* argv0); bool Symbolize(const void *pc, char *out, int out_size); ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl #endif // ABSL_DEBUGGING_SYMBOLIZE_H_ diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize/ya.make b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize/ya.make index 58f9d70682..f500ff06c8 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize/ya.make +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize/ya.make @@ -12,14 +12,14 @@ OWNER( LICENSE(Apache-2.0) PEERDIR( - contrib/restricted/abseil-cpp-tstring/y_absl/base - contrib/restricted/abseil-cpp-tstring/y_absl/base/internal/low_level_alloc - contrib/restricted/abseil-cpp-tstring/y_absl/base/internal/raw_logging - contrib/restricted/abseil-cpp-tstring/y_absl/base/internal/spinlock_wait + contrib/restricted/abseil-cpp-tstring/y_absl/base + contrib/restricted/abseil-cpp-tstring/y_absl/base/internal/low_level_alloc + contrib/restricted/abseil-cpp-tstring/y_absl/base/internal/raw_logging + contrib/restricted/abseil-cpp-tstring/y_absl/base/internal/spinlock_wait contrib/restricted/abseil-cpp-tstring/y_absl/base/internal/throw_delegate - contrib/restricted/abseil-cpp-tstring/y_absl/base/log_severity - contrib/restricted/abseil-cpp-tstring/y_absl/debugging - contrib/restricted/abseil-cpp-tstring/y_absl/demangle + contrib/restricted/abseil-cpp-tstring/y_absl/base/log_severity + contrib/restricted/abseil-cpp-tstring/y_absl/debugging + contrib/restricted/abseil-cpp-tstring/y_absl/demangle contrib/restricted/abseil-cpp-tstring/y_absl/numeric contrib/restricted/abseil-cpp-tstring/y_absl/strings contrib/restricted/abseil-cpp-tstring/y_absl/strings/internal/absl_strings_internal @@ -31,7 +31,7 @@ ADDINCL( NO_COMPILER_WARNINGS() -SRCDIR(contrib/restricted/abseil-cpp-tstring/y_absl/debugging) +SRCDIR(contrib/restricted/abseil-cpp-tstring/y_absl/debugging) SRCS( symbolize.cc diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize_elf.inc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize_elf.inc index 18297405e3..515f825981 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize_elf.inc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize_elf.inc @@ -67,21 +67,21 @@ #include <cstdlib> #include <cstring> -#include "y_absl/base/casts.h" -#include "y_absl/base/dynamic_annotations.h" -#include "y_absl/base/internal/low_level_alloc.h" -#include "y_absl/base/internal/raw_logging.h" -#include "y_absl/base/internal/spinlock.h" -#include "y_absl/base/port.h" -#include "y_absl/debugging/internal/demangle.h" -#include "y_absl/debugging/internal/vdso_support.h" +#include "y_absl/base/casts.h" +#include "y_absl/base/dynamic_annotations.h" +#include "y_absl/base/internal/low_level_alloc.h" +#include "y_absl/base/internal/raw_logging.h" +#include "y_absl/base/internal/spinlock.h" +#include "y_absl/base/port.h" +#include "y_absl/debugging/internal/demangle.h" +#include "y_absl/debugging/internal/vdso_support.h" #include "y_absl/strings/string_view.h" #if defined(__FreeBSD__) && !defined(ElfW) #define ElfW(x) __ElfN(x) #endif -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN // Value of argv[0]. Used by MaybeInitializeObjFile(). @@ -1564,7 +1564,7 @@ bool Symbolize(const void *pc, char *out, int out_size) { } ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl extern "C" bool YAbslInternalGetFileMappingHint(const void **start, const void **end, uint64_t *offset, diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize_unimplemented.inc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize_unimplemented.inc index 4e55ed122f..779e171dcd 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize_unimplemented.inc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize_unimplemented.inc @@ -14,9 +14,9 @@ #include <cstdint> -#include "y_absl/base/internal/raw_logging.h" +#include "y_absl/base/internal/raw_logging.h" -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN namespace debugging_internal { @@ -37,4 +37,4 @@ void InitializeSymbolizer(const char*) {} bool Symbolize(const void *, char *, int) { return false; } ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize_win32.inc b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize_win32.inc index 81e0473f88..dacf49ea7a 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize_win32.inc +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/symbolize_win32.inc @@ -28,9 +28,9 @@ #include <algorithm> #include <cstring> -#include "y_absl/base/internal/raw_logging.h" +#include "y_absl/base/internal/raw_logging.h" -namespace y_absl { +namespace y_absl { ABSL_NAMESPACE_BEGIN static HANDLE process = NULL; @@ -78,4 +78,4 @@ bool Symbolize(const void* pc, char* out, int out_size) { } ABSL_NAMESPACE_END -} // namespace y_absl +} // namespace y_absl diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/ya.make b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/ya.make index d768f195c2..521c9e76c0 100644 --- a/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/ya.make +++ b/contrib/restricted/abseil-cpp-tstring/y_absl/debugging/ya.make @@ -12,8 +12,8 @@ LICENSE(Apache-2.0) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) PEERDIR( - contrib/restricted/abseil-cpp-tstring/y_absl/base/internal/raw_logging - contrib/restricted/abseil-cpp-tstring/y_absl/base/log_severity + contrib/restricted/abseil-cpp-tstring/y_absl/base/internal/raw_logging + contrib/restricted/abseil-cpp-tstring/y_absl/base/log_severity ) ADDINCL( |