diff options
-rw-r--r-- | clang-tools-extra/clangd/XRefs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/XRefs.cpp b/clang-tools-extra/clangd/XRefs.cpp index b867a55dd84..960deea3b68 100644 --- a/clang-tools-extra/clangd/XRefs.cpp +++ b/clang-tools-extra/clangd/XRefs.cpp @@ -21,7 +21,7 @@ namespace { // Get the definition from a given declaration `D`. // Return nullptr if no definition is found, or the declaration type of `D` is // not supported. -const Decl* GetDefinition(const Decl* D) { +const Decl *GetDefinition(const Decl *D) { assert(D); if (const auto *TD = dyn_cast<TagDecl>(D)) return TD->getDefinition(); @@ -85,7 +85,7 @@ public: // We don't use parameter `D`, as Parameter `D` is the canonical // declaration, which is the first declaration of a redeclarable // declaration, and it could be a forward declaration. - if (const auto* Def = GetDefinition(D)) { + if (const auto *Def = GetDefinition(D)) { Decls.push_back(Def); } else { // Couldn't find a definition, fall back to use `D`. |