summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexingContext.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-04-24 14:04:58 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-04-24 14:04:58 +0000
commita352ba0cbe0be0ac131b1acfae5b2cfd4e20f7b4 (patch)
tree923854216ca472d41d1c432801963b2f413d19bb /clang/lib/Index/IndexingContext.cpp
parent27d152875827ab5ff638da500ab4edd41cd28554 (diff)
downloadbcm5719-llvm-a352ba0cbe0be0ac131b1acfae5b2cfd4e20f7b4.tar.gz
bcm5719-llvm-a352ba0cbe0be0ac131b1acfae5b2cfd4e20f7b4.zip
[index] The relation between the declarations in template specializations
that 'override' declarations in the base template should be recorded This can be used for improved "go to definition" feature in Xcode. rdar://31604739 Differential Revision: https://reviews.llvm.org/D32020 llvm-svn: 301180
Diffstat (limited to 'clang/lib/Index/IndexingContext.cpp')
-rw-r--r--clang/lib/Index/IndexingContext.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp
index 254abecd4e4..709a23657b0 100644
--- a/clang/lib/Index/IndexingContext.cpp
+++ b/clang/lib/Index/IndexingContext.cpp
@@ -28,6 +28,10 @@ bool IndexingContext::shouldIndex(const Decl *D) {
return !isGeneratedDecl(D);
}
+const LangOptions &IndexingContext::getLangOpts() const {
+ return Ctx->getLangOpts();
+}
+
bool IndexingContext::shouldIndexFunctionLocalSymbols() const {
return IndexOpts.IndexFunctionLocals;
}
OpenPOWER on IntegriCloud