summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-05-04 10:42:06 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-05-04 10:42:06 +0000
commit9e2fea198c8ca45e1c1613797b0cb25d6f2742d7 (patch)
tree1c57eb480c3acfa5bf6e503f28a5a021a3e5afea /clang/lib
parent763e60e1f820d1472c738fd19dbd1bd3a7924489 (diff)
downloadbcm5719-llvm-9e2fea198c8ca45e1c1613797b0cb25d6f2742d7.tar.gz
bcm5719-llvm-9e2fea198c8ca45e1c1613797b0cb25d6f2742d7.zip
[Index] The relation between the declarations in template
specializations that 'override' declarations in the base template should use the 'specializationOf' relation instead of 'specializationOf | overrideOf'. The indexer relations are meant to be orthogonal, so 'specializationOf' is better than the combined relation. llvm-svn: 302136
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Index/IndexDecl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Index/IndexDecl.cpp b/clang/lib/Index/IndexDecl.cpp
index e8b2f1052d7..7de70a10b69 100644
--- a/clang/lib/Index/IndexDecl.cpp
+++ b/clang/lib/Index/IndexDecl.cpp
@@ -184,9 +184,7 @@ public:
continue;
}
Relations.emplace_back(
- SymbolRoleSet(SymbolRole::RelationOverrideOf) |
- SymbolRoleSet(SymbolRole::RelationSpecializationOf),
- ND);
+ SymbolRoleSet(SymbolRole::RelationSpecializationOf), ND);
}
}
}
OpenPOWER on IntegriCloud