blob: 8039192512d62fa574a81a78fd8391e6a3beb9cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
//===--- Program.h - Cross-translation unit information ---------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file declares the idx::Program interface.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_INDEX_PROGRAM_H
#define LLVM_CLANG_INDEX_PROGRAM_H
namespace clang {
class ASTContext;
namespace idx {
class EntityHandler;
/// \brief Top level object that owns and maintains information
/// that is common across translation units.
class Program {
void *Impl;
Program(const Program&); // do not implement
Program &operator=(const Program &); // do not implement
friend class Entity;
friend class GlobalSelector;
public:
Program();
~Program();
/// \brief Traverses the AST and passes all the entities to the Handler.
void FindEntities(ASTContext &Ctx, EntityHandler &Handler);
};
} // namespace idx
} // namespace clang
#endif
|