Home
last modified time | relevance | path

Searched refs:getDefinition (Results 1 – 25 of 111) sorted by relevance

12345

/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterODRStrategiesTest.cpp247 static std::string getDefinition() { return TypeParam::Definition; } in getDefinition() function
305 TypedTest_ImportAfter<getDefinition, getConflictingDefinition, in TypedTest_ImportConflictingDefAfterDef()
313 TypedTest_ImportAfter<getDefinition, getConflictingPrototype, in TypedTest_ImportConflictingProtoAfterDef()
317 TypedTest_ImportAfter<getConflictingPrototype, getDefinition, in TypedTest_ImportConflictingDefAfterProto()
329 TypedTest_ImportAfter<getDefinition, getConflictingProtoDef, in TypedTest_ImportConflictingProtoDefAfterDef()
333 TypedTest_ImportAfter<getConflictingProtoDef, getDefinition, in TypedTest_ImportConflictingDefAfterProtoDef()
342 TypedTest_ImportAfter<getDefinition, getConflictingDefinition, in TypedTest_DontImportConflictingDefAfterDef()
346 TypedTest_ImportAfter<getDefinition, getConflictingPrototype, in TypedTest_DontImportConflictingProtoAfterDef()
350 TypedTest_ImportAfter<getConflictingPrototype, getDefinition, in TypedTest_DontImportConflictingDefAfterProto()
362 TypedTest_ImportAfter<getDefinition, getConflictingProtoDef, in TypedTest_DontImportConflictingProtoDefAfterDef()
[all …]
H A DASTImporterGenericRedeclTest.cpp139 std::string getDefinition() { return TypeParam::Definition; } in getDefinition() function
200 Decl *FromTU = getTuDecl(getDefinition(), Lang_CXX03); in TypedTest_DefinitionShouldBeImportedAsADefinition()
238 Decl *FromTU = getTuDecl(getPrototype() + getDefinition(), Lang_CXX03); in TypedTest_ImportDefinitionAfterImportedPrototype()
260 Decl *FromTU = getTuDecl(getDefinition() + getPrototype(), Lang_CXX03); in TypedTest_ImportPrototypeAfterImportedDefinition()
305 Decl *FromTU0 = getTuDecl(getDefinition(), Lang_CXX03, "input0.cc"); in TypedTest_ImportDefinitions()
306 Decl *FromTU1 = getTuDecl(getDefinition(), Lang_CXX03, "input1.cc"); in TypedTest_ImportDefinitions()
327 Decl *FromTUDef = getTuDecl(getDefinition(), Lang_CXX03, "input0.cc"); in TypedTest_ImportDefinitionThenPrototype()
353 Decl *FromTUDef = getTuDecl(getDefinition(), Lang_CXX03, "input1.cc"); in TypedTest_ImportPrototypeThenDefinition()
377 Decl *FromTU = getTuDecl(getPrototype() + getDefinition(), Lang_CXX03); in TypedTest_WholeRedeclChainIsImportedAtOnce()
398 getTuDecl(getPrototype() + getDefinition(), Lang_CXX03, "input1.cc"); in TypedTest_ImportPrototypeThenProtoAndDefinition()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/fuchsia/
H A DMultipleInheritanceCheck.cpp76 const RecordDecl *D = Ty->getDecl()->getDefinition(); in isInterface()
105 const auto *Base = cast<CXXRecordDecl>(Ty->getDecl()->getDefinition()); in check()
114 const auto *Base = cast<CXXRecordDecl>(Ty->getDecl()->getDefinition()); in check()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DMacroInfo.h403 DefInfo getDefinition();
404 const DefInfo getDefinition() const { in getDefinition() function
405 return const_cast<MacroDirective *>(this)->getDefinition(); in getDefinition()
409 if (const DefInfo Def = getDefinition()) in isDefined()
415 return getDefinition().getMacroInfo(); in getMacroInfo()
417 MacroInfo *getMacroInfo() { return getDefinition().getMacroInfo(); } in getMacroInfo()
502 return DefDirective->getPrevious()->getDefinition(); in getPreviousDefinition()
H A DPreprocessingRecord.h188 if (MacroDefinitionRecord *Def = getDefinition()) in getName()
195 MacroDefinitionRecord *getDefinition() const { in getDefinition() function
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp117 if (!RecordDecl->getDefinition()) { in handleCXXRecordDecl()
121 RecordDecl = RecordDecl->getDefinition(); in handleCXXRecordDecl()
157 const auto* RecordDecl = RD->getDefinition(); in addUSRsOfCtorDtors()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DRecordLayout.h252 Base = Base->getDefinition(); in getBaseClassOffset()
262 VBase = VBase->getDefinition(); in getVBaseClassOffset()
H A DDecl.h1241 VarDecl *getDefinition(ASTContext &);
1245 VarDecl *getDefinition() { in getDefinition() function
1246 return getDefinition(getASTContext()); in getDefinition()
1248 const VarDecl *getDefinition() const { in getDefinition() function
2139 FunctionDecl *getDefinition() { in getDefinition() function
2145 const FunctionDecl *getDefinition() const { in getDefinition() function
3557 TagDecl *getDefinition() const;
3749 EnumDecl *getDefinition() const { in getDefinition() function
3784 const EnumDecl *E = getDefinition(); in enumerator_begin()
3791 const EnumDecl *E = getDefinition(); in enumerator_end()
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclObjC.cpp97 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in getMethod()
184 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in findPropertyDecl()
254 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in FindPropertyDeclaration()
327 if (const ObjCInterfaceDecl *def = getDefinition()) in getTypeParamList()
581 getCanonicalDecl()->getDefinition() == getDefinition()) in isDesignatedInitializer()
1601 if (const ObjCInterfaceDecl *Def = getDefinition()) { in getImplementation()
1974 const ObjCProtocolDecl *Def = getDefinition(); in lookupMethod()
2003 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectPropertiesToImplement()
2020 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectInheritedProtocolProperties()
2129 ClassInterface = ClassInterface->getDefinition(); in Create()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DConfusableIdentifierCheck.cpp130 RD0 = RD0->getDefinition(); in mayShadow()
135 RD1 = RD1->getDefinition(); in mayShadow()
H A DNoRecursionCheck.cpp207 FunctionDecl *D = N->getDefinition(); in handleSCC()
230 FunctionDecl *CycleEntryFn = CyclicCallStack.front().Callee->getDefinition(); in handleSCC()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DInterfacesGlobalInitCheck.cpp45 const auto *const ReferenceeDef = Referencee->getDefinition(); in check()
H A DSlicingCheck.cpp94 BaseRecordType->getDecl()->getDefinition())) in diagnoseSlicedOverriddenMethods()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DDefaultOperatorNewAlignmentCheck.cpp36 if (!D || !D->getDefinition() || !D->isCompleteDefinition()) in check()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DProgram.cpp204 F = F->getDefinition(); in getFunction()
215 if (const FunctionDecl *FD = F->getDefinition()) in getOrCreateFunction()
224 RD = RD->getDefinition(); in getOrCreateRecord()
/llvm-project-15.0.7/clang/lib/Lex/
H A DMacroInfo.cpp198 MacroDirective::DefInfo MacroDirective::getDefinition() { in getDefinition() function in MacroDirective
223 for (DefInfo Def = getDefinition(); Def; Def = Def.getPreviousDefinition()) { in findDirectiveAtLoc()
/llvm-project-15.0.7/clang/include/clang/Analysis/
H A DCallGraph.h197 FunctionDecl *getDefinition() const { in getDefinition() function
198 return getDecl()->getAsFunction()->getDefinition(); in getDefinition()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp280 const RecordDecl *RD = R->getValueType()->getAsRecordDecl()->getDefinition(); in isNonUnionUninit()
520 return M->getDefinition()->getBody(); in getMethodBody()
533 Parent = Parent->getDefinition(); in hasUnguardedAccess()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenTBAA.cpp101 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in isValidBaseType()
284 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in CollectFields()
336 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in getBaseTypeInfoHelper()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousMemoryComparisonCheck.cpp55 PointeeType->getAsRecordDecl()->getDefinition()) { in check()
H A DCopyConstructorInitCheck.cpp58 BaseType->getAsCXXRecordDecl()->getDefinition(); in check()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp78 if (!(RD = RD->getDefinition())) in visitRecord()
134 if (!(RD = RD->getDefinition())) in shouldSkipDecl()
/llvm-project-15.0.7/clang/lib/Sema/
H A DUsedDeclVisitor.h75 if (Record->getDefinition()) in VisitCXXDeleteExpr()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTCommon.cpp301 if (const TagDecl *Def = cast<TagDecl>(DC)->getDefinition()) in getDefinitiveDeclContext()
330 = cast<ObjCProtocolDecl>(DC)->getDefinition()) in getDefinitiveDeclContext()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.cpp68 R = R->getDefinition(); in isRefCountable()

12345