| /llvm-project-15.0.7/clang/unittests/Analysis/ |
| H A D | ExprMutationAnalyzerTest.cpp | 56 TraversalKindScope RAII(AST->getASTContext(), TK_AsIs); in isMutated() 57 return ExprMutationAnalyzer(*S, AST->getASTContext()).isMutated(E); in isMutated() 64 ExprMutationAnalyzer Analyzer(*S, AST->getASTContext()); in mutatedBy() 111 match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); in TEST() 128 match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); in TEST_P() 219 match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); in TEST() 229 match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); in TEST_P() 243 match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); in TEST() 253 match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); in TEST() 273 match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | RandstructTest.cpp | 82 getRecordDeclFromAST(LHS->getASTContext(), RecordName); in recordsEqual() 84 getRecordDeclFromAST(LHS->getASTContext(), RecordName); in recordsEqual() 167 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST() 187 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST() 207 const RecordDecl *RD = getRecordDeclFromAST(AST->getASTContext(), "test"); in TEST() 416 getRecordDeclFromAST(AST->getASTContext(), "test_struct"); in TEST() 418 &AST->getASTContext().getASTRecordLayout(RD); in TEST() 428 getRecordDeclFromAST(AST->getASTContext(), "another_struct"); in TEST() 430 &AST->getASTContext().getASTRecordLayout(RD); in TEST() 440 getRecordDeclFromAST(AST->getASTContext(), "last_struct"); in TEST() [all …]
|
| H A D | ASTTraverserTest.cpp | 257 AST->getASTContext()); in TEST() 442 AST->getASTContext()); in TEST() 473 AST->getASTContext()); in TEST() 501 AST->getASTContext()); in TEST() 652 AST->getASTContext()); in TEST() 979 AST->getASTContext()); in TEST() 1206 AST2->getASTContext()); in TEST() 1630 AST->getASTContext()); in TEST() 1721 AST->getASTContext()); in TEST() 1759 AST->getASTContext()); in TEST() [all …]
|
| H A D | AttrTest.cpp | 43 match(functionDecl(hasName(Name)).bind("fn"), AST->getASTContext()); in getFunctionNode() 49 auto Result = match(varDecl(hasName(Name)).bind("var"), AST->getASTContext()); in getVariableNode() 108 *Annotate->args_begin()[0], AST->getASTContext())); in TEST() 112 *Annotate->args_begin()[1], AST->getASTContext()) in TEST() 120 EXPECT_EQ(IntTL.getType(), AST->getASTContext().IntTy); in TEST() 132 EXPECT_EQ(IntTL.getType(), AST->getASTContext().IntTy); in TEST() 153 EXPECT_EQ(IntTL.getType(), AST->getASTContext().IntTy); in TEST()
|
| H A D | ASTImporterFixtures.cpp | 27 ASTContext &ToCtx = ToAST->getASTContext(); in createVirtualFileIfNeeded() 47 TUDecl(Unit->getASTContext().getTranslationUnitDecl()), Creator(C), in TU() 70 Importer.reset(Creator(ToAST->getASTContext(), ToAST->getFileManager(), in lazyInitImporter() 71 Unit->getASTContext(), Unit->getFileManager(), false, in lazyInitImporter() 75 assert(&ToAST->getASTContext() == &Importer->getToContext()); in lazyInitImporter() 127 lazyInitSharedState(ToAST->getASTContext().getTranslationUnitDecl()); in lazyInitToAST() 154 ASTContext &FromCtx = FromTU.Unit->getASTContext(); in getImportedDecl() 192 return ToAST->getASTContext().getTranslationUnitDecl(); in getToTuDecl() 228 Tu.Unit->getASTContext().getTranslationUnitDecl()->dump(); in ~ASTImporterTestBase() 233 ToAST->getASTContext().getTranslationUnitDecl()->dump(); in ~ASTImporterTestBase()
|
| H A D | DeclTest.cpp | 80 ASTContext &Ctx = AST->getASTContext(); in TEST() 123 ASTContext &Ctx = AST->getASTContext(); in TEST() 150 ASTContext &Ctx = AST->getASTContext(); in TEST() 168 ASTContext &Ctx = AST->getASTContext(); in TEST() 193 ASTContext &Ctx = AST->getASTContext(); in TEST() 228 ASTContext &Ctx = AST->getASTContext(); in TEST() 248 ASTContext &CtxTS = AST->getASTContext(); in TEST()
|
| H A D | TemplateNameTest.cpp | 40 ASTContext &Ctx = AST->getASTContext(); in TEST() 75 auto MatchResults = match(Matcher, AST->getASTContext()); in TEST() 101 auto MatchResults = match(Matcher, AST->getASTContext()); in TEST() 119 MatchResults = match(Matcher, AST->getASTContext()); in TEST()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ClangASTImporter.cpp | 34 clang::ASTContext &dst_clang_ast = dst_ast.getASTContext(); in CopyType() 41 clang::ASTContext &src_clang_ast = src_ast->getASTContext(); in CopyType() 70 clang::ASTContext *src_ast = &decl->getASTContext(); in CopyDecl() 315 &src_ctxt->getASTContext(), &dst.getASTContext()); in DeportType() 331 clang::ASTContext *src_ctx = &decl->getASTContext(); in DeportDecl() 581 GetDelegate(&decl->getASTContext(), origin_ast_ctx)); in CompleteTagDeclWithOrigin() 1071 m_main.GetContextMetadata(&to->getASTContext()); in Imported() 1079 if (origin.ctx != &to->getASTContext()) { in Imported() 1094 &to->getASTContext()); in Imported() 1106 &from->getASTContext()); in Imported() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Symbol/ |
| H A D | TestTypeSystemClang.cpp | 50 clang::ASTContext &context = m_ast->getASTContext(); in TEST_F() 168 clang::ASTContext &context = clang_context.getASTContext(); in VerifyEncodingAndBitSize() 301 clang::ASTContext &context = m_ast->getASTContext(); in TEST_F() 493 m_ast->getASTContext() in TEST_F() 614 infos.args.push_back(TemplateArgument(m_ast->getASTContext(), in TEST_F() 623 infos.args.push_back(TemplateArgument(m_ast->getASTContext(), in TEST_F() 693 m_ast->getASTContext().IntTy)}; in TEST_F() 721 clang::ASTContext &ctxt = m_ast->getASTContext(); in TEST_F() 728 clang::ASTContext &ctxt = m_ast->getASTContext(); in TEST_F() 734 clang::ASTContext &ctxt = m_ast->getASTContext(); in TEST_F() [all …]
|
| H A D | TestClangASTImporter.cpp | 49 importer.CopyDecl(&target_ast->getASTContext(), source.record_decl); in TEST_F() 62 EXPECT_EQ(origin.ctx, &source.ast->getASTContext()); in TEST_F() 87 EXPECT_EQ(origin.ctx, &source.ast->getASTContext()); in TEST_F() 126 importer.DeportDecl(&target_ast->getASTContext(), source.record_decl); in TEST_F() 173 importer.CopyDecl(&target_ast->getASTContext(), source.record_decl); in TEST_F() 195 importer.CopyDecl(&temporary_ast->getASTContext(), source.record_decl); in TEST_F() 200 importer.CopyDecl(&target_ast->getASTContext(), temporary_imported); in TEST_F() 219 importer.CopyDecl(&target_ast->getASTContext(), source.record_decl); in TEST_F()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | ASTMerge.cpp | 36 CI.getASTContext().getLangOpts()); in ExecuteAction() 38 &CI.getASTContext()); in ExecuteAction() 42 *CI.getASTContext().getTranslationUnitDecl()); in ExecuteAction() 56 ASTImporter Importer(CI.getASTContext(), CI.getFileManager(), in ExecuteAction() 57 Unit->getASTContext(), Unit->getFileManager(), in ExecuteAction() 60 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl(); in ExecuteAction()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | DeclContextInternals.h | 50 ASTContext &C = getASTContext(); in erase_if() 100 ASTContext &C = getASTContext(); in MaybeDeallocList() 123 ASTContext &getASTContext() { in getASTContext() function 126 return ND->getASTContext(); in getASTContext() 127 return getAsList()->D->getASTContext(); in getASTContext() 180 ASTContext &C = Decls.front()->getASTContext(); in replaceExternalDecls() 231 ASTContext &C = D->getASTContext(); in addOrReplaceDecl() 255 ASTContext &C = D->getASTContext(); in addOrReplaceDecl() 271 ASTContext &C = D->getASTContext(); in prependDeclNoReplace()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | DumpASTTests.cpp | 149 AST.getTokens(), AST.getASTContext()); in TEST() 159 AST.getASTContext()); in TEST() 170 DynTypedNode::create(*AST.getASTContext().getTranslationUnitDecl()), in TEST() 171 AST.getTokens(), AST.getASTContext()); in TEST() 181 AST.getASTContext()); in TEST()
|
| H A D | SelectionTests.cpp | 32 return SelectionTree::createRight(AST.getASTContext(), AST.getTokens(), in makeSelectionTree() 37 AST.getASTContext(), AST.getTokens(), in makeSelectionTree() 42 return SelectionTree::createRight(AST.getASTContext(), AST.getTokens(), 0u, in makeSelectionTree() 733 AST.getASTContext(), AST.getTokens(), Test.point("ambiguous"), in TEST() 747 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), in TEST() 756 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), in TEST() 765 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), in TEST() 775 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), in TEST() 788 auto ST = SelectionTree::createRight(AST.getASTContext(), AST.getTokens(), in TEST() 793 auto ST = SelectionTree::createRight(AST.getASTContext(), AST.getTokens(), in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | ParsedAST.h | 64 ASTContext &getASTContext(); 65 const ASTContext &getASTContext() const; 74 return getASTContext().getSourceManager(); in getSourceManager() 77 return getASTContext().getSourceManager(); in getSourceManager() 81 return getASTContext().getLangOpts(); in getLangOpts()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckPlacementNew.cpp | 76 ASTContext &AstContext = C.getASTContext(); in getExtentSizeOfNewTarget() 95 C.getASTContext().getCharWidth(), in getExtentSizeOfNewTarget() 169 unsigned StorageTAlign = C.getASTContext().getTypeAlign(VD->getType()); in getStorageAlign() 173 return StorageTAlign / C.getASTContext().getCharWidth(); in getStorageAlign() 222 TheOffsetRegion.getOffset() / C.getASTContext().getCharWidth(); in checkElementRegionAlign() 252 Offset.getOffset() / C.getASTContext().getCharWidth(); in checkFieldRegionAlign() 279 unsigned AllocatedTAlign = C.getASTContext().getTypeAlign(AllocatedT) / in checkPlaceIsAlignedProperly() 280 C.getASTContext().getCharWidth(); in checkPlaceIsAlignedProperly()
|
| H A D | ErrnoModeling.cpp | 125 ErrnoDecl = getErrnoVar(Mgr.getASTContext()); in checkASTDecl() 127 ErrnoDecl = getErrnoFunc(Mgr.getASTContext()); in checkASTDecl() 134 ASTContext &ACtx = C.getASTContext(); in checkBeginFunction() 172 RMgr.getSymbolicRegion(Sym, GlobalSystemSpace), C.getASTContext()); in checkBeginFunction() 214 QualType IntTy = State->getAnalysisManager().getASTContext().IntTy; in getErrnoValue() 237 C.getSValBuilder().makeIntVal(Value, C.getASTContext().IntTy), in setErrnoValue()
|
| /llvm-project-15.0.7/clang/tools/clang-import-test/ |
| H A D | clang-import-test.cpp | 253 ASTContext &getASTContext() { return CI->getASTContext(); } in getASTContext() function 257 if (ExternalASTSource *Source = CI->getASTContext().getExternalSource()) in getOriginMap() 270 {CI.getASTContext(), CI.getFileManager()}); in AddExternalSource() 273 Sources.emplace_back(Import.getASTContext(), Import.getFileManager(), in AddExternalSource() 276 CI.getASTContext().setExternalSource(ES.release()); in AddExternalSource() 277 CI.getASTContext().getTranslationUnitDecl()->setHasExternalVisibleStorage(); in AddExternalSource() 301 ParseAST(CI.getPreprocessor(), &Consumer, CI.getASTContext()); in ParseSource() 333 Consumers.Initialize(CI.getASTContext()); in Parse() 349 Sources.push_back({Import.getASTContext(), Import.getFileManager(), in Forget() 351 ExternalASTSource *Source = CI.CI->getASTContext().getExternalSource(); in Forget()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | RenamingAction.cpp | 48 getUSRsForDeclaration(ND, Context.getASTContext()); in findSymbolOccurrences() 51 Context.getASTContext().getTranslationUnitDecl()); in findSymbolOccurrences() 69 getNamedDeclAt(Context.getASTContext(), SelectionRange.getBegin()); in initiate() 87 *Occurrences, Context.getASTContext().getSourceManager(), Name); in createSourceReplacements() 95 getNamedDeclFor(Context.getASTContext(), OldQualifiedName); in initiate() 138 auto USRs = getUSRsForDeclaration(ND, Context.getASTContext()); in createSourceReplacements() 141 USRs, NewQualifiedName, Context.getASTContext().getTranslationUnitDecl()); in createSourceReplacements()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXComment.h | 51 static inline ASTContext &getASTContext(CXComment CXC) { in getASTContext() function 52 return cxtu::getASTUnit(CXC.TranslationUnit)->getASTContext(); in getASTContext() 56 return getASTContext(CXC).getCommentCommandTraits(); in getCommandTraits()
|
| H A D | CIndexHigh.cpp | 63 ASTContext &getASTContext() const { in getASTContext() function 64 return cxtu::getASTUnit(TU)->getASTContext(); in getASTContext() 185 ASTContext &Ctx = data->getASTContext(); in findFileIdRefVisit() 255 ASTContext &getASTContext() const { in getASTContext() function 256 return Unit.getASTContext(); in getASTContext() 280 ASTContext &Ctx = data->getASTContext(); in findFileMacroRefVisit() 347 ASTContext &getASTContext() const { in getASTContext() function 348 return Unit.getASTContext(); in getASTContext() 358 ASTContext &Ctx = getASTContext(); in visit()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | DefineInline.cpp | 57 const SourceManager &SM = FD->getASTContext().getSourceManager(); in getSemicolonForDecl() 58 const LangOptions &LangOpts = FD->getASTContext().getLangOpts(); in getSemicolonForDecl() 146 const SourceManager &SM = FD->getASTContext().getSourceManager(); in qualifyAllDecls() 190 FD->getASTContext(), TargetContext, Target->getBeginLoc(), ND); in qualifyAllDecls() 205 SM, FD->getASTContext().getLangOpts(), FD->getBody()->getSourceRange()); in qualifyAllDecls() 264 const SourceManager &SM = Dest->getASTContext().getSourceManager(); in renameParameters() 265 const LangOptions &LangOpts = Dest->getASTContext().getLangOpts(); in renameParameters() 361 const SourceManager &SM = FD->getASTContext().getSourceManager(); in addInlineIfInHeader() 365 if (!isHeaderFile(FileName, FD->getASTContext().getLangOpts())) in addInlineIfInHeader() 439 const auto &AST = Sel.AST->getASTContext(); in apply()
|
| /llvm-project-15.0.7/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
| H A D | AppleObjCDeclVendor.cpp | 78 static_cast<void *>(&tag_decl->getASTContext()), in CompleteType() 95 static_cast<void *>(&interface_decl->getASTContext()), in CompleteType() 123 m_decl_vendor.m_ast_ctx.getASTContext().getTranslationUnitDecl(); in StartTranslationUnit() 141 m_ast_ctx.getASTContext().setExternalSource(external_source_owning_ptr); in AppleObjCDeclVendor() 151 clang::ASTContext &ast_ctx = m_ast_ctx.getASTContext(); in GetDeclForISA() 306 clang::ASTContext &ast_ctx(interface_decl->getASTContext()); in BuildMethod() 431 clang::ASTContext &context = m_ast_ctx.getASTContext(); in FinishDecl() 491 m_ast_ctx.getASTContext(), interface_decl, clang::SourceLocation(), in FinishDecl() 492 clang::SourceLocation(), &m_ast_ctx.getASTContext().Idents.get(name), in FinishDecl() 544 clang::ASTContext &ast_ctx = m_ast_ctx.getASTContext(); in FindDecls()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-doc/ |
| H A D | Mapper.cpp | 26 if (D->getASTContext().getSourceManager().isInSystemHeader(D->getLocation())) in mapDecl() 39 getFile(D, D->getASTContext(), CDCtx.SourceRoot, IsFileInRootDir); in mapDecl() 40 auto I = serialize::emitInfo(D, getComment(D, D->getASTContext()), in mapDecl() 41 getLine(D, D->getASTContext()), File, in mapDecl()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExternalASTMerger.cpp | 117 : ASTImporter(ToContext, ToFileManager, S.getASTContext(), in LazyASTImporter() 121 Reverse(S.getASTContext(), S.getFileManager(), ToContext, ToFileManager, in LazyASTImporter() 170 ASTContext &PersistentCtx = Persistent->getASTContext(); in ImportImpl() 314 SourceTag->getASTContext().getExternalSource()->CompleteType(SourceTag); in CompleteType() 333 SourceInterface->getASTContext().getExternalSource()->CompleteType( in CompleteType() 405 assert(&D->getASTContext() == &Target.AST); in FindOriginalDecl() 414 assert(&S.getASTContext() != &Target.AST); in AddSources() 416 assert(!S.getMerger() || &S.getMerger()->Target.AST == &S.getASTContext()); in AddSources() 426 << " removing source (ASTContext*)" << (void *)&S.getASTContext() in RemoveSources() 431 if (&Importer->getFromContext() == &S.getASTContext()) in RemoveSources() [all …]
|