-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stale TODO/Proto-rules #811
Comments
Sergey, we agree that this set of suggestions is up to your usual standard of quality. Could you please make these edits? |
I'd suggest these (small) ones for .8:
I'd suggest these for either .8 or post-.8:
We aim to cover these via lifetime rules:
I'd suggest abandoning the following:
|
There are currently 35 entries in the To-do section. Dropping 5 out of 6 suggested to be dropped by Herb (using directives is already covered by SF.6), dropping the 2 entries covered by lifetime rules, and dropping 11 of the issues already covered by existing rules/issues as noted in the first comment, I believe we're actually down to these 14
Of these (minus 4 that appear to be covered), the following 7 seem concrete enough to make rules:
and the following 3 seem philosophical and non-enforceable
shall I go ahead with creating 10 github issues for these and dropping the To-do section entirely? |
A number of entries in the To-do: Unclassified proto-rules are addressed in the main text:
addressed by C.164: Avoid conversion operators and C.46: By default, declare single-argument constructors explicit
addressed by ES.20: Always initialize an object and C.49: Prefer initialization to assignment in constructors
addressed by I.4: Make interfaces precisely and strongly typed
addressed by Con.1: By default, make objects immutable, Con.2: By default, make member functions const and the rest of the Con section, although const_iterators probably need a new Con rule.
addressed by ES.11: Use auto to avoid redundant repetition of type names
would be addressed by C.105: Give a constructor and Extent constructor when it's written (a stub rule is better than a line in the TODO list)
possibly addressed by F.43: Never (directly or indirectly) return a pointer or a reference to a local object? A little unclear given that lifetime safety is missing.
addressed by C.82: Don't call virtual functions in constructors and destructors
addressed by CP.20: Use RAII, never plain lock()/unlock()
addressed by CP.25: Prefer gsl::raii_thread over std::thread unless you plan to detach()
addressed by CP.21: Use std::lock() to acquire multiple mutexes
is one of the items already in issue CP guidelines for condition variables #554
is the subject of issue rule proposal: C.141 Prefer to make virtual functions private. #768 with pr dropping NVI from proto-rules due to no consensus on #768 #777
I believe all these should be dropped and the rest converted to open github issues (if it's unclear whether a rule should exist) or stub rules (if it's clear the rule should exist, but the details are not ready).
The text was updated successfully, but these errors were encountered: