forked from OSchip/llvm-project
[clangd] NFC: Use more idiomatic way of checking for definition
This commit is contained in:
parent
56a8aee100
commit
f9201c70ad
|
@ -48,7 +48,7 @@ public:
|
|||
|
||||
bool VisitFunctionDecl(FunctionDecl *FD) {
|
||||
// Function definition will require redeclarations to be included.
|
||||
if (FD == FD->getDefinition())
|
||||
if (FD->isThisDeclarationADefinition())
|
||||
add(FD);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue