| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | NarrowingConversionsCheck.h | 54 void diagNarrowTypeOrConstant(const ASTContext &Context, 58 void handleIntegralCast(const ASTContext &Context, SourceLocation SourceLoc, 61 void handleIntegralToBoolean(const ASTContext &Context, 65 void handleIntegralToFloating(const ASTContext &Context, 69 void handleFloatingToIntegral(const ASTContext &Context, 73 void handleFloatingToBoolean(const ASTContext &Context, 77 void handleBooleanToSignedIntegral(const ASTContext &Context, 87 bool handleConditionalOperator(const ASTContext &Context, const Expr &Lhs, 90 void handleImplicitCast(const ASTContext &Context, 93 void handleBinaryOperator(const ASTContext &Context, [all …]
|
| H A D | NarrowingConversionsCheck.cpp | 60 const ASTContext &Ctx = Node.getASTContext(); in AST_MATCHER() 191 static bool getIntegerConstantExprValue(const ASTContext &Context, in getIntegerConstantExprValue() 200 static bool getFloatingConstantExprValue(const ASTContext &Context, in getFloatingConstantExprValue() 228 static IntegerRange createFromType(const ASTContext &Context, in createFromType() 256 static bool isWideEnoughToHold(const ASTContext &Context, in isWideEnoughToHold() 264 static bool isWideEnoughToHold(const ASTContext &Context, in isWideEnoughToHold() 274 static bool isFloatExactlyRepresentable(const ASTContext &Context, in isFloatExactlyRepresentable() 304 const ASTContext &Context, const BuiltinType &FromType, in isWarningInhibitedByEquivalentSize() 365 const ASTContext &Context, SourceLocation SourceLoc, const Expr &Lhs, in diagNarrowTypeOrConstant() 532 const ASTContext &Context, const Expr &Lhs, const Expr &Rhs) { in handleConditionalOperator() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | SimplifyBooleanExprCheck.h | 37 void reportBinOp(const ASTContext &Context, const BinaryOperator *Op); 39 void replaceWithThenStatement(const ASTContext &Context, 43 void replaceWithElseStatement(const ASTContext &Context, 47 void replaceWithCondition(const ASTContext &Context, 50 void replaceWithReturnCondition(const ASTContext &Context, const IfStmt *If, 53 void replaceWithAssignment(const ASTContext &Context, const IfStmt *If, 56 void replaceCompoundReturnWithCondition(const ASTContext &Context, 61 bool reportDeMorgan(const ASTContext &Context, const UnaryOperator *Outer, 65 void issueDiag(const ASTContext &Result, SourceLocation Loc,
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | NestedNameSpecifier.h | 30 class ASTContext; variable 114 static NestedNameSpecifier *FindOrInsert(const ASTContext &Context, 125 static NestedNameSpecifier *Create(const ASTContext &Context, 130 static NestedNameSpecifier *Create(const ASTContext &Context, 135 static NestedNameSpecifier *Create(const ASTContext &Context, 140 static NestedNameSpecifier *Create(const ASTContext &Context, 150 static NestedNameSpecifier *Create(const ASTContext &Context, 417 void Extend(ASTContext &Context, IdentifierInfo *Identifier, 431 void Extend(ASTContext &Context, NamespaceDecl *Namespace, 446 void Extend(ASTContext &Context, NamespaceAliasDecl *Alias, [all …]
|
| H A D | ASTUnresolvedSet.h | 34 DeclsTy(ASTContext &C, unsigned N) : ASTVector<DeclAccessPair>(C, N) {} in DeclsTy() 44 ASTUnresolvedSet(ASTContext &C, unsigned N) : Decls(C, N) {} in ASTUnresolvedSet() 55 void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS) { in addDecl() 79 void reserve(ASTContext &C, unsigned N) { in reserve() 83 void append(ASTContext &C, iterator I, iterator E) { in append() 96 void getFromExternalSource(ASTContext &C) const; 99 ASTUnresolvedSet &get(ASTContext &C) const { in get() 105 void reserve(ASTContext &C, unsigned N) { Impl.reserve(C, N); } in reserve() 107 void addLazyDecl(ASTContext &C, uintptr_t ID, AccessSpecifier AS) { in addLazyDecl()
|
| H A D | StmtOpenMP.h | 176 static OMPCanonicalLoop *createEmpty(const ASTContext &Ctx) { in createEmpty() 661 static OMPParallelDirective *CreateEmpty(const ASTContext &C, 1894 static OMPSectionDirective *Create(const ASTContext &C, 1961 static OMPSingleDirective *CreateEmpty(const ASTContext &C, 2001 static OMPMasterDirective *Create(const ASTContext &C, 2645 static OMPTaskwaitDirective *Create(const ASTContext &C, 2773 static OMPFlushDirective *CreateEmpty(const ASTContext &C, 2815 static OMPDepobjDirective *Create(const ASTContext &C, 3004 static OMPAtomicDirective *Create(const ASTContext &C, 3526 static OMPTeamsDirective *CreateEmpty(const ASTContext &C, [all …]
|
| H A D | ASTContextAllocate.h | 21 class ASTContext; variable 26 void *operator new(size_t Bytes, const clang::ASTContext &C, 28 void *operator new[](size_t Bytes, const clang::ASTContext &C, 34 void operator delete(void *Ptr, const clang::ASTContext &C, size_t); 35 void operator delete[](void *Ptr, const clang::ASTContext &C, size_t);
|
| H A D | DeclTemplate.h | 112 static TemplateParameterList *Create(const ASTContext &C, 202 void print(raw_ostream &Out, const ASTContext &Context, 204 void print(raw_ostream &Out, const ASTContext &Context, 619 ASTContext &Context) { in Profile() 1017 CommonBase *newCommon(ASTContext &C) const override; 1765 void setDefaultArgument(const ASTContext &C, 1897 CreateDeserialized(ASTContext &C, unsigned ID); 2087 ASTContext &Context) { 2149 CreateDeserialized(ASTContext &C, unsigned ID); 2938 ASTContext &Context) { [all …]
|
| H A D | ExternalASTMerger.h | 54 ASTContext *AST; 74 ASTContext &AST; 84 ASTContext &AST; 95 ImporterSource(ASTContext &AST, FileManager &FM, const OriginMap &OM, 98 ASTContext &getASTContext() const { return AST; } in getASTContext() 174 bool HasImporterForOrigin(ASTContext &OriginContext); 179 ASTImporter &ImporterForOrigin(ASTContext &OriginContext);
|
| H A D | DeclCXX.h | 56 class ASTContext; variable 1681 void viewInheritance(ASTContext& Context) const; 1985 CXXMethodDecl(Kind DK, ASTContext &C, CXXRecordDecl *RD, 2271 int64_t getID(const ASTContext &Context) const; 3038 NamespaceAliasDecl(ASTContext &C, DeclContext *DC, in NamespaceAliasDecl() 3250 UsingShadowDecl(Kind K, ASTContext &C, EmptyShell); 3466 static UsingDecl *Create(ASTContext &C, DeclContext *DC, 3815 CreateDeserialized(ASTContext &C, unsigned ID); 3906 CreateDeserialized(ASTContext &C, unsigned ID); 4194 friend class ASTContext; variable [all …]
|
| H A D | Decl.h | 54 class ASTContext; variable 97 ASTContext &Ctx; 103 explicit TranslationUnitDecl(ASTContext &ctx); 118 ASTContext &getASTContext() const { return Ctx; } in getASTContext() 123 static TranslationUnitDecl *Create(ASTContext &C); 1241 VarDecl *getDefinition(ASTContext &); 1588 bool isNoDestroy(const ASTContext &) const; 3003 bool isZeroSize(const ASTContext &Ctx) const; 3177 friend class ASTContext; variable 4168 bool isMsStruct(const ASTContext &C) const; [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ClangASTImporter.h | 200 void InstallMapCompleter(clang::ASTContext *dst_ctx, in InstallMapCompleter() 215 void ForgetDestination(clang::ASTContext *dst_ctx); 216 void ForgetSource(clang::ASTContext *dst_ctx, clang::ASTContext *src_ctx); 221 DeclOrigin(clang::ASTContext *_ctx, clang::Decl *_decl) in DeclOrigin() 239 clang::ASTContext *ctx = nullptr; 263 clang::ASTContext *source_ctx) in ASTImporterDelegate() 333 clang::ASTContext *m_source_ctx; 350 clang::ASTContext *m_dst_ctx; 375 void removeOriginsWithContext(clang::ASTContext *ctx) { in removeOriginsWithContext() 434 ImporterDelegateSP GetDelegate(clang::ASTContext *dst_ctx, in GetDelegate() [all …]
|
| /llvm-project-15.0.7/clang/test/Analysis/inlining/ |
| H A D | placement-new-fp-suppression.cpp | 72 class ASTContext; 74 void *operator new(size_t Bytes, const ASTContext &C, size_t Alignment = 8); 75 void *operator new[](size_t Bytes, const ASTContext &C, size_t Alignment = 8); 79 class ASTContext { class 96 inline void *operator new(size_t Bytes, const ASTContext &C, in operator new() 101 inline void *operator new[](size_t Bytes, const ASTContext &C, in operator new[]() 108 void *operator new(size_t Bytes, ASTContext &C, in operator new() 121 void f(const ASTContext &C) { in f() 129 void g(const ASTContext &C) { in g()
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Transformer/ |
| H A D | SourceCodeBuilders.h | 54 bool isKnownPointerLikeType(QualType Ty, ASTContext &Context); 63 const ASTContext &Context); 68 const ASTContext &Context); 73 const ASTContext &Context); 83 llvm::Optional<std::string> buildDot(const Expr &E, const ASTContext &Context); 94 const ASTContext &Context); 115 buildAccess(const Expr &E, ASTContext &Context,
|
| H A D | SourceCode.h | 27 ASTContext &Context); 34 ASTContext &Context) { in getExtendedRange() 48 CharSourceRange getAssociatedRange(const Decl &D, ASTContext &Context); 51 StringRef getText(CharSourceRange Range, const ASTContext &Context); 55 StringRef getText(const T &Node, const ASTContext &Context) { in getText() 84 ASTContext &Context) { in getExtendedText() 101 getRangeForEdit(const CharSourceRange &EditRange, const ASTContext &Context) { in getRangeForEdit()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ASTContext.cpp | 972 ASTContext::ASTContext(LangOptions &LOpts, SourceManager &SM, in ASTContext() function in ASTContext 993 void ASTContext::cleanup() { in cleanup() 1032 ASTContext::~ASTContext() { cleanup(); } in ~ASTContext() 1048 void ASTContext::PrintStats() const { in PrintStats() 1140 void ASTContext::PerModuleInitializers::resolve(ASTContext &Ctx) { in resolve() 1530 ASTContext::TemplateOrSpecializationInfo 1648 ASTContext::overridden_method_range 1663 void ASTContext::getOverriddenMethods( in getOverriddenMethods() 3227 void ASTContext::adjustExceptionSpec( in adjustExceptionSpec() 3841 ASTContext::BuiltinVectorTypeInfo [all …]
|
| H A D | DeclOpenMP.cpp | 28 OMPThreadPrivateDecl *OMPThreadPrivateDecl::Create(ASTContext &C, in Create() 38 OMPThreadPrivateDecl *OMPThreadPrivateDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized() 57 OMPAllocateDecl *OMPAllocateDecl::Create(ASTContext &C, DeclContext *DC, in Create() 66 OMPAllocateDecl *OMPAllocateDecl::CreateDeserialized(ASTContext &C, unsigned ID, in CreateDeserialized() 85 OMPRequiresDecl *OMPRequiresDecl::Create(ASTContext &C, DeclContext *DC, in Create() 92 OMPRequiresDecl *OMPRequiresDecl::CreateDeserialized(ASTContext &C, unsigned ID, in CreateDeserialized() 113 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create() 120 OMPDeclareReductionDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized() 143 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create() 150 OMPDeclareMapperDecl *OMPDeclareMapperDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized() [all …]
|
| H A D | StmtOpenMP.cpp | 262 OMPMetaDirective *OMPMetaDirective::Create(const ASTContext &C, in Create() 565 const ASTContext &C, const DeclarationNameInfo &Name, in Create() 661 OMPParallelForSimdDirective::CreateEmpty(const ASTContext &C, in CreateEmpty() 679 OMPParallelMasterDirective::CreateEmpty(const ASTContext &C, in CreateEmpty() 695 OMPParallelMaskedDirective::CreateEmpty(const ASTContext &C, in CreateEmpty() 713 OMPParallelSectionsDirective::CreateEmpty(const ASTContext &C, in CreateEmpty() 936 OMPTargetParallelDirective::CreateEmpty(const ASTContext &C, in CreateEmpty() 1171 OMPMasterTaskLoopDirective::CreateEmpty(const ASTContext &C, in CreateEmpty() 1216 OMPMaskedTaskLoopDirective::CreateEmpty(const ASTContext &C, in CreateEmpty() 1715 OMPDistributeSimdDirective::CreateEmpty(const ASTContext &C, in CreateEmpty() [all …]
|
| H A D | DeclTemplate.cpp | 296 ASTContext &Context = getASTContext(); in loadLazySpecializationsImpl() 368 FunctionTemplateDecl::newCommon(ASTContext &C) const { in newCommon() 485 ClassTemplateDecl::newCommon(ASTContext &C) const { in newCommon() 510 static void ProfileTemplateParameterList(ASTContext &C, in ProfileTemplateParameterList() 543 ASTContext &Context) { in Profile() 578 ASTContext &Context = getASTContext(); in findPartialSpecialization() 613 ASTContext &Context = getASTContext(); in getInjectedClassNameSpecialization() 873 TemplateArgumentList::CreateCopy(ASTContext &Context, in CreateCopy() 1061 Create(ASTContext &Context, TagKind TK,DeclContext *DC, in Create() 1205 VarTemplateDecl::newCommon(ASTContext &C) const { in newCommon() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchFinder.h | 75 MatchResult(const BoundNodes &Nodes, clang::ASTContext *Context); 84 clang::ASTContext * const Context; 196 void match(const clang::DynTypedNode &Node, ASTContext &Context); 200 void matchAST(ASTContext &Context); 253 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context); 257 ASTContext &Context); 302 ASTContext &Context) { in match() 312 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context) { in match() 318 match(MatcherT Matcher, ASTContext &Context) { in match() 328 ASTContext &Context) { in matchDynamic() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | DeclRefExprUtils.h | 28 ASTContext &Context); 32 allDeclRefExprs(const VarDecl &VarDecl, const Stmt &Stmt, ASTContext &Context); 36 allDeclRefExprs(const VarDecl &VarDecl, const Decl &Decl, ASTContext &Context); 42 ASTContext &Context); 47 ASTContext &Context); 52 ASTContext &Context);
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PaddingChecker.cpp | 90 auto &ASTContext = RD->getASTContext(); in visitRecord() local 91 const ASTRecordLayout &RL = ASTContext.getASTRecordLayout(RD); in visitRecord() 94 CharUnits BaselinePad = calculateBaselinePad(RD, ASTContext, RL); in visitRecord() 101 calculateOptimalPad(RD, ASTContext, RL); in visitRecord() 191 const ASTContext &ASTContext, in calculateBaselinePad() argument 194 CharUnits Offset = ASTContext.toCharUnitsFromBits(RL.getFieldOffset(0)); in calculateBaselinePad() 199 if (FD->isZeroSize(ASTContext)) in calculateBaselinePad() 205 CharUnits FieldSize = ASTContext.getTypeSizeInChars(FD->getType()); in calculateBaselinePad() 207 CharUnits FieldOffset = ASTContext.toCharUnitsFromBits(FieldOffsetBits); in calculateBaselinePad() 232 calculateOptimalPad(const RecordDecl *RD, const ASTContext &ASTContext, in calculateOptimalPad() argument [all …]
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | SourceCodeTest.cpp | 41 std::function<void(IntegerLiteral *, ASTContext *Context)> OnIntLit; 50 std::function<void(CallExpr *, ASTContext *Context)> OnCall; 124 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() 129 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() 139 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() 150 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() 164 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() 181 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() 445 Visitor.OnCall = [&Code](CallExpr *CE, ASTContext *Context) { in TEST() 523 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/ |
| H A D | UnrollLoopsCheck.h | 50 const ASTContext *Context); 56 const ASTContext *Context); 61 const ASTContext *Context); 64 enum UnrollType unrollType(const Stmt *Statement, ASTContext *Context); 70 const ASTContext *Context);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-doc/ |
| H A D | Mapper.h | 33 explicit MapASTVisitor(ASTContext *Ctx, ClangDocContext CDCtx) in MapASTVisitor() 36 void HandleTranslationUnit(ASTContext &Context) override; 46 int getLine(const NamedDecl *D, const ASTContext &Context) const; 47 llvm::SmallString<128> getFile(const NamedDecl *D, const ASTContext &Context, 51 const ASTContext &Context) const;
|