[clang-tools-extra] [clang-tidy] Sync ContainerSizeEmptyCheck with container-size-empty doc (PR #118459)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 3 02:12:13 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 2526d5b1689389da9b194b5ec2878cfb2f4aca93 3871b186e4ea0fbcc71c54ac4053256f5afa2289 --extensions h -- clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.h b/clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.h
index 5f189b426f..3aa4bdc496 100644
--- a/clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.h
+++ b/clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.h
@@ -21,7 +21,8 @@ namespace clang::tidy::readability {
/// instead of the `size()`/`length()` method. It shows clearer intent to use
/// `empty()`. Furthermore some containers may implement the `empty()` method
/// but not implement the `size()` or `length()` method. Using `empty()`
-/// whenever possible makes it easier to switch to another container in the future.
+/// whenever possible makes it easier to switch to another container in the
+/// future.
class ContainerSizeEmptyCheck : public ClangTidyCheck {
public:
ContainerSizeEmptyCheck(StringRef Name, ClangTidyContext *Context);
``````````
</details>
https://github.com/llvm/llvm-project/pull/118459
More information about the cfe-commits
mailing list