summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexingContext.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2017-01-11 21:01:07 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2017-01-11 21:01:07 +0000
commitde0f50886f4d122a1142c77fa5f36ad1533c96d7 (patch)
treef71e2bf9127a04d0d85c1cecf68e9d4e337b49cf /clang/lib/Index/IndexingContext.cpp
parent974e4c78999ad00af0505a9bf50b7432b219f717 (diff)
downloadbcm5719-llvm-de0f50886f4d122a1142c77fa5f36ad1533c96d7.tar.gz
bcm5719-llvm-de0f50886f4d122a1142c77fa5f36ad1533c96d7.zip
[index] Add 'IBTypeOf' relation for ObjC methods marked with IBAction and properties with IBOutletCollection.
llvm-svn: 291703
Diffstat (limited to 'clang/lib/Index/IndexingContext.cpp')
-rw-r--r--clang/lib/Index/IndexingContext.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp
index 2d5fc0df3a0..6dd6c0cfb28 100644
--- a/clang/lib/Index/IndexingContext.cpp
+++ b/clang/lib/Index/IndexingContext.cpp
@@ -314,9 +314,15 @@ bool IndexingContext::handleDeclOccurrence(const Decl *D, SourceLocation Loc,
if (Parent) {
if (IsRef) {
- addRelation(SymbolRelation{(unsigned)SymbolRole::RelationContainedBy, Parent});
+ addRelation(SymbolRelation{
+ (unsigned)SymbolRole::RelationContainedBy,
+ Parent
+ });
} else if (!cast<DeclContext>(Parent)->isFunctionOrMethod()) {
- addRelation(SymbolRelation{(unsigned)SymbolRole::RelationChildOf, Parent});
+ addRelation(SymbolRelation{
+ (unsigned)SymbolRole::RelationChildOf,
+ Parent
+ });
}
}
OpenPOWER on IntegriCloud