summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/IndexBody.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/tools/libclang/IndexBody.cpp')
-rw-r--r--clang/tools/libclang/IndexBody.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/tools/libclang/IndexBody.cpp b/clang/tools/libclang/IndexBody.cpp
index 60fe2cf021e..9418ed7bb19 100644
--- a/clang/tools/libclang/IndexBody.cpp
+++ b/clang/tools/libclang/IndexBody.cpp
@@ -80,6 +80,12 @@ public:
SaveAndRestore<bool> InPseudo(InPseudoObject, true);
return base::TraversePseudoObjectExpr(E);
}
+
+ bool VisitCXXConstructExpr(CXXConstructExpr *E) {
+ IndexCtx.handleReference(E->getConstructor(), E->getLocation(), 0,
+ ParentDC, E);
+ return true;
+ }
};
} // anonymous namespace
OpenPOWER on IntegriCloud