skorodumov-s 3740591e5c Add comment about necessary nanny settings 2 лет назад
..
charset b981cca279 Enable linux-arm platform. 2 лет назад
datetime 62b3eaa578 speedup GmTimeR function 2 лет назад
digest 06e5c21a83 fix ya.make 2 лет назад
draft 9321bf2b0b IGNIETFERRO-1922 Move atomics from util to library/cpp/deprecated 2 лет назад
folder 4d2299379e Fix GC in kv tablet, 2 лет назад
generic 128195d32b [util]TLazyValue: remove operator bool and Defined 2 лет назад
memory 06e5c21a83 fix ya.make 2 лет назад
network 6bbe00187e fix coveriy issue 16907: Uninitialized pointer field 2 лет назад
random 06e5c21a83 fix ya.make 2 лет назад
stream 77fedfb145 util: Flatten cython tests layout 2 лет назад
string dd2db1bb6a Introduce TryFromString returning TMaybe 2 лет назад
system 3740591e5c Add comment about necessary nanny settings 2 лет назад
tests 06e5c21a83 fix ya.make 2 лет назад
thread 8895ca7eea Add ydb changelog 2 лет назад
CMakeLists.darwin.txt d10b241085 [util] Fix TFunctionRef under MSVC 2 лет назад
CMakeLists.linux-aarch64.txt b981cca279 Enable linux-arm platform. 2 лет назад
CMakeLists.linux.txt d10b241085 [util] Fix TFunctionRef under MSVC 2 лет назад
CMakeLists.txt b981cca279 Enable linux-arm platform. 2 лет назад
README.md e13b11cc55 Restoring authorship annotation for <miroslav2@yandex-team.ru>. Commit 2 of 2. 3 лет назад
str_stl.cpp d3a398281c Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2. 3 лет назад
str_stl.h a67b2a41b1 Fix computation of hashes for string constants 2 лет назад
ysafeptr.cpp addb3626ed Restoring authorship annotation for <denplusplus@yandex-team.ru>. Commit 2 of 2. 3 лет назад
ysafeptr.h 10807864ac Restoring authorship annotation for <kimkim@yandex-team.ru>. Commit 2 of 2. 3 лет назад
ysaveload.cpp addb3626ed Restoring authorship annotation for <denplusplus@yandex-team.ru>. Commit 2 of 2. 3 лет назад
ysaveload.h fdfd71136a Restoring authorship annotation for <breqwas@yandex-team.ru>. Commit 2 of 2. 3 лет назад
ysaveload_ut.cpp e96ef596ac prepare to split hash.h into hash_table.h hash.h and multi_hash_map.h 2 лет назад

README.md

Coding style

Style guide for the util folder is a stricter version of general style guide (mostly in terms of ambiguity resolution).

  • all {} must be in K&R style
  • &, * tied closer to a type, not to variable
  • always use using not typedef
  • even a single line block must be in braces {}:

    if (A) {
       B();
    }
    
  • _ at the end of private data member of a class - First_, Second_

  • every .h file must be accompanied with corresponding .cpp to avoid a leakage and check that it is self contained

  • prohibited to use printf-like functions

Things declared in the general style guide, which sometimes are missed:

  • template <, not template<
  • noexcept, not throw () nor throw(), not required for destructors
  • indents inside namespace same as inside class

Requirements for a new code (and for corrections in an old code which involves change of behaviour) in util:

  • presence of UNIT-tests
  • presence of comments in Doxygen style
  • accessors without Get prefix (Length(), but not GetLength())

This guide is not a mandatory as there is the general style guide. Nevertheless if it is not followed, then a next ya style . run in the util folder will undeservedly update authors of some lines of code.

Thus before a commit it is recommended to run ya style . in the util folder.

Don't forget to run tests from folder tests: ya make -t tests

Note: tests are designed to run using autocheck/ solution.

Submitting a patch

In order to make a commit, you have to get approval from one of util members.

If no comments have been received withing 1–2 days, it is OK to send a graceful ping into Igni et ferro chat.

Certain exceptions apply. The following trivial changes do not need to be reviewed:

  • docs, comments, typo fixes,
  • renaming of an internal variable to match the styleguide.

Whenever a breaking change happens to accidentally land into trunk, reverting it does not need to be reviewed.

Stale/abandoned review request policy

Sometimes review requests are neither merged nor discarded, and stay in review request queue forever. To limit the incoming review request queue size, util reviewers follow these rules:

  • A review request is considered stale if it is not updated by its author for at least 3 months, or if its author has left Yandex.
  • A stale review request may be marked as discarded by util reviewers.

Review requests discarded as stale may be reopened or resubmitted by any committer willing to push them to completion.

Note: It's an author's duty to push the review request to completion. If util reviewers stop responding to updates, they should be politely pinged via appropriate means of communication.