summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexDecl.cpp
diff options
context:
space:
mode:
authorSaar Raz <saar@raz.email>2019-07-10 21:25:49 +0000
committerSaar Raz <saar@raz.email>2019-07-10 21:25:49 +0000
commitd7aae33a9513d29400157867cdc1f11c2e4a0c40 (patch)
treec2c44b5657f7e2efa19a29f4130868d05314eef8 /clang/lib/Index/IndexDecl.cpp
parent0171866672346f2a6e956ea97d5cc913f85b39db (diff)
downloadbcm5719-llvm-d7aae33a9513d29400157867cdc1f11c2e4a0c40.tar.gz
bcm5719-llvm-d7aae33a9513d29400157867cdc1f11c2e4a0c40.zip
[Concepts] Concept definitions (D40381)
First in a series of patches to land C++2a Concepts support. This patch adds AST and parsing support for concept-declarations. llvm-svn: 365699
Diffstat (limited to 'clang/lib/Index/IndexDecl.cpp')
-rw-r--r--clang/lib/Index/IndexDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Index/IndexDecl.cpp b/clang/lib/Index/IndexDecl.cpp
index 7e6be5d7f68..e41b5fecdd2 100644
--- a/clang/lib/Index/IndexDecl.cpp
+++ b/clang/lib/Index/IndexDecl.cpp
@@ -652,10 +652,10 @@ public:
}
static bool shouldIndexTemplateParameterDefaultValue(const NamedDecl *D) {
- if (!D)
- return false;
// We want to index the template parameters only once when indexing the
// canonical declaration.
+ if (!D)
+ return false;
if (const auto *FD = dyn_cast<FunctionDecl>(D))
return FD->getCanonicalDecl() == FD;
else if (const auto *TD = dyn_cast<TagDecl>(D))
OpenPOWER on IntegriCloud