thegeorg a6e6da86b7 Fix -Wnon-virtual-dtor in util and gtest wrapper | 5 days ago | |
---|---|---|
.. | ||
charset | 2 months ago | |
datetime | 2 months ago | |
digest | 2 months ago | |
draft | 2 months ago | |
folder | 2 months ago | |
generic | 1 week ago | |
memory | 2 months ago | |
network | 2 months ago | |
random | 4 months ago | |
stream | 2 months ago | |
string | 2 months ago | |
system | 1 week ago | |
tests | 1 year ago | |
thread | 2 months ago | |
ut | 10 months ago | |
README.md | 2 months ago | |
linters.make.inc | 1 month ago | |
str_stl.cpp | 3 years ago | |
str_stl.h | 1 week ago | |
ya.make | 3 months ago | |
ysafeptr.cpp | 3 years ago | |
ysafeptr.h | 2 months ago | |
ysaveload.cpp | 3 years ago | |
ysaveload.h | 2 months ago | |
ysaveload_ut.cpp | 5 days ago |
Style guide for the util folder is a stricter version of general style guide (mostly in terms of ambiguity resolution).
using
not typedef
First_
, Second_
printf
-like functionsThings declared in the general style guide, which sometimes are missed:
template <
, not template<
noexcept
, not throw ()
nor throw()
, not required for destructorsnamespace
same as inside class
Requirements for a new code (and for corrections in an old code which involves change of behaviour) in util:
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.
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:
Whenever a breaking change happens to accidentally land into trunk, reverting it does not need to be reviewed.
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:
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.