/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | DeclAccessPair.h | 41 NamedDecl *getDecl() const { function in class:clang::DeclAccessPair 52 set(getDecl(), AS); 58 operator NamedDecl*() const { return getDecl(); } 59 NamedDecl *operator->() const { return getDecl(); }
|
H A D | GlobalDecl.h | 77 const Decl *getDecl() const { return Value.getPointer(); } function in class:clang::GlobalDecl 80 assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!"); 85 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!"); 90 assert(isa<VarDecl>(getDecl()) && 91 cast<VarDecl>(getDecl())->hasGlobalStorage() && 97 assert(isa<FunctionDecl>(getDecl()) && 98 !isa<CXXConstructorDecl>(getDecl()) && 99 !isa<CXXDestructorDecl>(getDecl()) && 124 assert(isa<CXXConstructorDecl>(getDecl())); 131 assert(isa<CXXDestructorDecl>(getDecl())); [all...] |
H A D | UnresolvedSet.h | 50 NamedDecl *getDecl() const { return I->getDecl(); } function in class:clang::UnresolvedSetIterator 56 NamedDecl *operator*() const { return getDecl(); } 104 if (I->getDecl() == Old)
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerHelpers.cpp | 40 if (DR && isa<EnumConstantDecl>(DR->getDecl())) 55 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) 89 VD = dyn_cast_or_null<VarDecl>(DE->getDecl());
|
H A D | CallEvent.cpp | 111 const RecordDecl *RD = RT->getDecl(); 137 if (!getDecl()) 163 const auto *FD = dyn_cast_or_null<FunctionDecl>(getDecl()); 171 const Decl *D = getDecl(); 176 // our own getDecl(), because it's hard to find out which re-declaration 181 if (!RD.getDecl()) 189 if (RD.mayHaveOtherDefinitions() || RD.getDecl() != ADC->getDecl()) 233 // CallEvent's parameters() because getDecl() isn't necessarily 236 const Decl *D = SFC->getDecl(); 662 const FunctionDecl *SimpleFunctionCall::getDecl() const { function in class:SimpleFunctionCall 670 const FunctionDecl *CXXInstanceCall::getDecl() const { function in class:CXXInstanceCall [all...] |
H A D | LoopWidening.cpp | 71 *LCtx->getDecl()->getBody(), ASTCtx); 85 const CXXMethodDecl *CXXMD = dyn_cast<CXXMethodDecl>(STC->getDecl());
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | TransARCAssign.cpp | 49 if (declRef && isa<VarDecl>(declRef->getDecl())) { 54 VarDecl *var = cast<VarDecl>(declRef->getDecl());
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
H A D | UninitializedPointee.cpp | 47 Out << getVariableName(getDecl()); 51 if (getDecl()->getType()->isPointerType()) 73 if (getDecl()->getType()->isIntegerType()) 82 Out << getVariableName(getDecl()) << ')'; 103 Out << getVariableName(getDecl()); 143 assert((isDereferencableType(FR->getDecl()->getType()) || 233 bool NeedsCastBack = isVoidPointer(FR->getDecl()->getType()) ||
|
H A D | UninitializedObjectChecker.cpp | 67 Out << getVariableName(getDecl()); 142 Context.getLocationContext()->getDecl()); 192 Node->getLocationContext()->getDecl()); 206 Node->getLocationContext()->getDecl()); 210 PathDiagnosticLocation::create(Pair.first->getDecl(), 246 assert((PointeeR || !isDereferencableType(FR->getDecl()->getType())) && 251 FR->getDecl()->getLocation())) 254 if (Opts.IgnoreGuardedFields && !hasUnguardedAccess(FR->getDecl(), State)) 484 const auto *OtherCtor = dyn_cast<CXXConstructorDecl>(LC->getDecl());
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CastToStructChecker.cpp | 66 AC->getDecl(), Checker, "Cast from non-struct type to struct type", 80 VD = SE->getDecl(); 97 BR.EmitBasicReport(AC->getDecl(), Checker, "Widening cast to struct type",
|
H A D | NonnullGlobalConstantsChecker.cpp | 100 const VarDecl *Decl = Region->getDecl(); 113 Ty = TT->getDecl()->getUnderlyingType(); 140 IdentifierInfo* II = T->getDecl()->getIdentifier();
|
H A D | BoolAssignmentChecker.cpp | 48 return TT->getDecl()->getName() == "BOOL" || // Objective-C 49 TT->getDecl()->getName() == "_Bool" || // stdbool.h < C99 50 TT->getDecl()->getName() == "Boolean"; // MacTypes.h
|
H A D | SmartPtrModeling.cpp | 41 const auto *CD = dyn_cast_or_null<CXXConversionDecl>(Call.getDecl());
|
H A D | NoReturnFunctionChecker.cpp | 44 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CE.getDecl())) 90 if (const ObjCMethodDecl *MD = Msg.getDecl()) {
|
H A D | MacOSXAPIChecker.cpp | 97 const VarDecl *VD = VR->getDecl(); 112 os << VR->getDecl()->getName() << '\''; 117 os << " the instance variable '" << IVR->getDecl()->getName() << '\'';
|
H A D | UndefinedAssignmentChecker.cpp | 44 dyn_cast<FunctionDecl>(C.getStackFrame()->getDecl())) 93 dyn_cast<CXXConstructorDecl>(C.getStackFrame()->getDecl())) {
|
H A D | UndefCapturedBlockVarChecker.cpp | 39 if (BR->getDecl() == VD) 66 const VarDecl *VD = VR->getDecl();
|
H A D | IdenticalExprChecker.cpp | 71 BR.EmitBasicReport(AC->getDecl(), Checker, 120 BR.EmitBasicReport(AC->getDecl(), Checker, "Identical conditions", 143 BR.EmitBasicReport(AC->getDecl(), Checker, "Identical conditions", 173 BR.EmitBasicReport(AC->getDecl(), Checker, 232 if (DeclRef1->getDecl() == DeclRef2->getDecl()) { 264 BR.EmitBasicReport(AC->getDecl(), Checker, 286 AC->getDecl(), Checker, 462 return DeclRef1->getDecl() == DeclRef2->getDecl(); [all...] |
H A D | ObjCSelfInitChecker.cpp | 173 C.getCurrentAnalysisDeclContext()->getDecl()))) 200 C.getCurrentAnalysisDeclContext()->getDecl()))) 213 C.getCurrentAnalysisDeclContext()->getDecl()))) 241 C.getCurrentAnalysisDeclContext()->getDecl()))) 269 C.getCurrentAnalysisDeclContext()->getDecl()))) 304 C.getCurrentAnalysisDeclContext()->getDecl()))) 419 return (DR->getDecl() == analCtx->getSelfDecl());
|
H A D | DeadStoresChecker.cpp | 56 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) 263 BR.EmitBasicReport(AC->getDecl(), Checker, BugType, "Dead store", os.str(), 290 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) 307 if (DR->getDecl() == VD) 311 if (DR->getDecl() == VD) 332 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { 350 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl())) 420 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { 477 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
|
H A D | CStringSyntaxChecker.cpp | 41 return D1->getDecl() == D2->getDecl(); 74 return D->getDecl()->getName(); 168 const auto *LenArgVal = dyn_cast<VarDecl>(LenArgDRE->getDecl()); 171 assert(isa<EnumConstantDecl>(LenArgDRE->getDecl()));
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | CXXInheritance.cpp | 166 cast_or_null<CXXRecordDecl>(Ty->getDecl()->getDefinition()); 287 BaseRecord = cast<CXXRecordDecl>(RT->getDecl()); 304 BaseSpec.getType()->castAs<RecordType>()->getDecl()); 370 VBase = cast<CXXRecordDecl>(Record->getDecl()); 382 HidingClass = cast<CXXRecordDecl>(Record->getDecl()); 401 return Specifier->getType()->castAs<RecordType>()->getDecl() 411 Specifier->getType()->castAs<RecordType>()->getDecl() 419 Specifier->getType()->castAs<RecordType>()->getDecl(); 449 Specifier->getType()->castAs<RecordType>()->getDecl(); 462 return findOrdinaryMember(RT->getDecl(), Pat [all...] |
/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/ |
H A D | CocoaConventions.cpp | 28 StringRef TDName = TD->getDecl()->getIdentifier()->getName(); 34 RetTy = TD->getDecl()->getUnderlyingType();
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | ScopeInfo.cpp | 76 D = cast<DeclRefExpr>(E)->getDecl(); 87 D = IE->getDecl(); 140 : Base(nullptr, true), Property(DRE->getDecl()) { 146 : Base(getBaseInfo(IvarE->getBase())), Property(IvarE->getDecl()) { 193 if (isa<VarDecl>(DRE->getDecl()))
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/ |
H A D | SValExplainer.h | 95 if (auto D = dyn_cast<ParmVarDecl>(V->getDecl())) 183 const VarDecl *VD = R->getDecl(); 200 return "instance variable '" + R->getDecl()->getNameAsString() + "' of " + 205 return "field '" + R->getDecl()->getNameAsString() + "' of " + 215 return "base object '" + R->getDecl()->getQualifiedNameAsString() +
|