aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-09-18 11:07:50 -0700
committerKazu Hirata <kazu@google.com>2022-09-18 11:07:50 -0700
commitabbe9c561db3abccd00936f6b2fc5a8b7b5486bb (patch)
treec7a43615bb6c34ab1aaed19babe78af05d684eba /clang/lib/Sema/SemaCodeComplete.cpp
parentc9696322bd7b5220b6d4346272b767fdf6eaa698 (diff)
downloadllvm-abbe9c561db3abccd00936f6b2fc5a8b7b5486bb.zip
llvm-abbe9c561db3abccd00936f6b2fc5a8b7b5486bb.tar.gz
llvm-abbe9c561db3abccd00936f6b2fc5a8b7b5486bb.tar.bz2
[clang] Use x.empty() instead of llvm::empty(x) (NFC)
I'm planning to deprecate and eventually remove llvm::empty. Note that no use of llvm::empty requires the ability of llvm::empty to determine the emptiness from begin/end only.
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
-rw-r--r--clang/lib/Sema/SemaCodeComplete.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp
index c80605b..c8eac7b 100644
--- a/clang/lib/Sema/SemaCodeComplete.cpp
+++ b/clang/lib/Sema/SemaCodeComplete.cpp
@@ -1231,8 +1231,8 @@ static OverloadCompare compareOverloads(const CXXMethodDecl &Candidate,
if (Candidate.parameters()[I]->getType().getCanonicalType() !=
Incumbent.parameters()[I]->getType().getCanonicalType())
return OverloadCompare::BothViable;
- if (!llvm::empty(Candidate.specific_attrs<EnableIfAttr>()) ||
- !llvm::empty(Incumbent.specific_attrs<EnableIfAttr>()))
+ if (!Candidate.specific_attrs<EnableIfAttr>().empty() ||
+ !Incumbent.specific_attrs<EnableIfAttr>().empty())
return OverloadCompare::BothViable;
// At this point, we know calls can't pick one or the other based on
// arguments, so one of the two must win. (Or both fail, handled elsewhere).