Skip to content

Commit 4bf553e

Browse files
committedJan 25, 2025
Address comments.
1 parent 8586c0e commit 4bf553e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎clang/include/clang/AST/DeclBase.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -1391,9 +1391,7 @@ class DeclContextLookupResult {
13911391
const_iterator end() const { return iterator(); }
13921392

13931393
bool empty() const { return Result.isNull(); }
1394-
bool isSingleResult() const {
1395-
return dyn_cast_if_present<NamedDecl *>(Result);
1396-
}
1394+
bool isSingleResult() const { return isa_and_present<NamedDecl *>(Result); }
13971395
reference front() const { return *begin(); }
13981396

13991397
// Find the first declaration of the given type in the list. Note that this

0 commit comments

Comments
 (0)