1 //===--- IndexingOptions.h - Options for indexing ---------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_INDEX_INDEXINGOPTIONS_H
10 #define LLVM_CLANG_INDEX_INDEXINGOPTIONS_H
12 #include "clang/Frontend/FrontendOptions.h"
19 struct IndexingOptions {
20 enum class SystemSymbolFilterKind {
26 SystemSymbolFilterKind SystemSymbolFilter =
27 SystemSymbolFilterKind::DeclarationsOnly;
28 bool IndexFunctionLocals = false;
29 bool IndexImplicitInstantiation = false;
30 // Whether to index macro definitions in the Preprocesor when preprocessor
31 // callback is not available (e.g. after parsing has finished). Note that
32 // macro references are not available in Proprocessor.
33 bool IndexMacrosInPreprocessor = false;
34 // Has no effect if IndexFunctionLocals are false.
35 bool IndexParametersInDeclarations = false;
36 bool IndexTemplateParameters = false;
42 #endif // LLVM_CLANG_INDEX_INDEXINGOPTIONS_H