File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,11 @@ namespace clang::tidy::readability {
18
18
// / a call to `empty()`.
19
19
// /
20
20
// / The emptiness of a container should be checked using the `empty()` method
21
- // / instead of the `size()` method. It shows clearer intent to use `empty()`.
22
- // / Furthermore some containers may implement the `empty()` method but not
23
- // / implement the `size()` method. Using `empty()` whenever possible makes it
24
- // / easier to switch to another container in the future.
21
+ // / instead of the `size()`/`length()` method. It shows clearer intent to use
22
+ // / `empty()`. Furthermore some containers may implement the `empty()` method
23
+ // / but not implement the `size()` or `length()` method. Using `empty()`
24
+ // / whenever possible makes it easier to switch to another container in the
25
+ // / future.
25
26
class ContainerSizeEmptyCheck : public ClangTidyCheck {
26
27
public:
27
28
ContainerSizeEmptyCheck (StringRef Name, ClangTidyContext *Context);
You can’t perform that action at this time.
0 commit comments