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

123456789

/freebsd-10.2-release/contrib/llvm/tools/clang/include/clang/AST/
H A DDeclAccessPair.h42 NamedDecl *getDecl() const { function in class:clang::DeclAccessPair
53 set(getDecl(), AS);
59 operator NamedDecl*() const { return getDecl(); }
60 NamedDecl *operator->() const { return getDecl(); }
H A DGlobalDecl.h60 const Decl *getDecl() const { return Value.getPointer(); } function in class:clang::GlobalDecl
63 assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!");
68 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!");
/freebsd-10.2-release/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/
H A DPseudoConstantAnalysis.h33 inline static const Decl *getDecl(const Expr *E);
/freebsd-10.2-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.2-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());
182 const Decl *D = getDecl();
224 if (const Decl *D = getDecl()) {
311 const FunctionDecl *D = getDecl();
319 const FunctionDecl *D = getDecl();
329 const FunctionDecl *D = cast<FunctionDecl>(CalleeCtx->getDecl());
339 const FunctionDecl *D = getDecl();
392 const FunctionDecl *SimpleCall::getDecl() cons function in class:SimpleCall
401 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);
420 ProfileRegion(ID, getDecl(), isVirtual(), superRegion);
461 os << "code{" << getDecl()->getDeclName().getAsString() << '}';
490 os << "base{" << superRegion << ',' << getDecl()->getName() << '}';
503 os << superRegion << "->" << *getDecl();
507 os << "ivar{" << superRegion << ',' << *getDecl() << '}';
[all...]
/freebsd-10.2-release/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransARCAssign.cpp50 if (declRef && isa<VarDecl>(declRef->getDecl())) {
55 VarDecl *var = cast<VarDecl>(declRef->getDecl());
/freebsd-10.2-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.cpp44 const Decl *D = C.getLocationContext()->getDecl();
H A DNoReturnFunctionChecker.cpp43 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CE.getDecl()))
106 if (const ObjCMethodDecl *MD = Msg.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(),
319 BR.EmitBasicReport(AC->getDecl(),
359 BR.EmitBasicReport(AC->getDecl(),
400 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.cpp56 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))
202 BR.EmitBasicReport(AC->getDecl(), BugType, "Dead store", os.str(), L, R);
227 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
244 if (DR->getDecl() == VD)
248 if (DR->getDecl() == VD)
269 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
285 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl()))
356 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
408 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
H A DIdenticalExprChecker.cpp84 if (DeclRef1->getDecl() == DeclRef2->getDecl()) {
113 BR.EmitBasicReport(AC->getDecl(), "Compare of identical expressions",
182 return DeclRef1->getDecl() == DeclRef2->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.2-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();
367 return RT->getDecl()->isClass();
372 return RT->getDecl()->isStruct();
377 return RT->getDecl()->isInterface();
382 return RT->getDecl()->isStruct() || RT->getDecl()->isClass() ||
383 RT->getDecl()->isInterface();
394 return RT->getDecl()
1843 TagDecl *TagType::getDecl() const { function in class:TagType
1894 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.2-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCodeGenTBAA.cpp74 return TTy->getDecl()->hasAttr<MayAliasAttr>();
78 if (TTy->getDecl()->hasAttr<MayAliasAttr>())
152 if (!Features.CPlusPlus || !ETy->getDecl()->isExternallyVisible())
179 const RecordDecl *RD = TTy->getDecl()->getDefinition();
230 const RecordDecl *RD = TTy->getDecl()->getDefinition();
250 const RecordDecl *RD = TTy->getDecl()->getDefinition();

Completed in 211 milliseconds

123456789