diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-02-26 05:37:56 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-02-26 05:37:56 +0000 |
commit | 6d1a15b2d402e0d768b285fc9a136ff36be3db1c (patch) | |
tree | f223f8ad0f4edc30b0e38bef5a5dec69990e5aac /clang/lib/Index/IndexBody.cpp | |
parent | 42ef2177af937a2eb5a837297373dfa60c700770 (diff) | |
download | bcm5719-llvm-6d1a15b2d402e0d768b285fc9a136ff36be3db1c.tar.gz bcm5719-llvm-6d1a15b2d402e0d768b285fc9a136ff36be3db1c.zip |
[index] Add 'Parameter' symbol kind and 'Local' symbol property to distinguish function-local symbols
Parameters have a 'child' relation to their function/method.
Also add an option '-include-locals' to 'c-index-test core' to enable indexing of function-local symbols.
Original patch from Nathan Hawes with some changes by me.
https://reviews.llvm.org/D30304
llvm-svn: 296282
Diffstat (limited to 'clang/lib/Index/IndexBody.cpp')
-rw-r--r-- | clang/lib/Index/IndexBody.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Index/IndexBody.cpp b/clang/lib/Index/IndexBody.cpp index 3aa0152ec99..7681de75595 100644 --- a/clang/lib/Index/IndexBody.cpp +++ b/clang/lib/Index/IndexBody.cpp @@ -269,7 +269,7 @@ public: const Decl *D = *I; if (!D) continue; - if (!IndexCtx.isFunctionLocalDecl(D)) + if (!isFunctionLocalSymbol(D)) IndexCtx.indexTopLevelDecl(D); } |