Home
last modified time | relevance | path

Searched refs:NamedDecl (Results 1 – 25 of 154) sorted by relevance

1234567

/trueos/contrib/llvm/tools/clang/include/clang/Sema/
HDIdentifierResolver.h28 class NamedDecl; variable
43 typedef SmallVector<NamedDecl*, 2> DeclsTy;
48 void AddDecl(NamedDecl *D) { Decls.push_back(D); } in AddDecl()
52 void RemoveDecl(NamedDecl *D);
55 void InsertDecl(DeclsTy::iterator Pos, NamedDecl *D) { in InsertDecl()
70 typedef NamedDecl * value_type;
71 typedef NamedDecl * reference;
72 typedef NamedDecl * pointer;
86 iterator(NamedDecl *D) { in iterator()
109 NamedDecl *operator*() const {
[all …]
HDLookup.h289 static bool isVisible(Sema &SemaRef, NamedDecl *D) { in isVisible()
304 NamedDecl *getAcceptableDecl(NamedDecl *D) const { in getAcceptableDecl()
315 static bool isVisibleSlow(Sema &SemaRef, NamedDecl *D);
316 NamedDecl *getAcceptableDeclSlow(NamedDecl *D) const;
369 void addDecl(NamedDecl *D) { in addDecl()
375 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl()
453 NamedDecl *getFoundDecl() const { in getFoundDecl()
460 NamedDecl *getRepresentativeDecl() const { in getRepresentativeDecl()
573 NamedDecl *next() { in next()
591 void replace(NamedDecl *D) { in replace()
[all …]
HDTypoCorrection.h41 TypoCorrection(const DeclarationName &Name, NamedDecl *NameDecl,
52 TypoCorrection(NamedDecl *Name, NestedNameSpecifier *NNS = 0,
132 NamedDecl *getCorrectionDecl() const { in getCorrectionDecl()
146 void setCorrectionDecl(NamedDecl *CDecl) { in setCorrectionDecl()
152 void setCorrectionDecls(ArrayRef<NamedDecl*> Decls) { in setCorrectionDecls()
159 void addCorrectionDecl(NamedDecl *CDecl);
211 typedef SmallVectorImpl<NamedDecl *>::iterator decl_iterator;
216 typedef SmallVectorImpl<NamedDecl *>::const_iterator const_decl_iterator;
235 SmallVector<NamedDecl *, 1> CorrectionDecls;
HDDelayedDiagnostic.h70 NamedDecl *getTargetDecl() const { return Target; } in getTargetDecl()
106 NamedDecl *Target;
126 const NamedDecl *D,
164 const NamedDecl *getDeprecationDecl() const { in getDeprecationDecl()
205 const NamedDecl *Decl;
/trueos/contrib/llvm/tools/clang/include/clang/AST/
HDDeclContextInternals.h35 typedef SmallVector<NamedDecl *, 4> DeclsTy;
44 llvm::PointerUnion<NamedDecl*, DeclsAndHasExternalTy> Data;
72 NamedDecl *getAsDecl() const { in getAsDecl()
73 return Data.dyn_cast<NamedDecl *>(); in getAsDecl()
93 if (NamedDecl *OldD = getAsDecl()) in setHasExternalDecls()
99 void setOnlyValue(NamedDecl *ND) { in setOnlyValue()
104 assert(*(NamedDecl **)&Data == ND && in setOnlyValue()
108 void remove(NamedDecl *D) { in remove()
110 if (NamedDecl *Singleton = getAsDecl()) { in remove()
113 Data = (NamedDecl *)0; in remove()
[all …]
HDDeclAccessPair.h26 class NamedDecl; variable
36 static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS) { in make()
42 NamedDecl *getDecl() const { in getDecl()
43 return reinterpret_cast<NamedDecl*>(~Mask & Ptr); in getDecl()
49 void setDecl(NamedDecl *D) { in setDecl()
55 void set(NamedDecl *D, AccessSpecifier AS) { in set()
59 operator NamedDecl*() const { return getDecl(); }
60 NamedDecl *operator->() const { return getDecl(); }
HDUnresolvedSet.h48 typedef NamedDecl *value_type;
49 typedef NamedDecl **pointer;
50 typedef NamedDecl *reference;
53 NamedDecl *getDecl() const { return ir->getDecl(); } in getDecl()
54 void setDecl(NamedDecl *ND) const { return ir->setDecl(ND); } in setDecl()
59 NamedDecl *operator*() const { return getDecl(); }
115 void addDecl(NamedDecl *D) { in addDecl()
119 void addDecl(NamedDecl *D, AccessSpecifier AS) { in addDecl()
126 bool replace(const NamedDecl* Old, NamedDecl *New) { in replace()
135 void replace(iterator I, NamedDecl *New) { in replace()
[all …]
HDDeclTemplate.h63 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); } in begin()
82 return reinterpret_cast<NamedDecl * const *>(this + 1); in begin()
89 llvm::ArrayRef<NamedDecl*> asArray() { in asArray()
90 return llvm::ArrayRef<NamedDecl*>(begin(), size()); in asArray()
92 llvm::ArrayRef<const NamedDecl*> asArray() const { in asArray()
93 return llvm::ArrayRef<const NamedDecl*>(begin(), size()); in asArray()
[all …]
HDMangle.h32 class NamedDecl; variable
111 bool shouldMangleDeclName(const NamedDecl *D);
112 virtual bool shouldMangleCXXName(const NamedDecl *D) = 0;
115 void mangleName(const NamedDecl *D, raw_ostream &);
116 virtual void mangleCXXName(const NamedDecl *D, raw_ostream &) = 0;
133 const NamedDecl *ID,
HDDependentDiagnostic.h31 class NamedDecl; variable
44 NamedDecl *TargetDecl, in Create()
77 NamedDecl *getAccessTarget() const { in getAccessTarget()
82 NamedDecl *getAccessNamingClass() const { in getAccessNamingClass()
115 NamedDecl *TargetDecl;
HDDeclCXX.h50 NamedDecl *Function;
52 AnyFunctionDecl(NamedDecl *ND) : Function(ND) { } in AnyFunctionDecl()
60 operator NamedDecl *() const { return Function; }
63 NamedDecl *get() const { return Function; } in get()
65 static AnyFunctionDecl getFromNamedDecl(NamedDecl *ND) { in getFromNamedDecl()
82 static_cast< ::clang::NamedDecl*>(P)); in getFromVoidPointer()
1047 void removeConversion(const NamedDecl *Old);
2467 class UsingDirectiveDecl : public NamedDecl {
2479 NamedDecl *NominatedNamespace;
2497 NamedDecl *Nominated, in UsingDirectiveDecl()
[all …]
HDASTUnresolvedSet.h53 void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS) { in addDecl()
60 bool replace(const NamedDecl *Old, NamedDecl *New, AccessSpecifier AS) { in replace()
107 Impl.addDecl(C, reinterpret_cast<NamedDecl*>(ID << 2), AS); in addLazyDecl()
HDDecl.h105 class NamedDecl : public Decl {
113 NamedDecl *getUnderlyingDeclImpl();
116 NamedDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName N) in NamedDecl() function
186 bool declarationReplaces(NamedDecl *OldD) const;
264 NamedDecl *getUnderlyingDecl() { in getUnderlyingDecl()
272 const NamedDecl *getUnderlyingDecl() const { in getUnderlyingDecl()
273 return const_cast<NamedDecl*>(this)->getUnderlyingDecl(); in getUnderlyingDecl()
276 NamedDecl *getMostRecentDecl() { in getMostRecentDecl()
277 return cast<NamedDecl>(static_cast<Decl *>(this)->getMostRecentDecl()); in getMostRecentDecl()
279 const NamedDecl *getMostRecentDecl() const { in getMostRecentDecl()
[all …]
HDTemplateName.h32 class NamedDecl; variable
98 NamedDecl **getStorage() { in getStorage()
99 return reinterpret_cast<NamedDecl **>(this + 1); in getStorage()
101 NamedDecl * const *getStorage() const { in getStorage()
102 return reinterpret_cast<NamedDecl *const *>(this + 1); in getStorage()
106 typedef NamedDecl *const *iterator;
/trueos/contrib/llvm/tools/clang/lib/Sema/
HDIdentifierResolver.cpp70 void IdentifierResolver::IdDeclInfo::RemoveDecl(NamedDecl *D) { in RemoveDecl()
140 void IdentifierResolver::AddDecl(NamedDecl *D) { in AddDecl()
157 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in AddDecl()
165 void IdentifierResolver::InsertDeclAfter(iterator Pos, NamedDecl *D) { in InsertDeclAfter()
182 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in InsertDeclAfter()
205 void IdentifierResolver::RemoveDecl(NamedDecl *D) { in RemoveDecl()
234 return iterator(static_cast<NamedDecl*>(Ptr)); in begin()
256 static DeclMatchKind compareDeclarations(NamedDecl *Existing, NamedDecl *New) { in compareDeclarations()
293 bool IdentifierResolver::tryAddTopLevelDecl(NamedDecl *D, DeclarationName Name){ in tryAddTopLevelDecl()
307 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in tryAddTopLevelDecl()
[all …]
HDSemaLookup.cpp368 NamedDecl *D = (*Decls.begin())->getUnderlyingDecl(); in resolveKind()
379 llvm::SmallPtrSet<NamedDecl*, 16> Unique; in resolveKind()
390 NamedDecl *D = Decls[I]->getUnderlyingDecl(); in resolveKind()
391 D = cast<NamedDecl>(D->getCanonicalDecl()); in resolveKind()
540 if (NamedDecl *D = S.LazilyCreateBuiltin((IdentifierInfo *)II, in LookupBuiltin()
686 NamedDecl *D = *I; in LookupDirect()
940 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName()
1016 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) { in CppLookupName()
1105 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName()
1241 bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { in isVisibleSlow()
[all …]
/trueos/contrib/llvm/tools/lldb/include/lldb/Expression/
HDClangASTSource.h431 …llvm::SmallVectorImpl<clang::NamedDecl*> &m_decls; ///< The list of declarations already …
462 llvm::SmallVectorImpl<clang::NamedDecl*> &decls, in NameSearchContext()
480 clang::NamedDecl *AddVarDecl(const ClangASTType &type);
489 clang::NamedDecl *AddFunDecl(const ClangASTType &type);
496 clang::NamedDecl *AddGenericFunDecl();
505 clang::NamedDecl *AddTypeDecl(const ClangASTType &clang_type);
525 void AddNamedDecl (clang::NamedDecl *decl);
/trueos/contrib/llvm/tools/clang/lib/AST/
HDMangle.cpp58 static bool isExternC(const NamedDecl *ND) { in isExternC()
65 const NamedDecl *ND) { in getStdOrFastCallMangling()
93 bool MangleContext::shouldMangleDeclName(const NamedDecl *D) { in shouldMangleDeclName()
112 void MangleContext::mangleName(const NamedDecl *D, raw_ostream &Out) { in mangleName()
177 const NamedDecl *ID, in mangleGlobalBlock()
222 const NamedDecl *ND = cast<NamedDecl>(DC); in mangleBlock()
HDDecl.cpp101 LVForType = NamedDecl::VisibilityForType,
106 LVForValue = NamedDecl::VisibilityForValue,
143 static Optional<Visibility> getExplicitVisibility(const NamedDecl *D, in getExplicitVisibility()
147 return D->getExplicitVisibility((NamedDecl::ExplicitVisibilityKind) kind); in getExplicitVisibility()
152 static bool usesTypeVisibility(const NamedDecl *D) { in usesTypeVisibility()
194 static Optional<Visibility> getVisibilityOf(const NamedDecl *D, in getVisibilityOf()
195 NamedDecl::ExplicitVisibilityKind kind) { in getVisibilityOf()
198 if (kind == NamedDecl::VisibilityForType) { in getVisibilityOf()
291 static LinkageInfo getLVForDecl(const NamedDecl *D,
328 if (NamedDecl *ND = dyn_cast<NamedDecl>(arg.getAsDecl())) { in getLVForTemplateArgumentList()
[all …]
HDItaniumMangle.cpp100 static const NamedDecl *getStructor(const NamedDecl *decl) { in getStructor()
111 llvm::DenseMap<const NamedDecl*, unsigned> Uniquifier;
128 bool shouldMangleCXXName(const NamedDecl *D);
129 void mangleCXXName(const NamedDecl *D, raw_ostream &);
159 bool getNextDiscriminator(const NamedDecl *ND, unsigned &disc) { in getNextDiscriminator()
202 const NamedDecl *Structor;
253 const NamedDecl *D = 0) in CXXNameMangler()
282 void mangle(const NamedDecl *D, StringRef Prefix = "_Z");
288 void mangleName(const NamedDecl *ND);
290 void mangleNameOrStandardSubstitution(const NamedDecl *ND);
[all …]
HDDeclBase.cpp194 if (const NamedDecl *DN = dyn_cast_or_null<NamedDecl>(TheDecl)) { in print()
1009 ArrayRef<NamedDecl*> Decls) { in SetExternalVisibleDeclsForName()
1041 for (ArrayRef<NamedDecl*>::iterator in SetExternalVisibleDeclsForName()
1103 if (isa<NamedDecl>(D)) { in removeDecl()
1104 NamedDecl *ND = cast<NamedDecl>(D); in removeDecl()
1148 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in addDecl()
1156 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in addDeclInternal()
1163 static bool shouldBeHidden(NamedDecl *D) { in shouldBeHidden()
1228 if (NamedDecl *ND = dyn_cast<NamedDecl>(D)) in buildLookupImpl()
1336 SmallVectorImpl<NamedDecl *> &Results) { in localUncachedLookup()
[all …]
HDDeclFriend.cpp33 if (Friend.is<NamedDecl*>()) { in Create()
34 NamedDecl *D = Friend.get<NamedDecl*>(); in Create()
/trueos/contrib/llvm/tools/clang/lib/Analysis/
HDThreadSafety.cpp108 const NamedDecl* getNamedDecl() const { in getNamedDecl()
110 return reinterpret_cast<const NamedDecl*>(Data); in getNamedDecl()
113 const NamedDecl* getFunctionDecl() const { in getFunctionDecl()
115 return reinterpret_cast<const NamedDecl*>(Data); in getFunctionDecl()
168 const NamedDecl* AttrDecl; // The decl to which the attribute is attached.
175 CallingContext(const NamedDecl *D = 0, const Expr *S = 0, in CallingContext()
206 unsigned makeNamedVar(const NamedDecl *D) { in makeNamedVar()
211 unsigned makeLocalVar(const NamedDecl *D) { in makeLocalVar()
221 unsigned makeDot(const NamedDecl *D, bool Arrow) { in makeDot()
226 unsigned makeCall(unsigned NumArgs, const NamedDecl *D) { in makeCall()
[all …]
/trueos/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
HDObjCSelfInitChecker.cpp52 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND);
177 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPostObjCMessage()
204 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPostStmt()
216 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPreStmt()
244 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPreCall()
272 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkPostCall()
307 if (!shouldRunOnFunctionOrMethod(dyn_cast<NamedDecl>( in checkLocation()
389 static bool shouldRunOnFunctionOrMethod(const NamedDecl *ND) { in shouldRunOnFunctionOrMethod()
/trueos/contrib/llvm/tools/lldb/source/Symbol/
HDClangASTImporter.cpp94 if (NamedDecl *named_decl = dyn_cast<NamedDecl>(decl)) in CopyDecl()
122 std::set<NamedDecl *> decls_to_deport; in DeportType()
123 std::set<NamedDecl *> decls_already_deported; in DeportType()
158 std::set<NamedDecl *> decls_to_deport; in DeportDecl()
159 std::set<NamedDecl *> decls_already_deported; in DeportDecl()
454 ClangASTImporter::Minion::InitDeportWorkQueues (std::set<clang::NamedDecl *> *decls_to_deport, in InitDeportWorkQueues()
455 … std::set<clang::NamedDecl *> *decls_already_deported) in InitDeportWorkQueues()
474 NamedDecl *decl = *m_decls_to_deport->begin(); in ExecuteDeportWorkQueues()
585 if (NamedDecl *from_named_decl = dyn_cast<clang::NamedDecl>(from)) in Imported()
640 NamedDecl *to_named_decl = dyn_cast<NamedDecl>(to); in Imported()

1234567