Home
last modified time | relevance | path

Searched refs:Decl (Results 1 – 25 of 671) sorted by relevance

12345678910>>...27

/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTCommon.cpp295 case Decl::Export: in getDefinitiveDeclContext()
299 case Decl::Enum: in getDefinitiveDeclContext()
300 case Decl::Record: in getDefinitiveDeclContext()
319 case Decl::Block: in getDefinitiveDeclContext()
358 case Decl::Enum: in isRedeclarableDeclKind()
373 case Decl::Var: in isRedeclarableDeclKind()
380 case Decl::Empty: in isRedeclarableDeclKind()
385 case Decl::Label: in isRedeclarableDeclKind()
391 case Decl::Field: in isRedeclarableDeclKind()
400 case Decl::Using: in isRedeclarableDeclKind()
[all …]
/llvm-project-15.0.7/clang/lib/ExtractAPI/
H A DExtractAPIConsumer.cpp243 if (isa<ParmVarDecl>(Decl)) in VisitVarDecl()
255 if (Decl->getASTContext().getTemplateOrSpecializationInfo(Decl) && in VisitVarDecl()
263 StringRef Name = Decl->getName(); in VisitVarDecl()
324 StringRef Name = Decl->getName(); in VisitFunctionDecl()
350 if (!Decl->isComplete()) in VisitEnumDecl()
364 Name = getTypedefName(Decl); in VisitEnumDecl()
397 if (isa<CXXRecordDecl>(Decl)) in VisitRecordDecl()
404 StringRef Name = Decl->getName(); in VisitRecordDecl()
406 Name = getTypedefName(Decl); in VisitRecordDecl()
440 StringRef Name = Decl->getName(); in VisitObjCInterfaceDecl()
[all …]
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTImporter.h41 class Decl; variable
58 llvm::SmallVector<Decl*, 2> getCanonicalForwardRedeclChain(Decl* D);
226 llvm::DenseMap<Decl *, Decl *> ImportedDecls;
238 llvm::DenseMap<Decl *, Decl *> ImportedFromDecls;
266 virtual Expected<Decl *> ImportImpl(Decl *From);
349 llvm::Expected<Decl *> Import(Decl *FromD);
350 llvm::Expected<const Decl *> Import(const Decl *FromD) { in Import()
360 Decl *GetAlreadyImportedOrNull(const Decl *FromD) const;
547 virtual void Imported(Decl *From, Decl *To) {} in Imported()
549 void RegisterImportedDecl(Decl *FromD, Decl *ToD);
[all …]
H A DASTStructuralEquivalence.h27 class Decl; variable
47 std::queue<std::pair<Decl *, Decl *>> DeclsToCheck;
51 llvm::DenseSet<std::pair<Decl *, Decl *>> VisitedDecls;
55 llvm::DenseSet<std::pair<Decl *, Decl *>> &NonEquivalentDecls;
74 llvm::DenseSet<std::pair<Decl *, Decl *>> &NonEquivalentDecls,
91 bool IsEquivalent(Decl *D1, Decl *D2);
134 bool CheckCommonEquivalence(Decl *D1, Decl *D2);
139 bool CheckKindSpecificEquivalence(Decl *D1, Decl *D2);
H A DDeclGroup.h23 class Decl; variable
40 Decl*& operator[](unsigned i) {
42 return getTrailingObjects<Decl *>()[i];
47 return getTrailingObjects<Decl *>()[i];
56 Decl* D = nullptr;
64 explicit DeclGroupRef(Decl* d) : D(d) {} in DeclGroupRef()
76 using iterator = Decl **;
77 using const_iterator = Decl * const *;
83 Decl *getSingleDecl() { in getSingleDecl()
87 const Decl *getSingleDecl() const { in getSingleDecl()
[all …]
H A DDeclBase.h83 class alignas(8) Decl {
375 Decl() = delete;
376 Decl(const Decl&) = delete;
377 Decl(Decl &&) = delete;
378 Decl &operator=(const Decl&) = delete;
379 Decl &operator=(Decl&&) = delete;
401 virtual ~Decl();
960 Decl *Starter;
1229 inline bool declaresSameEntity(const Decl *D1, const Decl *D2) { in declaresSameEntity()
1355 return Decl;
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclBase.cpp68 static_assert(alignof(Decl) >= alignof(DERIVED##Decl), \
326 Decl::~Decl() = default;
915 Decl *Decl::castFromDeclContext (const DeclContext *D) { in castFromDeclContext()
934 DeclContext *Decl::castToDeclContext(const Decl *D) { in castToDeclContext()
940 return static_cast<NAME##Decl *>(const_cast<Decl *>(D)); in castToDeclContext()
947 return static_cast<NAME##Decl *>(const_cast<Decl *>(D)); in castToDeclContext()
1009 static Decl::Kind getKind(const Decl *D) { return D->getKind(); } in getKind()
1056 Decl *Decl::getNonClosureContext() { in getNonClosureContext()
1247 case Decl::Export: in getPrimaryContext()
1248 case Decl::Block: in getPrimaryContext()
[all …]
H A DComment.cpp225 case Decl::Function: in fill()
226 case Decl::CXXMethod: in fill()
241 if (K == Decl::CXXMethod || K == Decl::CXXConstructor || in fill()
242 K == Decl::CXXDestructor || K == Decl::CXXConversion) { in fill()
294 case Decl::Record: in fill()
295 case Decl::CXXRecord: in fill()
298 case Decl::Var: in fill()
305 case Decl::Field: in fill()
307 case Decl::ObjCIvar: in fill()
329 case Decl::Typedef: in fill()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DGlobalVariableDeclarationCheck.cpp29 if (IsConst && (Decl->getStorageClass() != SC_Static)) { in generateFixItHint()
35 char FC = Decl->getName()[0]; in generateFixItHint()
36 if (!llvm::isAlpha(FC) || Decl->getName().size() == 1) { in generateFixItHint()
43 char SC = Decl->getName()[1]; in generateFixItHint()
53 Decl->getName().substr(1).str(); in generateFixItHint()
84 if (Decl->isStaticDataMember()) in check()
86 diag(Decl->getLocation(), in check()
89 << Decl->getName() << generateFixItHint(Decl, false); in check()
92 if (Decl->isStaticDataMember()) in check()
94 diag(Decl->getLocation(), in check()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DRenamerClangTidyCheck.cpp193 Decl = Overridden; in addUsage()
195 Decl = cast<NamedDecl>(Decl->getCanonicalDecl()); in addUsage()
272 if (const auto *Decl = in check() local
275 addUsage(Decl->getParent(), Decl->getNameInfo().getSourceRange(), in check()
290 if (const auto *Decl = in check() local
308 Decl = Ref.getDecl(); in check()
317 if (Decl) { in check()
403 if (!Decl->getIdentifier() || Decl->getName().empty() || Decl->isImplicit()) in check()
454 Decl->getLocation(), Decl->getNameAsString())]; in check()
456 DeclarationNameInfo(Decl->getDeclName(), Decl->getLocation()) in check()
[all …]
/llvm-project-15.0.7/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp169 case Decl::Kind::Namespace: in HandleNamedDecl()
172 case Decl::Kind::CXXRecord: in HandleNamedDecl()
186 case Decl::Kind::Record: in HandleNamedDecl()
187 case Decl::Kind::Typedef: in HandleNamedDecl()
188 case Decl::Kind::Enum: in HandleNamedDecl()
194 case Decl::Kind::Using: in HandleNamedDecl()
197 case Decl::Kind::TypeAlias: in HandleNamedDecl()
209 case Decl::Kind::Var: { in HandleNamedDecl()
221 case Decl::Kind::ParmVar: in HandleNamedDecl()
225 case Decl::Kind::Function: in HandleNamedDecl()
[all …]
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterGenericRedeclTest.cpp24 BindableMatcher<Decl> getPattern() { in getPattern()
33 BindableMatcher<Decl> getPattern() { in getPattern()
42 BindableMatcher<Decl> getPattern() { in getPattern()
63 BindableMatcher<Decl> getPattern() { in getPattern()
72 BindableMatcher<Decl> getPattern() { in getPattern()
86 BindableMatcher<Decl> getPattern() { in getPattern()
112 BindableMatcher<Decl> getPattern() { in getPattern()
129 BindableMatcher<Decl> getPattern() { in getPattern()
142 void CheckPreviousDecl(Decl *Prev, Decl *Current) { in CheckPreviousDecl()
187 Decl *ImportedD = Import(FromD, Lang_CXX03); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
[all …]
H A DASTImporterTest.cpp85 llvm::Expected<Decl *> ImportImpl(Decl *FromD) override { in ImportImpl()
150 Decl *FromTU;
3117 Decl *ToR1; in TEST_P()
3126 Decl *ToR2; in TEST_P()
3139 Decl *ToR1; in TEST_P()
3146 Decl *ToR2; in TEST_P()
3158 Decl *ToF1; in TEST_P()
3165 Decl *ToF2; in TEST_P()
3241 Decl *ToF1; in TEST_P()
3248 Decl *ToF2; in TEST_P()
[all …]
H A DASTImporterODRStrategiesTest.cpp37 BindableMatcher<Decl> getPattern() { in getPattern()
88 BindableMatcher<Decl> getPattern() { in getPattern()
112 BindableMatcher<Decl> getPattern() { in getPattern()
131 BindableMatcher<Decl> getPattern() { in getPattern()
175 BindableMatcher<Decl> getPattern() { in getPattern()
205 BindableMatcher<Decl> getPattern() { in getPattern()
258 void (*ResultChecker)(llvm::Expected<Decl *> &, Decl *, Decl *)>
273 static void CheckImportedAsNew(llvm::Expected<Decl *> &Result, Decl *ToTU, in CheckImportedAsNew()
276 Decl *ImportedD = *Result; in CheckImportedAsNew()
292 Decl *ToTU, Decl *ToD) { in CheckImportNameConflict()
[all …]
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DDeclNodes.td12 def Decl : DeclNode<?, "", 1>;
14 def PragmaComment : DeclNode<Decl>;
15 def PragmaDetectMismatch : DeclNode<Decl>;
96 def FileScopeAsm : DeclNode<Decl>;
97 def AccessSpec : DeclNode<Decl>;
98 def Friend : DeclNode<Decl>;
100 def StaticAssert : DeclNode<Decl>;
104 def Import : DeclNode<Decl>;
106 def OMPAllocate : DeclNode<Decl>;
107 def OMPRequires : DeclNode<Decl>;
[all …]
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexSymbol.cpp170 case Decl::Import: in getSymbolInfo()
173 case Decl::Typedef: in getSymbolInfo()
175 case Decl::Function: in getSymbolInfo()
178 case Decl::Field: in getSymbolInfo()
328 case Decl::Using: in getSymbolInfo()
337 case Decl::Binding: in getSymbolInfo()
353 case Decl::Enum: in getSymbolInfo()
354 case Decl::Record: in getSymbolInfo()
360 case Decl::ParmVar: in getSymbolInfo()
361 case Decl::Var: in getSymbolInfo()
[all …]
H A DIndexingContext.h21 class Decl; variable
52 bool shouldIndex(const Decl *D);
68 static bool isTemplateImplicitInstantiation(const Decl *D);
73 bool handleDecl(const Decl *D, SourceLocation Loc,
84 const Decl *RefD = nullptr);
97 bool indexDecl(const Decl *D);
121 bool indexTopLevelDecl(const Decl *D);
125 bool shouldIgnoreIfImplicit(const Decl *D);
129 bool handleDeclOccurrence(const Decl *D, SourceLocation Loc,
130 bool IsRef, const Decl *Parent,
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DForwardDeclarationNamespaceCheck.cpp75 if (const TypeSourceInfo *Tsi = Decl->getFriendType()) { in check()
90 if (ParentDecl1->getDeclKind() == Decl::TranslationUnit || in haveSameNamespaceOrTranslationUnit()
91 ParentDecl2->getDeclKind() == Decl::TranslationUnit) { in haveSameNamespaceOrTranslationUnit()
94 assert(ParentDecl1->getDeclKind() == Decl::Namespace && in haveSameNamespaceOrTranslationUnit()
96 assert(ParentDecl2->getDeclKind() == Decl::Namespace && in haveSameNamespaceOrTranslationUnit()
104 const auto *ParentDecl = Decl->getLexicalParent(); in getNameOfNamespace()
105 if (ParentDecl->getDeclKind() == Decl::TranslationUnit) { in getNameOfNamespace()
134 for (const auto *Decl : Declarations) { in onEndOfTranslationUnit() local
135 if (Decl == CurDecl) { in onEndOfTranslationUnit()
143 << CurDecl << getNameOfNamespace(Decl); in onEndOfTranslationUnit()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTImporter.h97 clang::Decl *CopyDecl(clang::ASTContext *dst_ctx, clang::Decl *decl);
110 clang::Decl *DeportDecl(clang::ASTContext *dst_ctx, clang::Decl *decl);
168 void SetDeclOrigin(const clang::Decl *decl, clang::Decl *original_decl);
240 clang::Decl *decl = nullptr;
248 virtual void NewDeclImported(clang::Decl *from, clang::Decl *to) = 0;
311 void ImportDefinitionTo(clang::Decl *to, clang::Decl *from);
313 void Imported(clang::Decl *from, clang::Decl *to) override;
315 clang::Decl *GetOriginalDecl(clang::Decl *To) override;
324 llvm::Expected<clang::Decl *> ImportImpl(clang::Decl *From) override;
395 bool hasOrigin(const clang::Decl *decl) const { in hasOrigin()
[all …]
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DFunctionSummary.h30 using SetOfDecls = std::deque<Decl *>;
31 using SetOfConstDecls = llvm::DenseSet<const Decl *>;
61 MapTy::iterator findOrInsertSummary(const Decl *D) { in findOrInsertSummary()
73 void markMayInline(const Decl *D) { in markMayInline()
79 void markShouldNotInline(const Decl *D) { in markShouldNotInline()
85 void markReachedMaxBlockCount(const Decl *D) { in markReachedMaxBlockCount()
89 Optional<bool> mayInline(const Decl *D) { in mayInline()
107 unsigned getNumVisitedBasicBlocks(const Decl* D) { in getNumVisitedBasicBlocks()
114 unsigned getNumTimesInlined(const Decl* D) { in getNumTimesInlined()
121 void bumpNumTimesInlined(const Decl* D) { in bumpNumTimesInlined()
[all …]
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp171 const Decl *Context;
191 if (Decl->isImplicit()) in VisitNamedDecl()
194 if (isInUSRSet(Decl)) { in VisitNamedDecl()
219 if (isInUSRSet(Decl)) { in VisitMemberExpr()
233 if (isInUSRSet(Decl)) { in VisitDesignatedInitExpr()
312 Decl = ED; in VisitDeclRefExpr()
328 if (isInUSRSet(Decl) && in VisitDeclRefExpr()
332 Decl, in VisitDeclRefExpr()
503 bool isInUSRSet(const Decl *Decl) const { in isInUSRSet()
521 StringRef PrevName, Decl *Decl) { in getOccurrencesOfUSRs() argument
[all …]
/llvm-project-15.0.7/lldb/tools/lldb-instr/
H A DInstrument.cpp30 bool VisitCXXMethodDecl(CXXMethodDecl *Decl) { in VisitCXXMethodDecl() argument
33 if (ShouldSkip(Decl)) in VisitCXXMethodDecl()
42 if (!Decl->isStatic()) in VisitCXXMethodDecl()
44 for (auto *P : Decl->parameters()) in VisitCXXMethodDecl()
56 Stmt *Body = Decl->getBody(); in VisitCXXMethodDecl()
85 bool ShouldSkip(CXXMethodDecl *Decl) { in ShouldSkip() argument
93 if (Decl == Decl->getCanonicalDecl()) in ShouldSkip()
97 Stmt *Body = Decl->getBody(); in ShouldSkip()
102 AccessSpecifier AS = Decl->getAccess(); in ShouldSkip()
107 if (Decl->isVariadic()) in ShouldSkip()
[all …]
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DTemplate.h33 class Decl; variable
315 llvm::SmallDenseMap<const Decl *,
418 const Decl *D = I->first; in cloneScopes()
421 if (I->second.is<Decl *>()) { in cloneScopes()
422 Stored = I->second.get<Decl *>(); in cloneScopes()
455 findInstantiationOf(const Decl *D);
457 void InstantiatedLocal(const Decl *D, Decl *Inst);
494 bool isLocalPackExpansion(const Decl *D);
531 Decl *Visit ## DERIVED ## Decl(DERIVED ## Decl *D);
568 Decl *VisitFunctionDecl(FunctionDecl *D,
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-move/
H A DHelperDeclRefGraph.h55 void addEdge(const Decl *Caller, const Decl *Callee);
56 CallGraphNode *getNode(const Decl *D) const;
60 llvm::DenseSet<const CallGraphNode *> getReachableNodes(const Decl *D) const;
69 CallGraphNode *getOrInsertNode(Decl *D);
71 typedef llvm::DenseMap<const Decl *, std::unique_ptr<CallGraphNode>>
89 static const Decl *getOutmostClassOrFunDecl(const Decl *D);
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp729 const internal::VariadicDynCastAllOfMatcher<Decl, TypedefNameDecl>
734 const internal::VariadicAllOfMatcher<Decl> decl;
737 const internal::VariadicDynCastAllOfMatcher<Decl, LinkageSpecDecl>
748 const internal::VariadicDynCastAllOfMatcher<Decl,
752 Decl, ClassTemplatePartialSpecializationDecl>
754 const internal::VariadicDynCastAllOfMatcher<Decl, DeclaratorDecl>
757 const internal::VariadicDynCastAllOfMatcher<Decl, AccessSpecDecl>
796 const internal::VariadicDynCastAllOfMatcher<Decl, EnumConstantDecl>
798 const internal::VariadicDynCastAllOfMatcher<Decl, TagDecl> tagDecl;
833 const internal::VariadicDynCastAllOfMatcher<Decl, ObjCMethodDecl>
[all …]

12345678910>>...27