[clang-tools-extra] r325596 - [clangd] Fix formatting in XRefs.cpp
Simon Marchi via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 20 08:57:47 PST 2018
Author: simark
Date: Tue Feb 20 08:57:47 2018
New Revision: 325596
URL: http://llvm.org/viewvc/llvm-project?rev=325596&view=rev
Log:
[clangd] Fix formatting in XRefs.cpp
This is also to test my commit access.
Modified:
clang-tools-extra/trunk/clangd/XRefs.cpp
Modified: clang-tools-extra/trunk/clangd/XRefs.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/XRefs.cpp?rev=325596&r1=325595&r2=325596&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/XRefs.cpp (original)
+++ clang-tools-extra/trunk/clangd/XRefs.cpp Tue Feb 20 08:57:47 2018
@@ -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`.
More information about the cfe-commits
mailing list