summaryrefslogtreecommitdiffstats
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
...
* removing dangerous cast operatorermolovd2025-11-131-4/+6
| | | | commit_hash:44a5b05387723256ff3e098559780727e8b542e3
* Simplify: Y_ASSERT already contains Y_UNUSED for NDEBUG caseakhropov2025-11-111-3/+0
| | | | commit_hash:b5bb48dba5876cb5fa844ea640062e9ba3d05e60
* Intermediate changesrobot-piglet2025-11-071-1/+1
| | | | commit_hash:bfe9fd61c4546f7d926201a1207947680008e8c8
* STLPort is no longer supported.akhropov2025-11-062-4/+0
| | | | commit_hash:86a5d56bc280e1c3a543e9649e6fec01e0e6d4b1
* Intermediate changesrobot-piglet2025-11-032-5/+1
| | | | commit_hash:3eaa0363a0a20d6baf96d02762d2656dc18cf1b1
* Intermediate changesrobot-piglet2025-11-031-3/+0
| | | | commit_hash:35957e20f0bc2213a543cff063d4b81f79621304
* Fix grammarakhropov2025-11-021-14/+14
| | | | commit_hash:cc9c4f3b15352d534dd69064a2ba4bbecb7bc117
* Intermediate changesrobot-piglet2025-10-301-1/+1
| | | | commit_hash:f8ba65c44983292742045e86a3da24e5bc7d130c
* is_constructible_v for Make-ptrs functions (MakeHolder)ilnurkh2025-10-291-1/+1
| | | | commit_hash:f49e7f6d65b455df3297b7b534949a9ef9236e0c
* Use a more conventional return value check compatible with MSVC tools 14.4*.akhropov2025-10-291-2/+2
| | | | commit_hash:044e079ab391ee08bb3a3a2b78e8db01fef63d53
* Avoid constructing ill-formed `std::basic_string_view<const char>`borman2025-10-271-5/+5
| | | | | | | | Since libc++19, only `std::char_traits<char>` is defined: https://github.com/llvm/llvm-project/commit/e30a148b098d462d0267c479cd9e4783363c2761 This makes usage of `std::char_traits<const char>`, `std::char_traits<unsigned char>`, etc invalid. C++20 deduction guides are now used to infer proper `Char` type; while also avoiding being overly specific with `type_traits`. commit_hash:c5ffaef9ef1c8b462d2fdf0e080a43d5cd4c4ca7
* is_constructible_v for Make-ptrs functions (without MakeHolder)ilnurkh2025-10-261-3/+3
| | | | commit_hash:bbae3f9fc58d05f98cd441f78cf58ebace8ee465
* Intermediate changesrobot-piglet2025-10-261-1/+0
| | | | commit_hash:ea5ee1bde916e3ead28b76ba317ef904152dd24d
* is_constructible_v check for TMaybe::emplace methodsilnurkh2025-10-221-4/+4
| | | | commit_hash:d08428835a793ed8f62b2833dc4d53e433226f4b
* Y_LIFETIME_BOUND for TMaybe-emplace methodsilnurkh2025-10-222-4/+10
| | | | commit_hash:5f04d6a91faac7a08c1858e1d942352a1154c11f
* StringSplitter: splitting an empty string should always produce exactly one ↵swarmer2025-10-223-4/+52
| | | | | | | | token Previously, the split operation would produce incorrect results if the bound of the user-provided string overlaps with the address of a default-constructed string. Introduce a sentinel value to ensure that such overlap are no longer possible. Use additional boolean flag to check for the similar problem in the iterator-based version of algorithm. commit_hash:6590787dc4c0319375efa3630a7146e31eed5e89
* Add GetOrEmplace for TMaybeilnurkh2025-10-211-0/+22
| | | | commit_hash:3e9ec510809df7c44c56a28e1795cb6363d54e9f
* Check element size for other TArrayRef constructors, not only from Containerakhropov2025-10-172-5/+57
| | | | commit_hash:a53c0e1509e346d4e39464430ba21c3595315734
* Fix backtrace print in assertmag1str02025-10-141-2/+10
| | | | commit_hash:1bc8f82703745c9c7e06f2239735548ccd65997c
* Annotate 'ysize' as deprecated.akhropov2025-10-145-0/+5
| | | | commit_hash:2f5a44083a78a69d4d717b90d401af6f017e990d
* Use CameCase for static constantsmikhnenko2025-10-101-2/+2
| | | | commit_hash:fc23ef3f9e711cdb0253f459d0a3ecc82c0a882c
* Add a description explaining the rationale for the SIZEOF_ definitionsakhropov2025-10-081-0/+3
| | | | commit_hash:cd223dae0a4b3919808abb2d312f7e9936665424
* Use 'size' instead of 'ysize'.akhropov2025-10-073-3/+3
| | | | commit_hash:2992608384ed9b84c3f523bd2225a7ece2eeb9fc
* Correct grammarakhropov2025-10-061-2/+2
| | | | commit_hash:44304dc1e157320ff3e9c4026dabc8609c04ef04
* 16-bit platforms are not supported anymore.akhropov2025-10-061-1/+1
| | | | commit_hash:b336c8247b40aa5c43fcf82c154a7d4fdd08e9a5
* Correct "@throws" descriptionsakhropov2025-10-051-17/+18
| | | | commit_hash:5421bf011ff73356a4adf0b73eeff9ab7e6cb6db
* Fix return value description of GetEnvakhropov2025-10-051-1/+1
| | | | commit_hash:afbe8d7cf5642658803f7377b92c59b332ac2a46
* Mention all functionsakhropov2025-10-051-4/+4
| | | | commit_hash:87dfa7bd1279801c976ae3d9dc025eb0a4492ddf
* Fix in docs: UNUSED -> Y_UNUSEDakhropov2025-10-051-1/+1
| | | | commit_hash:82a20efd47b7df97b99e63d7fd9d79e7e93a7817
* TDuration/TInstant named constructors should return staturated value on overflowswarmer2025-10-032-43/+143
| | | | | | `TDuration::Seconds(sec)` now returns `TDuration::Max()` if `sec` is greater than the largest representable value. Previously, a silent wrap-around could produce a significantly shorter interval (even a zero one). commit_hash:552fde08fa3b8201ede23894bb363df2d6bbd5af
* Intermediate changesrobot-piglet2025-10-031-1/+5
| | | | commit_hash:86194fc61838b6eca04dee924d646ca679907fbc
* Intermediate changesrobot-piglet2025-10-031-1/+1
| | | | commit_hash:bae4c0693bea21daa09eb9fb12478a5611ae5ffc
* Dont scan stacknechda2025-10-021-18/+0
| | | | | Remove stack scaning commit_hash:bf23dab42b2595d34beaba1f571e38763a222300
* Visit -> std::visit in documentation as well.akhropov2025-10-021-3/+3
| | | | commit_hash:cabbe1fff9c8d37ce2ee165b5f9aeb0cd27ba383
* Consistency: Make TFakeMutex move-only, explicitly declare TMutex as move-onlyakhropov2025-10-011-4/+2
| | | | commit_hash:11d3f50cee3ad3dd179d52280ddcb8ea225719ec
* Fix naming reported by clang-tidymikhnenko2025-10-012-9/+9
| | | | commit_hash:4c9065f19b98cd54fb2a25a3aec88f682420ba9b
* Scan stack for args in darwin dbgnechda2025-09-261-27/+18
| | | | | Use va_args for extract stack-args commit_hash:db85572af5ed95ebea715b918986d2932e044733
* Intermediate changesrobot-piglet2025-09-251-2/+0
| | | | commit_hash:756a85825380f76f173d751aad3f91c4442046e9
* feat util: fix ThreadSanitizer reported data raceantoshkka2025-09-251-8/+13
| | | | | | | | | | | | | ``` WARNING: ThreadSanitizer: data race (pid=123179) Read of size 8 at 0x0000065aad98 by thread T14: #0 NSystemInfo::CachedNumberOfCpus() util/system/info.cpp:241:10 (taxi-uservices-userver-core-tests+0x4155bba) #1 engine::(anonymous namespace)::TaskProcessorThreadStartedHook() userver/core/src/engine/task/task_processor.cpp:100:15 (taxi-uservices-userver-core-tests+0x5306bc8) #2 engine::TaskProcessor::PrepareWorkerThread(unsigned long) userver/core/src/engine/task/task_processor.cpp:347:5 (taxi-uservices-userver-core-tests+0x5306bc8) ``` The change on a hot path is equivalent to the previously compiler generated x86 code (just a `load` instruction). On other platforms this could actually fix a data race. commit_hash:acb1fe1b8f3075cc27b18aab4f1bd0b88292c270
* Looking for the return address more persistentlynechda2025-09-241-3/+28
| | | | commit_hash:dafe73fcca759e0bf13ca38bdd4e320c8d85c7b6
* Use 'size_t' instead of 'yint' that is not known in utilakhropov2025-09-211-1/+1
| | | | commit_hash:c2fb7faa6674ce1b0d6a2d3cd2f0ef45a461ea0d
* Remove a useless commentakhropov2025-09-211-2/+0
| | | | commit_hash:678d75c67121dce4b0007e25b24c4e6ef173f8a8
* Fix `-Wignored-qualifiers` improved in clang20 in utilmikhnenko2025-09-131-1/+1
| | | | | Fix errors from [here](https://nda.ya.ru/t/6hgrAk757JpcZP commit_hash:46e426f3170c5b9881f552314f602e57662334a6
* no COW mode for TStringpg2025-09-091-0/+20
| | | | commit_hash:cac5390ad9d9bc5822ca2f6ebd362a55d4190759
* fix bug in GetMemInfo on freebsdtldr2025-08-291-0/+4
| | | | commit_hash:47d410520be641eaa93ab44b92da8a095e72d301
* Add forward-declaration of TBlob to util/generic/fwd.hthegeorg2025-08-221-0/+2
| | | | | While the class itself it defined in `util/memory/blob.h`, it seems better to reuse an existing `fwd.h` rather than creating a new one. commit_hash:3e373ab68ced34c709ee12e3ce5b544376ac8417
* Don't use deprecated literal operatornamorniradnug2025-08-201-13/+13
| | | | | | Newer clang versions produce the `deprecated-literal-operator` warning. See https://reviews.llvm.org/D152632 and https://wg21.link/CWG2521. commit_hash:52ebdc26dfe511681a1d73f24a8ba96592bb1b47
* TTempFile should be move-only. Implement proper move semantics.akhropov2025-08-152-5/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | #### Реализация move-семантики для TTempFile и оптимизация передачи параметров 📝 - 🔄 **Сделал TTempFile move-only классом**: - Удалили копирующий конструктор и оператор присванивания - Добавили перемещающий конструктор и оператор с noexcept - Изменили хранение имени файла в TMaybe для безопасного перемещения - Добавили явное удаление временного файла в операторе перемещения - 🏗 **Оптимизировали передачу параметров в различных классах**: - Заменили передачу объектов по значению/константной ссылке на перемещение (std::move) - Основные изменения коснулись параметров среды (envParams) и аргументов процессов - ✨ **Улучшили обработку временных файлов**: - Убрали лишнее поле TTempFile из TSmallEnvParams - Вектор временных файлов теперь корректно хранится и обрабатывается через move-семантику - 📝 **Прочие улучшения**: - Исправлены контексты вызовов, где используется временная файловая система - Оптимизированы аргументы запуска процессов через std::move - Добавлено перемещение для аргументов стандартных потоков ввода-вывода --- **Оценить качество описания можно [здесь](https://nda.ya.ru/t/_MxIaV0Q7FnCMG** <a href="https://nda.ya.ru/t/qa0kX64r7DqvtN"><font size="2">Autodescription by Code Assistant</font></a> commit_hash:474bcbb9db8c7dc14d7aa204991ecdb4611e8e87
* Intermediate changesrobot-piglet2025-08-151-1/+1
| | | | commit_hash:c453d8ab5fbf0440dec8356e0f741bfe25d48033
* TIntrusivePtr is not needed hereakhropov2025-08-112-3/+2
| | | | commit_hash:54b9e74039cd4f86cc8ab610b27005a5199af4f9