clang 22.0.0git
IndexingOptions.h
Go to the documentation of this file.
1//===--- IndexingOptions.h - Options for indexing ---------------*- C++ -*-===//
2//
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
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_CLANG_INDEX_INDEXINGOPTIONS_H
10#define LLVM_CLANG_INDEX_INDEXINGOPTIONS_H
11
13#include <memory>
14#include <string>
15
16namespace clang {
17class Decl;
18namespace index {
19
26
29 bool IndexFunctionLocals = false;
31 bool IndexMacros = true;
32 // Whether to index macro definitions in the Preprocessor when preprocessor
33 // callback is not available (e.g. after parsing has finished). Note that
34 // macro references are not available in Preprocessor.
36 // Has no effect if IndexFunctionLocals are false.
39 // Some information might only be available at the end of a translation unit,
40 // this flag delays the indexing for this purpose (e.g. instantiation of
41 // function definitions). This option only takes effect on operations that
42 // actually build the AST, e.g. `createIndexingAction()` and
43 // `createIndexingASTConsumer()`.
45
46 // If set, skip indexing inside some declarations for performance.
47 // This prevents traversal, so skipping a struct means its declaration an
48 // members won't be indexed, but references elsewhere to that struct will be.
49 // Currently this is only checked for top-level declarations.
51};
52
53} // namespace index
54} // namespace clang
55
56#endif // LLVM_CLANG_INDEX_INDEXINGOPTIONS_H
Decl - This represents one declaration (or definition), e.g.
Definition DeclBase.h:86
#define bool
Definition gpuintrin.h:32
The JSON file list parser is used to communicate input to InstallAPI.
int const char * function
Definition c++config.h:31
std::function< bool(const Decl *)> ShouldTraverseDecl
SystemSymbolFilterKind SystemSymbolFilter