Searched refs:getDecl (Results 1 - 25 of 206) sorted by relevance

123456789

/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/AST/
H A DDeclAccessPair.h42 NamedDecl *getDecl() const { function in class:clang::DeclAccessPair
53 set(getDecl(), AS);
60 operator NamedDecl*() const { return getDecl(); }
61 NamedDecl *operator->() const { return getDecl(); }
H A DGlobalDecl.h59 const Decl *getDecl() const { return Value.getPointer(); } function in class:clang::GlobalDecl
62 assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!");
67 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!");
H A DUnresolvedSet.h53 NamedDecl *getDecl() const { return ir->getDecl(); } function in class:clang::UnresolvedSetIterator
58 NamedDecl *operator*() const { return getDecl(); }
127 if (I->getDecl() == Old)
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/
H A DPseudoConstantAnalysis.h33 inline static const Decl *getDecl(const Expr *E);
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Analysis/
H A DPseudoConstantAnalysis.cpp69 const Decl *PseudoConstantAnalysis::getDecl(const Expr *E) { function in class:PseudoConstantAnalysis
71 return DR->getDecl();
96 const Decl *LHSDecl = getDecl(BO->getLHS()->IgnoreParenCasts());
107 const Decl *RHSDecl = getDecl(BO->getRHS()->IgnoreParenCasts());
142 const Decl *D = getDecl(UO->getSubExpr()->IgnoreParenCasts());
186 const Decl *D = getDecl(VD->getInit()->IgnoreParenCasts());
203 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
H A DCocoaConventions.cpp29 StringRef TDName = TD->getDecl()->getIdentifier()->getName();
35 RetTy = TD->getDecl()->getUnderlyingType();
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransARCAssign.cpp50 if (declRef && isa<VarDecl>(declRef->getDecl())) {
55 VarDecl *var = cast<VarDecl>(declRef->getDecl());
H A DTransBlockObjCVariable.cpp54 if (ref->getDecl() == Var) {
67 if (E->getDecl() == Var)
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp38 if (DR && isa<EnumConstantDecl>(DR->getDecl()))
55 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
H A DCallEvent.cpp70 const RecordDecl *RD = RT->getDecl();
87 if (!getDecl())
105 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(getDecl());
179 const Decl *D = getDecl();
221 if (const Decl *D = getDecl()) {
284 const FunctionDecl *D = getDecl();
292 const FunctionDecl *D = getDecl();
302 const FunctionDecl *D = cast<FunctionDecl>(CalleeCtx->getDecl());
312 const FunctionDecl *D = getDecl();
365 const FunctionDecl *SimpleCall::getDecl() cons function in class:SimpleCall
374 const FunctionDecl *CXXInstanceCall::getDecl() const { function in class:CXXInstanceCall
[all...]
H A DMemRegion.cpp199 if (getDecl()->isBitField())
232 const ObjCIvarDecl *ObjCIvarRegion::getDecl() const { function in class:ObjCIvarRegion
237 return getDecl()->getType();
241 return QualType(getDecl()->getTypeForDecl(), 0);
333 VarRegion::ProfileRegion(ID, getDecl(), superRegion);
418 ProfileRegion(ID, getDecl(), isVirtual(), superRegion);
459 os << "code{" << getDecl()->getDeclName().getAsString() << '}';
481 os << "base{" << superRegion << ',' << getDecl()->getName() << '}';
494 os << superRegion << "->" << *getDecl();
498 os << "ivar{" << superRegion << ',' << *getDecl() << '}';
[all...]
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DBoolAssignmentChecker.cpp47 return TT->getDecl()->getName() == "BOOL" || // Objective-C
48 TT->getDecl()->getName() == "_Bool" || // stdbool.h < C99
49 TT->getDecl()->getName() == "Boolean"; // MacTypes.h
H A DUndefinedArraySubscriptChecker.cpp43 const Decl *D = C.getLocationContext()->getDecl();
H A DUndefCapturedBlockVarChecker.cpp40 if (BR->getDecl() == VD)
72 const VarDecl *VD = VR->getDecl();
H A DDynamicTypePropagation.cpp79 recordFixedType(Target, Ctor->getDecl(), C);
95 const Decl *D = Dtor->getDecl();
115 const ObjCMethodDecl *D = Msg->getDecl();
168 const Decl *D = C.getLocationContext()->getDecl();
233 if (DRE->getDecl() == SFCtx->getSelfDecl()) {
234 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(SFCtx->getDecl()))
H A DCheckSecuritySyntaxOnly.cpp194 const NamedDecl *ND = DR->getDecl();
252 const VarDecl *vdLHS = drLHS ? dyn_cast<VarDecl>(drLHS->getDecl()) : NULL;
253 const VarDecl *vdRHS = drRHS ? dyn_cast<VarDecl>(drRHS->getDecl()) : NULL;
266 assert(drInc->getDecl());
267 const DeclRefExpr *drCond = vdLHS == drInc->getDecl() ? drLHS : drRHS;
273 os << "Variable '" << drCond->getDecl()->getName()
284 BR.EmitBasicReport(AC->getDecl(),
321 BR.EmitBasicReport(AC->getDecl(),
363 BR.EmitBasicReport(AC->getDecl(),
406 BR.EmitBasicReport(AC->getDecl(),
[all...]
H A DObjCSelfInitChecker.cpp178 C.getCurrentAnalysisDeclContext()->getDecl())))
205 C.getCurrentAnalysisDeclContext()->getDecl())))
217 C.getCurrentAnalysisDeclContext()->getDecl())))
245 C.getCurrentAnalysisDeclContext()->getDecl())))
273 C.getCurrentAnalysisDeclContext()->getDecl())))
308 C.getCurrentAnalysisDeclContext()->getDecl())))
426 return (DR->getDecl() == analCtx->getSelfDecl());
H A DDeadStoresChecker.cpp57 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))
204 BR.EmitBasicReport(AC->getDecl(), BugType, "Dead store", os.str(), L, R);
229 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
246 if (DR->getDecl() == VD)
250 if (DR->getDecl() == VD)
271 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
287 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl()))
358 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
409 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
H A DCStringSyntaxChecker.cpp41 return D1->getDecl() == D2->getDecl();
75 return D->getDecl()->getName();
H A DAnalyzerStatsChecker.cpp52 const Decl *D = LC->getDecl();
60 if (D != P.getLocationContext()->getDecl())
H A DReturnUndefChecker.cpp47 QualType RT = CallEvent::getDeclaredResultType(SFC->getDecl());
64 if (RT.isNull() && isa<BlockDecl>(SFC->getDecl()) &&
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/AST/
H A DType.cpp52 ND = ty->getAs<RecordType>()->getDecl();
54 ND = ty->getAs<EnumType>()->getDecl();
56 ND = ty->getAs<TypedefType>()->getDecl();
379 return RT->getDecl()->isClass();
384 return RT->getDecl()->isStruct();
389 return RT->getDecl()->isInterface();
394 return RT->getDecl()->isStruct() || RT->getDecl()->isClass() ||
395 RT->getDecl()->isInterface();
406 return RT->getDecl()
1846 TagDecl *TagType::getDecl() const { function in class:TagType
1854 CXXRecordDecl *InjectedClassNameType::getDecl() const { function in class:InjectedClassNameType
[all...]
H A DCXXInheritance.cpp154 cast_or_null<CXXRecordDecl>(Ty->getDecl()->getDefinition());
273 ->getDecl());
338 VBase = cast<CXXRecordDecl>(Record->getDecl());
353 HidingClass = cast<CXXRecordDecl>(Record->getDecl());
379 return Specifier->getType()->castAs<RecordType>()->getDecl()
389 Specifier->getType()->castAs<RecordType>()->getDecl()
397 Specifier->getType()->castAs<RecordType>()->getDecl();
414 Specifier->getType()->castAs<RecordType>()->getDecl();
433 Specifier->getType()->castAs<RecordType>()->getDecl();
507 const CXXRecordDecl *BaseDecl = cast<CXXRecordDecl>(RT->getDecl());
[all...]
H A DVTTBuilder.cpp67 cast<CXXRecordDecl>(I->getType()->getAs<RecordType>()->getDecl());
94 cast<CXXRecordDecl>(I->getType()->getAs<RecordType>()->getDecl());
159 cast<CXXRecordDecl>(I->getType()->getAs<RecordType>()->getDecl());
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCodeGenTBAA.cpp79 return TTy->getDecl()->hasAttr<MayAliasAttr>();
83 if (TTy->getDecl()->hasAttr<MayAliasAttr>())
158 ETy->getDecl()->getTypedefNameForAnonDecl())
166 ETy->getDecl()->getLinkage() != ExternalLinkage)
195 const RecordDecl *RD = TTy->getDecl()->getDefinition();
257 const RecordDecl *RD = TTy->getDecl()->getDefinition();
277 const RecordDecl *RD = TTy->getDecl()->getDefinition();

Completed in 147 milliseconds

123456789