clang: include/clang/AST/DeclLookups.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_CLANG_AST_DECLLOOKUPS_H

14#define LLVM_CLANG_AST_DECLLOOKUPS_H

15

21#include

22#include

23

25

26

27

29 StoredDeclsMap::iterator It, End;

30

31public:

37

40 StoredDeclsMap::iterator End)

41 : It(It), End(End) {}

42

44

47

49

50

51

52 do {

53 ++It;

54 } while (It != End &&

56

57 return *this;

58 }

59

62 ++(*this);

63 return tmp;

64 }

65

67 return x.It == y.It;

68 }

69

71 return x.It != y.It;

72 }

73};

74

87

91 if (!PreserveInternalState)

92 Primary->loadLazyLocalLexicalLookups();

96

97

98

100}

101

102}

103

104#endif

Defines the clang::ASTContext interface.

ExternalASTSource * getExternalSource() const

Retrieve a pointer to the external AST source associated with this AST context, if any.

all_lookups_iterator - An iterator that provides a view over the results of looking up every possible...

Definition DeclLookups.h:28

all_lookups_iterator(StoredDeclsMap::iterator It, StoredDeclsMap::iterator End)

Definition DeclLookups.h:39

lookup_result value_type

Definition DeclLookups.h:32

all_lookups_iterator()=default

friend bool operator!=(all_lookups_iterator x, all_lookups_iterator y)

Definition DeclLookups.h:70

std::forward_iterator_tag iterator_category

Definition DeclLookups.h:35

DeclarationName getLookupName() const

Definition DeclLookups.h:43

std::ptrdiff_t difference_type

Definition DeclLookups.h:36

lookup_result reference

Definition DeclLookups.h:33

reference operator*() const

Definition DeclLookups.h:45

all_lookups_iterator operator++(int)

Definition DeclLookups.h:60

pointer operator->() const

Definition DeclLookups.h:46

all_lookups_iterator & operator++()

Definition DeclLookups.h:48

lookup_result pointer

Definition DeclLookups.h:34

friend bool operator==(all_lookups_iterator x, all_lookups_iterator y)

Definition DeclLookups.h:66

DeclContextLookupResult lookup_result

ASTContext & getParentASTContext() const

lookups_range noload_lookups(bool PreserveInternalState) const

Definition DeclLookups.h:89

bool hasExternalVisibleStorage() const

Whether this DeclContext has external storage containing additional declarations that are visible in ...

DeclContext(Decl::Kind K)

lookups_range lookups() const

Definition DeclLookups.h:75

StoredDeclsMap * buildLookup()

Ensure the lookup structure is fully-built and return it.

llvm::iterator_range< all_lookups_iterator > lookups_range

DeclContext * getPrimaryContext()

getPrimaryContext - There may be many different declarations of the same entity (including forward de...

StoredDeclsMap * getLookupPtr() const

Retrieve the internal representation of the lookup structure.

The name of a declaration.

static DeclarationName getUsingDirectiveName()

Returns the name for all C++ using-directives.

virtual void completeVisibleDeclsMap(const DeclContext *DC)

Ensures that the table of all visible declarations inside this context is up to date.

The JSON file list parser is used to communicate input to InstallAPI.