HomeSort by relevance Sort by last modified time
    Searched refs:NamedDecl (Results 1 - 25 of 153) sorted by null

1 2 3 4 5 6 7

  /external/clang/include/clang/AST/
DeclAccessPair.h 11 // efficient representation of a pair of a NamedDecl* and an
26 class NamedDecl;
28 /// A POD class for pairing a NamedDecl* with an access specifier.
31 NamedDecl *Ptr; // we'd use llvm::PointerUnion, but it isn't trivial
36 static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS) {
42 NamedDecl *getDecl() const {
43 return (NamedDecl*) (~Mask & (uintptr_t) Ptr);
49 void setDecl(NamedDecl *D) {
55 void set(NamedDecl *D, AccessSpecifier AS) {
56 Ptr = reinterpret_cast<NamedDecl*>(uintptr_t(AS)
    [all...]
DeclContextInternals.h 34 typedef SmallVector<NamedDecl *, 4> DeclsTy;
36 /// \brief The stored data, which will be either a pointer to a NamedDecl,
38 llvm::PointerUnion<NamedDecl *, DeclsTy *> Data;
65 NamedDecl *getAsDecl() const {
66 return Data.dyn_cast<NamedDecl *>();
73 void setOnlyValue(NamedDecl *ND) {
76 // Make sure that Data is a plain NamedDecl* so we can use its address
78 assert(*(NamedDecl **)&Data == ND &&
79 "PointerUnion mangles the NamedDecl pointer!");
82 void remove(NamedDecl *D)
    [all...]
UnresolvedSet.h 48 typedef NamedDecl *value_type;
49 typedef NamedDecl **pointer;
50 typedef NamedDecl *reference;
53 NamedDecl *getDecl() const { return ir->getDecl(); }
58 NamedDecl *operator*() const { return getDecl(); }
114 void addDecl(NamedDecl *D) {
118 void addDecl(NamedDecl *D, AccessSpecifier AS) {
125 bool replace(const NamedDecl* Old, NamedDecl *New) {
134 void replace(iterator I, NamedDecl *New)
    [all...]
DependentDiagnostic.h 31 class NamedDecl;
44 NamedDecl *TargetDecl,
77 NamedDecl *getAccessTarget() const {
82 NamedDecl *getAccessNamingClass() const {
115 NamedDecl *TargetDecl;
ASTUnresolvedSet.h 44 void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS) {
51 bool replace(const NamedDecl* Old, NamedDecl *New, AccessSpecifier AS) {
DeclFriend.h 42 typedef llvm::PointerUnion<NamedDecl*,TypeSourceInfo*> FriendUnion;
125 NamedDecl *getFriendDecl() const {
126 return Friend.dyn_cast<NamedDecl*>();
136 if (NamedDecl *ND = getFriendDecl()) {
Mangle.h 31 class NamedDecl;
99 virtual bool shouldMangleDeclName(const NamedDecl *D) = 0;
100 virtual void mangleName(const NamedDecl *D, raw_ostream &)=0;
130 const NamedDecl *ID,
DeclTemplate.h 63 NamedDecl **Params, unsigned NumParams,
70 NamedDecl **Params,
75 typedef NamedDecl** iterator;
78 typedef NamedDecl* const* const_iterator;
80 iterator begin() { return reinterpret_cast<NamedDecl **>(this + 1); }
82 return reinterpret_cast<NamedDecl * const *>(this + 1);
89 llvm::ArrayRef<NamedDecl*> asArray() {
90 return llvm::ArrayRef<NamedDecl*>(begin(), size());
92 llvm::ArrayRef<const NamedDecl*> asArray() const {
93 return llvm::ArrayRef<const NamedDecl*>(begin(), size())
    [all...]
  /external/clang/include/clang/Sema/
IdentifierResolver.h 28 class NamedDecl;
43 typedef SmallVector<NamedDecl*, 2> DeclsTy;
48 void AddDecl(NamedDecl *D) { Decls.push_back(D); }
52 void RemoveDecl(NamedDecl *D);
55 void InsertDecl(DeclsTy::iterator Pos, NamedDecl *D) {
70 typedef NamedDecl * value_type;
71 typedef NamedDecl * reference;
72 typedef NamedDecl * pointer;
77 /// 1) A single NamedDecl. (Ptr & 0x1 == 0)
85 /// A single NamedDecl. (Ptr & 0x1 == 0
    [all...]
Lookup.h 286 static bool isVisible(Sema &SemaRef, NamedDecl *D) {
301 NamedDecl *getAcceptableDecl(NamedDecl *D) const {
312 static bool isVisibleSlow(Sema &SemaRef, NamedDecl *D);
313 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const;
366 void addDecl(NamedDecl *D) {
372 void addDecl(NamedDecl *D, AccessSpecifier AS) {
442 NamedDecl *getFoundDecl() const {
449 NamedDecl *getRepresentativeDecl() const
    [all...]
TypoCorrection.h 41 TypoCorrection(const DeclarationName &Name, NamedDecl *NameDecl,
51 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = 0,
130 NamedDecl *getCorrectionDecl() const {
139 void setCorrectionDecl(NamedDecl *CDecl) {
144 /// \brief Add the given NamedDecl to the list of NamedDecls that are the
146 void addCorrectionDecl(NamedDecl *CDecl);
158 /// added to the list of the correction's NamedDecl pointers, NULL is added
198 typedef SmallVectorImpl<NamedDecl *>::iterator decl_iterator;
203 typedef SmallVectorImpl<NamedDecl *>::const_iterator const_decl_iterator;
217 SmallVector<NamedDecl *, 1> CorrectionDecls
    [all...]
ExternalSemaSource.h 73 llvm::DenseMap<NamedDecl*, SourceLocation> &Undefined);
140 SmallVectorImpl<NamedDecl *> &Decls) {}
DelayedDiagnostic.h 69 NamedDecl *getTargetDecl() const { return Target; }
105 NamedDecl *Target;
125 const NamedDecl *D,
163 const NamedDecl *getDeprecationDecl() const {
204 const NamedDecl *Decl;
  /external/clang/lib/AST/
DeclFriend.cpp 33 if (Friend.is<NamedDecl*>()) {
34 NamedDecl *D = Friend.get<NamedDecl*>();
Mangle.cpp 51 const NamedDecl *ID,
96 const NamedDecl *ND = cast<NamedDecl>(DC);
DeclBase.cpp 194 if (const NamedDecl *DN = dyn_cast_or_null<NamedDecl>(TheDecl)) {
985 ArrayRef<NamedDecl*> Decls) {
1017 for (ArrayRef<NamedDecl*>::iterator
1079 if (isa<NamedDecl>(D)) {
1080 NamedDecl *ND = cast<NamedDecl>(D);
    [all...]
ItaniumMangle.cpp 100 static const NamedDecl *getStructor(const NamedDecl *decl) {
111 llvm::DenseMap<const NamedDecl*, unsigned> Uniquifier;
128 bool shouldMangleDeclName(const NamedDecl *D);
129 void mangleName(const NamedDecl *D, raw_ostream &);
159 bool getNextDiscriminator(const NamedDecl *ND, unsigned &disc) {
202 const NamedDecl *Structor;
253 const NamedDecl *D = 0)
282 void mangle(const NamedDecl *D, StringRef Prefix = "_Z");
288 void mangleName(const NamedDecl *ND)
    [all...]
  /external/clang/lib/Sema/
IdentifierResolver.cpp 70 void IdentifierResolver::IdDeclInfo::RemoveDecl(NamedDecl *D) {
141 void IdentifierResolver::AddDecl(NamedDecl *D) {
158 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr);
166 void IdentifierResolver::InsertDeclAfter(iterator Pos, NamedDecl *D) {
183 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr);
206 void IdentifierResolver::RemoveDecl(NamedDecl *D) {
235 return iterator(static_cast<NamedDecl*>(Ptr));
257 static DeclMatchKind compareDeclarations(NamedDecl *Existing, NamedDecl *New)
    [all...]
DelayedDiagnostic.cpp 23 const NamedDecl *D,
  /external/clang/tools/libclang/
IndexingContext.h 47 const NamedDecl *Dcl;
385 void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent,
388 void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent,
392 const NamedDecl *Parent,
397 void indexBody(const Stmt *S, const NamedDecl *Parent,
438 bool handleReference(const NamedDecl *D, SourceLocation Loc, CXCursor Cursor,
439 const NamedDecl *Parent,
444 bool handleReference(const NamedDecl *D, SourceLocation Loc,
445 const NamedDecl *Parent,
472 bool handleDecl(const NamedDecl *D
    [all...]
IndexTypeSourceInfo.cpp 20 const NamedDecl *Parent;
24 TypeIndexer(IndexingContext &indexCtx, const NamedDecl *parent,
97 const NamedDecl *Parent,
106 const NamedDecl *Parent,
117 const NamedDecl *Parent,
  /external/clang/examples/PrintFunctionNames/
PrintFunctionNames.cpp 29 if (const NamedDecl *ND = dyn_cast<NamedDecl>(D))
  /external/clang/include/clang/Analysis/Analyses/
ThreadSafety.h 123 virtual void handleNoMutexHeld(const NamedDecl *D, ProtectedOperationKind POK,
134 virtual void handleMutexNotHeld(const NamedDecl *D,
  /external/clang/lib/StaticAnalyzer/Checkers/
ObjCSelfInitChecker.cpp 52 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND);
177 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>(
204 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>(
216 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>(
244 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>(
272 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>(
307 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>(
389 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND) {
  /external/clang/lib/Analysis/
ThreadSafety.cpp 108 const NamedDecl* getNamedDecl() const {
110 return reinterpret_cast<const NamedDecl*>(Data);
113 const NamedDecl* getFunctionDecl() const {
115 return reinterpret_cast<const NamedDecl*>(Data);
168 const NamedDecl* AttrDecl; // The decl to which the attribute is attached.
175 CallingContext(const NamedDecl *D = 0, const Expr *S = 0,
206 unsigned makeNamedVar(const NamedDecl *D) {
211 unsigned makeLocalVar(const NamedDecl *D) {
221 unsigned makeDot(const NamedDecl *D, bool Arrow) {
226 unsigned makeCall(unsigned NumArgs, const NamedDecl *D)
    [all...]

Completed in 1032 milliseconds

1 2 3 4 5 6 7