9#ifndef LLVM_CLANG_INDEX_DECLOCCURRENCE_H
10#define LLVM_CLANG_INDEX_DECLOCCURRENCE_H
16#include "llvm/ADT/ArrayRef.h"
17#include "llvm/ADT/PointerUnion.h"
18#include "llvm/ADT/SmallVector.h"
26 llvm::PointerUnion<const Decl *, const MacroInfo *>
DeclOrMacro;
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
Defines the clang::MacroInfo and clang::MacroDirective classes.
Decl - This represents one declaration (or definition), e.g.
One of these records is kept for each identifier that is lexed.
Encapsulates the data about a macro definition (e.g.
The JSON file list parser is used to communicate input to InstallAPI.
llvm::PointerUnion< const Decl *, const MacroInfo * > DeclOrMacro
friend bool operator<(const DeclOccurrence &LHS, const DeclOccurrence &RHS)
DeclOccurrence(SymbolRoleSet R, unsigned Offset, const Decl *D, ArrayRef< SymbolRelation > Relations)
DeclOccurrence(SymbolRoleSet R, unsigned Offset, const IdentifierInfo *Name, const MacroInfo *MI)
SmallVector< SymbolRelation, 3 > Relations
const IdentifierInfo * MacroName