| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| H A D | DeclContextInternals.h | 50 ASTContext &C = getASTContext(); in erase_if() 101 ASTContext &C = getASTContext(); in MaybeDeallocList() 124 ASTContext &getASTContext() { in getASTContext() function 127 return ND->getASTContext(); in getASTContext() 128 return getAsList()->D->getASTContext(); in getASTContext() 181 ASTContext &C = Decls.front()->getASTContext(); in replaceExternalDecls() 232 ASTContext &C = D->getASTContext(); in addOrReplaceDecl() 256 ASTContext &C = D->getASTContext(); in addOrReplaceDecl() 272 ASTContext &C = D->getASTContext(); in prependDeclNoReplace()
|
| H A D | AbstractBasicReader.h | 129 using BasicReaderBase<Impl>::getASTContext; 200 elemTy = getASTContext().getRecordType(recordDecl); in readLValuePathSerializationHelper() 206 elemTy = getASTContext().getAsArrayType(elemTy)->getElementType(); in readLValuePathSerializationHelper() 247 auto &ctx = getASTContext(); in readNestedNameSpecifier()
|
| /netbsd-src/external/apache2/llvm/dist/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 | IdenticalExprChecker.cpp | 91 if (isIdenticalStmt(AC->getASTContext(), RHS, B2->getRHS())) { in checkBitwiseOrLogicalOp() 99 if (isIdenticalStmt(AC->getASTContext(), RHS, LHS)) { in checkBitwiseOrLogicalOp() 118 …if (InnerIf && isIdenticalStmt(AC->getASTContext(), I->getCond(), InnerIf->getCond(), /*IgnoreSide… in VisitIfStmt() 140 if (isIdenticalStmt(AC->getASTContext(), Cond1, Cond2, false)) { in VisitIfStmt() 170 if (isIdenticalStmt(AC->getASTContext(), Stmt1, Stmt2, true)) { in VisitIfStmt() 253 if (isIdenticalStmt(AC->getASTContext(), B->getLHS(), B->getRHS())) { in checkComparisonOp() 276 if (isIdenticalStmt(AC->getASTContext(), C->getTrueExpr(), in VisitConditionalOperator()
|
| H A D | StackAddrEscapeChecker.cpp | 116 return C.getASTContext().getLangOpts().ObjCAutoRefCount && in isArcManagedBlock() 128 dispatch_semaphore_tII = &B.getASTContext().Idents.get("dispatch_semaphore_t"); in isSemaphoreCaptured() 165 SourceRange range = genName(os, R, C.getASTContext()); in EmitStackError() 204 SourceRange Range = genName(Out, Region, C.getASTContext()); in checkAsyncExecutedBlockCaptures() 228 SourceRange Range = genName(Out, Region, C.getASTContext()); in checkReturnedBlockCaptures() 350 SourceRange Range = genName(Out, P.second, Ctx.getASTContext()); in checkEndFunction()
|
| /netbsd-src/external/apache2/llvm/dist/clang/tools/clang-import-test/ |
| H A D | clang-import-test.cpp | 251 ASTContext &getASTContext() { return CI->getASTContext(); } in getASTContext() function 255 if (ExternalASTSource *Source = CI->getASTContext().getExternalSource()) in getOriginMap() 268 {CI.getASTContext(), CI.getFileManager()}); in AddExternalSource() 271 Sources.emplace_back(Import.getASTContext(), Import.getFileManager(), in AddExternalSource() 274 CI.getASTContext().setExternalSource(ES.release()); in AddExternalSource() 275 CI.getASTContext().getTranslationUnitDecl()->setHasExternalVisibleStorage(); in AddExternalSource() 299 ParseAST(CI.getPreprocessor(), &Consumer, CI.getASTContext()); in ParseSource() 331 Consumers.Initialize(CI.getASTContext()); in Parse() 347 Sources.push_back({Import.getASTContext(), Import.getFileManager(), in Forget() 349 ExternalASTSource *Source = CI.CI->getASTContext().getExternalSource(); in Forget()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/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() 432 if (&Importer->getFromContext() == &S.getASTContext()) in RemoveSources() [all …]
|
| H A D | Decl.cpp | 77 return D->getASTContext().getPrimaryMergedDecl(D); in getPrimaryMergedDecl() 533 const LangOptions &Opts = D->getASTContext().getLangOpts(); in useInlineVisibilityHidden() 632 ASTContext &Context = D->getASTContext(); in getLVForNamespaceScopeDecl() 1299 ASTContext &Context = D->getASTContext(); in getLVForLocalDecl() 1379 if (D->getASTContext().getLangOpts().CPlusPlus) in computeLVForDecl() 1489 const LangOptions &Opts = D->getASTContext().getLangOpts(); in getLVForDecl() 1517 return getLVForDecl(D, D->getASTContext().getLangOpts().IgnoreXCOFFVisibility in getDeclLinkageAndVisibility() 1569 printQualifiedName(OS, getASTContext().getPrintingPolicy()); in getQualifiedNameAsString() 1574 printQualifiedName(OS, getASTContext().getPrintingPolicy()); in printQualifiedName() 1601 printNestedNameSpecifier(OS, getASTContext().getPrintingPolicy()); in printNestedNameSpecifier() [all …]
|
| H A D | MicrosoftMangle.cpp | 211 disc = getASTContext().getManglingNumber(ND); in getNextDiscriminator() 218 !getASTContext().getDeclaratorForUnnamedTagDecl(Tag) && in getNextDiscriminator() 219 !getASTContext().getTypedefNameForUnnamedTagDecl(Tag)) in getNextDiscriminator() 319 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anon113ba3c60111::MicrosoftCXXNameMangler 329 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth(0) == in MicrosoftCXXNameMangler() 336 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth(0) == in MicrosoftCXXNameMangler() 343 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth(0) == in MicrosoftCXXNameMangler() 506 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleCXXName() 626 Ty.getDesugaredType(getASTContext()).getLocalQualifiers(), QualType()); in mangleVariableEncoding() 634 } else if (const ArrayType *AT = getASTContext().getAsArrayType(Ty)) { in mangleVariableEncoding() [all …]
|
| H A D | Mangle.cpp | 108 const ASTContext &ASTContext = getASTContext(); in shouldMangleDeclName() 121 if (!getASTContext().getLangOpts().CPlusPlus && in shouldMangleDeclName() 126 if (!getASTContext().getLangOpts().CPlusPlus && !D->hasAttrs()) in shouldMangleDeclName() 142 const ASTContext &ASTContext = getASTContext(); in mangleName() 163 getASTContext().getTargetInfo().getUserLabelPrefix(); in mangleName() 166 llvm::DataLayout(getASTContext().getTargetInfo().getDataLayoutString()) in mangleName() 325 if (getASTContext().getLangOpts().ObjCRuntime.isGNUFamily()) { in mangleObjCMethodName() 457 auto Prefix = getClassSymbolPrefix(Kind, OCD->getASTContext()); in getAllManglings() 477 ASTContext &Ctx = ND->getASTContext(); in getAllManglings() 542 OS << getClassSymbolPrefix(ObjCClass, D->getASTContext()); in writeObjCClassName()
|
| H A D | DeclCXX.cpp | 116 return Bases.get(Definition->getASTContext().getExternalSource()); in getBasesSlowCase() 120 return VBases.get(Definition->getASTContext().getExternalSource()); in getVBasesSlowCase() 194 ASTContext &C = getASTContext(); in setBases() 686 return getASTContext().getLangOpts().CPlusPlus20; in lambdaIsDefaultConstructibleAndAssignable() 802 if (getASTContext().getLangOpts().CPlusPlus20 in addedMember() 868 ASTContext &Ctx = getASTContext(); in addedMember() 936 ASTContext &Context = getASTContext(); in addedMember() 1116 if (!getASTContext().getLangOpts().CPlusPlus14) in addedMember() 1367 ASTContext &Ctx = getASTContext(); in addedMember() 1487 RD.getASTContext().DeclarationNames.getCXXOperatorName(OO_Call); in getLambdaCallOperatorHelper() [all …]
|
| H A D | DeclOpenMP.cpp | 128 PrevDeclInScope.get(getASTContext().getExternalSource())); in getPrevDeclInScope() 133 PrevDeclInScope.get(getASTContext().getExternalSource())); in getPrevDeclInScope() 160 PrevDeclInScope.get(getASTContext().getExternalSource())); in getPrevDeclInScope() 165 PrevDeclInScope.get(getASTContext().getExternalSource())); in getPrevDeclInScope()
|
| H A D | ItaniumMangle.cpp | 74 return VD->getASTContext().getTranslationUnitDecl(); in getEffectiveDeclContext() 78 return FD->getASTContext().getTranslationUnitDecl(); in getEffectiveDeclContext() 201 unsigned discriminator = getASTContext().getManglingNumber(ND); in getNextDiscriminator() 425 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anon58ce5dc70111::CXXNameMangler 693 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleCXXName() 808 if (Context.getASTContext().getLangOpts().getClangABICompat() > in mangleFunctionEncodingBareType() 1213 TemplateName Template = getASTContext().getDependentTemplateName( in manglePrefix() 1527 unsigned UnnamedMangle = getASTContext().getManglingNumber(TD); in mangleUnqualifiedName() 1848 if (getASTContext().getLangOpts().getClangABICompat() <= in mangleUnqualifiedBlock() 1926 if (getASTContext().getLangOpts().getClangABICompat() <= in mangleLambda() [all …]
|
| H A D | DeclBase.cpp | 64 getASTContext().getExternalSource()->updateOutOfDateIdentifier(II); in updateOutOfDate() 116 return getASTContext().getExternalSource()->getModule(getOwningModuleID()); in getOwningModuleSlow() 120 return getASTContext().getLangOpts().trackLocalOwningModule(); in hasLocalOwningModuleStorage() 336 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext() 414 ASTContext &Decl::getASTContext() const { in getASTContext() function in Decl 415 return getTranslationUnitDecl()->getASTContext(); in getASTContext() 421 return getASTContext().getLangOpts(); in getLangOpts() 425 return getASTContext().getASTMutationListener(); in getASTMutationListener() 434 ASTContext &Ctx = getASTContext(); in getMaxAlignment() 651 AvailabilityResult AR = CheckAvailability(getASTContext(), Availability, in getAvailability() [all …]
|
| H A D | DeclObjC.cpp | 604 Data.setPointer(new (getASTContext()) DefinitionData()); in allocateDefinitionData() 830 !getASTContext().getLangOpts().ObjCDisableDirectMethodsForTesting; in isDirectMethod() 859 return Body.get(getASTContext().getExternalSource()); in getBody() 864 getASTContext().setObjCMethodRedeclaration(PrevMethod, this); in setAsRedeclaration() 913 ASTContext &Ctx = getASTContext(); in getNextRedeclarationImpl() 1188 ASTContext &Ctx = getASTContext(); in getSendResultType() 1196 return getReturnType().getNonLValueExprType(getASTContext()) in getSendResultType() 1538 getASTContext().getExternalSource()->CompleteType( in LoadExternalDefinition() 1543 assert(getASTContext().getExternalSource() && in setExternallyCompleted() 1589 return getASTContext().getObjCImplementation( in getImplementation() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Edit/ |
| H A D | RewriteObjCFoundationAPI.cpp | 61 if (!checkForLiteralCreation(Msg, II, NS.getASTContext().getLangOpts())) in rewriteObjCRedundantCallWithLiteral() 206 if (!canRewriteToSubscriptSyntax(IFace, Msg, NS.getASTContext(), in rewriteToArraySubscriptGet() 216 if (!canRewriteToSubscriptSyntax(IFace, Msg, NS.getASTContext(), in rewriteToDictionarySubscriptGet() 226 if (!canRewriteToSubscriptSyntax(IFace, Msg, NS.getASTContext(), in rewriteToArraySubscriptSet() 260 if (!canRewriteToSubscriptSyntax(IFace, Msg, NS.getASTContext(), in rewriteToDictionarySubscriptSet() 299 NS.getASTContext().getObjContainingInterface(Method); in rewriteToObjCSubscriptSyntax() 342 if (!checkForLiteralCreation(Msg, II, NS.getASTContext().getLangOpts())) in rewriteToObjCLiteralSyntax() 412 if (!NS.getASTContext().isSentinelNullExpr(SentinelExpr)) in rewriteToArrayLiteral() 450 if (!checkForLiteralCreation(Msg, Cls, NS.getASTContext().getLangOpts())) in getNSArrayObjects() 472 if (!NS.getASTContext().isSentinelNullExpr(SentinelExpr)) in getNSArrayObjects() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | AnalysisManager.h | 82 ASTContext &getASTContext() override { in getASTContext() function 87 return getASTContext().getSourceManager(); in getSourceManager() 151 const SourceManager &SM = getASTContext().getSourceManager(); in isInCodeFile()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/CrossTU/ |
| H A D | CrossTranslationUnit.cpp | 212 : Context(CI.getASTContext()), ASTStorage(CI) {} in CrossTranslationUnitContext() 268 &Unit->getASTContext().getSourceManager().getFileManager()); in getCrossTUDefinitionImpl() 272 Unit->getASTContext().getTargetInfo().getTriple(); in getCrossTUDefinitionImpl() 287 const auto &LangFrom = Unit->getASTContext().getLangOpts(); in getCrossTUDefinitionImpl() 318 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl(); in getCrossTUDefinitionImpl() 369 LoadGuard(CI.getASTContext().getLangOpts().CPlusPlus in ASTUnitStorage() 696 assert(&D->getASTContext() == &Unit->getASTContext() && in importDefinitionImpl() 723 ToDecl->getASTContext().getParentMapContext().clear(); in importDefinitionImpl() 748 ASTContext &From = Unit->getASTContext(); in getOrCreateASTImporter()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/ |
| H A D | CloneDetection.cpp | 43 const SourceManager &SM = getASTContext().getSourceManager(); in contains() 75 ASTContext &StmtSequence::getASTContext() const { in getASTContext() function in StmtSequence 77 return D->getASTContext(); in getASTContext() 162 const SourceManager &SM = S.getASTContext().getSourceManager(); in isAutoGenerated() 253 ASTContext &Context = D->getASTContext(); in saveHash() 322 S, Sequence.getASTContext(), OutputData); in CollectStmtSequenceData() 427 ASTContext &Context = Seq.getASTContext(); in calculateStmtComplexity()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | DiagOutputUtils.h | 21 D->getNameForDiagnostic(Os, D->getASTContext().getPrintingPolicy(), in printQuotedQualifiedName() 29 D->getNameForDiagnostic(Os, D->getASTContext().getPrintingPolicy(), in printQuotedName()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Parse/ |
| H A D | ParseAST.cpp | 144 ExternalASTSource *External = S.getASTContext().getExternalSource(); in ParseAST() 171 Consumer->HandleTranslationUnit(S.getASTContext()); in ParseAST() 184 S.getASTContext().PrintStats(); in ParseAST()
|