[clangd] NFC: Use more idiomatic way of checking for definition

This commit is contained in:
Kirill Bobyrev 2021-10-28 12:25:12 +02:00
parent 56a8aee100
commit f9201c70ad
No known key found for this signature in database
GPG Key ID: 2307C055C8384FA0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}