pytorch/c10/util
Richard Barnes fca0f34b83 Switch c10::string_view to std::string_view (#139635)
Shortens `string_view_starts_with` to `starts_with`. Adds some missing headers. Isolates `c10_string_view` to use with `get_fully_qualified_name`.

Test Plan: Sandcastle

Reviewed By: ezyang

Differential Revision: D64833558

Pull Request resolved: https://github.com/pytorch/pytorch/pull/139635
Approved by: https://github.com/Skylion007, https://github.com/ezyang
2024-11-27 01:41:18 +00:00
..
AbortHandler.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
accumulate.h
AlignOf.h
ApproximateClock.cpp [Profiler] Fix ASAN Overflow Issues (#140441) 2024-11-13 21:30:32 +00:00
ApproximateClock.h
Array.h
ArrayRef.h Fix & unit test for c10::ArrayRef constructed from user-defined types (#139758) 2024-11-06 04:23:05 +00:00
Backtrace.cpp Use the unicode variant of the Windows API (#47422) (#138605) 2024-10-26 17:41:39 +00:00
Backtrace.h
BFloat16-inl.h [ROCm] CK-based GEMM (#131004) 2024-10-20 02:57:43 +00:00
BFloat16-math.h [PyTorch] Add isfinite to BFloat16-math.h (#135052) 2024-09-05 21:50:36 +00:00
Bfloat16.cpp
BFloat16.h Add C10_EMBEDDED to gate ostream usage in Half/BFloat16 (#140566) 2024-11-18 18:41:34 +00:00
bit_cast.h Use std::bit_cast as c10::bit_cast if available (#141035) 2024-11-19 20:43:45 +00:00
bits.h
Bitset.h Use clang-tidy 17 (#139678) 2024-11-05 16:00:25 +00:00
BUILD.bazel
build.bzl [pytorch][monitoring] Dynamic backend for WaitCounter (#135967) 2024-09-15 18:07:49 +00:00
C++17.cpp
C++17.h Remove some pre-cpp17 stuff (#138410) 2024-10-23 00:38:03 +00:00
CallOnce.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
complex.h Move complex<Half> from Half.h to complex.h (#140565) 2024-11-18 15:56:21 +00:00
complex_math.cpp
complex_math.h
complex_utils.h
ConstexprCrc.h Switch c10::string_view to std::string_view (#139635) 2024-11-27 01:41:18 +00:00
copysign.h
DeadlockDetection.cpp [Environment Variable][1/N] Use thread-safe env variable API in c10 (#119449) 2024-10-01 06:24:30 +00:00
DeadlockDetection.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
Deprecated.h Revert "Remove C10_DEPRECATED (#138406)" 2024-10-22 18:00:41 +00:00
DimVector.h
DynamicCounter.cpp Enable cppcoreguidelines-special-member-functions (#139132) 2024-11-06 13:42:20 +00:00
DynamicCounter.h [pytorch][counters] DynamicCounter (#132166) 2024-07-31 19:52:51 +00:00
env.cpp Revert "[Environment Variable][6/N] Use thread-safe getenv functions (#140200)" 2024-11-13 15:33:23 +00:00
env.h [Environment Variable][1/N] Use thread-safe env variable API in c10 (#119449) 2024-10-01 06:24:30 +00:00
error.cpp Add missing explicit include directive for <cerrno> in c10/util/error… (#141593) 2024-11-27 00:00:23 +00:00
error.h Add and use thread-safe strerror (#140472) 2024-11-19 04:24:17 +00:00
Exception.cpp Turn some variables and functions into static (#136847) 2024-10-29 17:01:56 +00:00
Exception.h Enable cppcoreguidelines-special-member-functions (#139132) 2024-11-06 13:42:20 +00:00
ExclusivelyOwned.h
ExclusivelyOwnedTensorTraits.h
FbcodeMaps.h
Flags.h Use TORCH_DECLARE_XXX (#139952) 2024-11-09 04:56:28 +00:00
flags_use_gflags.cpp
flags_use_no_gflags.cpp [1/N] Fix extra warnings brought by clang-tidy-17 (#137407) 2024-10-07 17:53:59 +00:00
flat_hash_map.h
Float8_e4m3fn-inl.h Enable clang-tidy on c10/util/Float8*.h (#120573) 2024-06-14 13:47:07 +00:00
Float8_e4m3fn.cpp
Float8_e4m3fn.h Enable clang-tidy on c10/util/Float8*.h (#120573) 2024-06-14 13:47:07 +00:00
Float8_e4m3fnuz-inl.h
Float8_e4m3fnuz.cpp Enable clang-tidy on c10/util/Float8*.h (#120573) 2024-06-14 13:47:07 +00:00
Float8_e4m3fnuz.h Enable clang-tidy on c10/util/Float8*.h (#120573) 2024-06-14 13:47:07 +00:00
Float8_e5m2-inl.h Enable torch.empty for float8 dtypes + deterministic mode + cpu (#128744) 2024-06-15 02:05:30 +00:00
Float8_e5m2.cpp Enable clang-tidy on c10/util/Float8*.h (#120573) 2024-06-14 13:47:07 +00:00
Float8_e5m2.h
Float8_e5m2fnuz-inl.h Enable torch.empty for float8 dtypes + deterministic mode + cpu (#128744) 2024-06-15 02:05:30 +00:00
Float8_e5m2fnuz.cpp Enable clang-tidy on c10/util/Float8*.h (#120573) 2024-06-14 13:47:07 +00:00
Float8_e5m2fnuz.h
Float8_fnuz_cvt.h Build SYCL kernels for ATen XPU ops on Native Windows (take 2) (#127390) 2024-06-06 01:41:06 +00:00
floating_point_utils.h Remove UB type punning from c10/util/floating_point_utils.h (#140567) 2024-11-18 18:41:34 +00:00
FunctionRef.h
Gauge.cpp add a new Guage API with an empty backend to PyTorch core (#134883) 2024-09-03 17:08:47 +00:00
Gauge.h [5/N] Fix extra warnings brought by clang-tidy-17 (#138403) 2024-10-21 02:59:54 +00:00
generic_math.h Revert "[ROCm] remove caffe2 from hipify (#137157)" 2024-10-08 17:45:45 +00:00
Half-inl.h [PyTorch] Half: don't disable direct conversion to/from float on mobile (#130465) 2024-07-12 19:46:30 +00:00
Half.cpp
Half.h Unbreak CUDA 11.4 build of Half.h (#141173) 2024-11-21 16:36:38 +00:00
hash.h Fix Wextra-semi warnings (#139000) 2024-10-28 21:48:51 +00:00
IdWrapper.h
int128.cpp
int128.h [1/N] Change static functions in headers to inline (#127727) 2024-06-03 04:34:36 +00:00
intrusive_ptr.cpp
intrusive_ptr.h [11/N] Fix extra warnings brought by clang-tidy-17 (#139599) 2024-11-04 23:57:41 +00:00
irange.h [PyTorch] Remove unnecessary include of c10/util/Exception.h in irange.h (#136202) 2024-09-18 16:57:15 +00:00
Lazy.h [5/N] Fix extra warnings brought by clang-tidy-17 (#138403) 2024-10-21 02:59:54 +00:00
LeftRight.cpp
LeftRight.h Enable cppcoreguidelines-special-member-functions (#139132) 2024-11-06 13:42:20 +00:00
llvmMathExtras.h
Load.h
Logging.cpp Turn some variables and functions into static (#136847) 2024-10-29 17:01:56 +00:00
Logging.h C10_UNUSED to [[maybe_unused]] (#6357) (#138364) 2024-10-19 13:17:43 +00:00
logging_is_google_glog.h
logging_is_not_google_glog.h [1/N] Fix Wunused-parameter warnings (#130924) 2024-07-19 06:14:51 +00:00
MathConstants.cpp
MathConstants.h
MaybeOwned.h
Metaprogramming.cpp
Metaprogramming.h
NetworkFlow.cpp Switch c10::string_view to std::string_view (#139635) 2024-11-27 01:41:18 +00:00
NetworkFlow.h C++ network flow implementation in c10 (#132188) 2024-08-21 18:40:54 +00:00
numa.cpp
numa.h
Optional.cpp
Optional.h Eliminate c10::value_or_else (#138818) 2024-10-25 17:59:01 +00:00
OptionalArrayRef.h [1/N] Change #include <c10/util/Optional.h> to #include <optional> (#128301) 2024-07-08 07:03:53 +00:00
order_preserving_flat_hash_map.h Enable cppcoreguidelines-special-member-functions (#139132) 2024-11-06 13:42:20 +00:00
overflows.h move c10::overflows to its own header (#140564) 2024-11-18 15:56:21 +00:00
overloaded.h
ParallelGuard.cpp Turn some variables and functions into static (#136847) 2024-10-29 17:01:56 +00:00
ParallelGuard.h
python_stub.h
qint8.h
qint32.h
quint2x4.h
quint4x2.h
quint8.h
Registry.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
safe_numerics.h
ScopeExit.h
signal_handler.cpp Use clang-tidy 17 (#139678) 2024-11-05 16:00:25 +00:00
signal_handler.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
SmallBuffer.h
SmallVector.cpp
SmallVector.h std::value/std::type -> std::_v/std::_t (#138746) 2024-10-26 20:59:24 +00:00
sparse_bitset.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
ssize.h
static_tracepoint.h
static_tracepoint_elfx86.h Flag TORCH_SDT_SEMAPHORE as being name resovable (#141191) 2024-11-23 01:39:44 +00:00
strides.h [1/N] Change static functions in headers to inline (#127727) 2024-06-03 04:34:36 +00:00
string_utils.h Eliminate c10 string_utils (#138499) 2024-10-23 13:40:19 +00:00
string_view.h Switch c10::string_view to std::string_view (#139635) 2024-11-27 01:41:18 +00:00
StringUtil.cpp Switch c10::string_view to std::string_view (#139635) 2024-11-27 01:41:18 +00:00
StringUtil.h Switch c10::string_view to std::string_view (#139635) 2024-11-27 01:41:18 +00:00
strong_type.h std::value/std::type -> std::_v/std::_t (#138746) 2024-10-26 20:59:24 +00:00
Synchronized.h [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
tempfile.cpp Add and use thread-safe strerror (#140472) 2024-11-19 04:24:17 +00:00
tempfile.h
thread_name.cpp Add missing #include <array> to thread_name.cpp (#128664) 2024-06-14 07:49:09 +00:00
thread_name.h expose set_thread_name to Python and set thread names (#128448) 2024-06-13 16:38:23 +00:00
ThreadLocal.h [2/N] Enable cppcoreguidelines-special-member-functions (#138670) 2024-10-24 04:35:18 +00:00
ThreadLocalDebugInfo.cpp
ThreadLocalDebugInfo.h [2/N] Enable cppcoreguidelines-special-member-functions (#138670) 2024-10-24 04:35:18 +00:00
Type.h
Type_demangle.cpp
Type_no_demangle.cpp
TypeCast.cpp [codemod] Add [[noreturn]] to 2 files inc caffe2/c10/util/TypeCast.cpp (#129575) 2024-06-27 17:23:22 +00:00
TypeCast.h move c10::overflows to its own header (#140564) 2024-11-18 15:56:21 +00:00
typeid.cpp
typeid.h [2/N] Fix Wextra-semi warnings (#139142) 2024-10-29 08:14:37 +00:00
TypeIndex.h Switch c10::string_view to std::string_view (#139635) 2024-11-27 01:41:18 +00:00
TypeList.cpp
TypeList.h
TypeSafeSignMath.h [2/N] Change static functions in headers to inline (#127764) 2024-06-04 00:49:04 +00:00
TypeTraits.cpp
TypeTraits.h
Unicode.cpp
Unicode.h
UniqueVoidPtr.cpp
UniqueVoidPtr.h Eliminate C10_NODISCARD (#138336) 2024-10-19 02:54:06 +00:00
Unroll.h
WaitCounter.cpp [4/N] Fix cppcoreguidelines-special-member-functions warnings (#139027) 2024-10-29 00:18:18 +00:00
WaitCounter.h [5/N] Fix extra warnings brought by clang-tidy-17 (#138403) 2024-10-21 02:59:54 +00:00
WaitCounterDynamicBackend.h [pytorch][monitoring] Dynamic backend for WaitCounter (#135967) 2024-09-15 18:07:49 +00:00
win32-headers.h