summaryrefslogtreecommitdiffstats
path: root/include/clang/Index/IndexingAction.h
diff options
context:
space:
mode:
authorKadir Cetinkaya <kadircet@google.com>2019-02-11 13:02:21 +0000
committerKadir Cetinkaya <kadircet@google.com>2019-02-11 13:02:21 +0000
commit13553b75f535a142a1c30ef711202f48112f55f1 (patch)
tree99e14477fd190d8237a13c1c26bf1f7ce847b633 /include/clang/Index/IndexingAction.h
parenta04be57958e0ca113bb49f16620bb556bf5f2d45 (diff)
[clang][Index] Add a knob to index function parameters in declarations
Summary: Parameters in declarations are useful for clangd, so that we can provide symbol information for them as well. It also helps clangd to be consistent whether a function's definition is accessible or not. Reviewers: hokein, akyrtzi Subscribers: ilya-biryukov, ioeric, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D57949 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Index/IndexingAction.h')
-rw-r--r--include/clang/Index/IndexingAction.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Index/IndexingAction.h b/include/clang/Index/IndexingAction.h
index 36b3c75a65..8b3d5415c0 100644
--- a/include/clang/Index/IndexingAction.h
+++ b/include/clang/Index/IndexingAction.h
@@ -44,6 +44,8 @@ struct IndexingOptions {
// callback is not available (e.g. after parsing has finished). Note that
// macro references are not available in Proprocessor.
bool IndexMacrosInPreprocessor = false;
+ // Has no effect if IndexFunctionLocals are false.
+ bool IndexParametersInDeclarations = false;
};
/// Creates a frontend action that indexes all symbols (macros and AST decls).