aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/modernize/UseConstraintsCheck.cpp
diff options
context:
space:
mode:
authorPiotr Zegar <me@piotrzegar.pl>2023-08-26 17:59:45 +0000
committerPiotr Zegar <me@piotrzegar.pl>2023-08-27 08:52:10 +0000
commitc5a4f29ef02a48caddca3ab82dbd364ca9db558b (patch)
treeab23b84035b9f50078f5c7b06c161a8e2d1c9233 /clang-tools-extra/clang-tidy/modernize/UseConstraintsCheck.cpp
parentc8644b18f570be9d26d83cdeeb2369cd3cbddaf1 (diff)
downloadllvm-c5a4f29ef02a48caddca3ab82dbd364ca9db558b.zip
llvm-c5a4f29ef02a48caddca3ab82dbd364ca9db558b.tar.gz
llvm-c5a4f29ef02a48caddca3ab82dbd364ca9db558b.tar.bz2
[clang-tidy][NFC] Fix readability-container-size-empty findings
Fix issues found by clang-tidy in clang-tidy source directory.
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/UseConstraintsCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/modernize/UseConstraintsCheck.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/UseConstraintsCheck.cpp b/clang-tools-extra/clang-tidy/modernize/UseConstraintsCheck.cpp
index 951cc2f..7407418 100644
--- a/clang-tools-extra/clang-tidy/modernize/UseConstraintsCheck.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/UseConstraintsCheck.cpp
@@ -353,7 +353,7 @@ static std::vector<FixItHint> handleReturnType(const FunctionDecl *Function,
SmallVector<const Expr *, 3> ExistingConstraints;
Function->getAssociatedConstraints(ExistingConstraints);
- if (ExistingConstraints.size() > 0) {
+ if (!ExistingConstraints.empty()) {
// FIXME - Support adding new constraints to existing ones. Do we need to
// consider subsumption?
return {};
@@ -401,7 +401,7 @@ handleTrailingTemplateType(const FunctionTemplateDecl *FunctionTemplate,
SmallVector<const Expr *, 3> ExistingConstraints;
Function->getAssociatedConstraints(ExistingConstraints);
- if (ExistingConstraints.size() > 0) {
+ if (!ExistingConstraints.empty()) {
// FIXME - Support adding new constraints to existing ones. Do we need to
// consider subsumption?
return {};