We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8586c0e commit 4bf553eCopy full SHA for 4bf553e
clang/include/clang/AST/DeclBase.h
@@ -1391,9 +1391,7 @@ class DeclContextLookupResult {
1391
const_iterator end() const { return iterator(); }
1392
1393
bool empty() const { return Result.isNull(); }
1394
- bool isSingleResult() const {
1395
- return dyn_cast_if_present<NamedDecl *>(Result);
1396
- }
+ bool isSingleResult() const { return isa_and_present<NamedDecl *>(Result); }
1397
reference front() const { return *begin(); }
1398
1399
// Find the first declaration of the given type in the list. Note that this
0 commit comments