Home
last modified time | relevance | path

Searched refs:getSourceManager (Results 1 – 25 of 409) sorted by relevance

12345678910>>...17

/llvm-project-15.0.7/clang/lib/ExtractAPI/
H A DExtractAPIConsumer.cpp179 auto &SM = CI.getSourceManager(); in isLocationInKnownFile()
266 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitVarDecl()
271 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitVarDecl()
327 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitFunctionDecl()
368 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitEnumDecl()
409 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitRecordDecl()
443 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitObjCInterfaceDecl()
490 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitObjCProtocolDecl()
525 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitTypedefNameDecl()
551 Context.getSourceManager().getPresumedLoc(Decl->getLocation()); in VisitObjCCategoryDecl()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DIncludeCleanerTests.cpp256 if (AST.getSourceManager().getBufferName(Loc).endswith( in TEST()
259 TU.HeaderCode, AST.getSourceManager().getFileOffset(Loc))); in TEST()
416 auto &SM = AST.getSourceManager(); in TEST()
472 AST.getCanonicalIncludes(), AST.getSourceManager()); in TEST()
474 auto &SM = AST.getSourceManager(); in TEST()
506 AST.getCanonicalIncludes(), AST.getSourceManager()); in TEST()
508 auto &SM = AST.getSourceManager(); in TEST()
538 AST.getCanonicalIncludes(), AST.getSourceManager()); in TEST()
543 ReferencedFiles.User.contains(AST.getSourceManager().getMainFileID())); in TEST()
576 AST.getCanonicalIncludes(), AST.getSourceManager()); in TEST()
[all …]
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DSourceCodeTest.cpp70 arg, Context->getSourceManager(), Context->getLangOpts());
71 unsigned Begin = Context->getSourceManager().getFileOffset(Range.getBegin());
72 unsigned End = Context->getSourceManager().getFileOffset(Range.getEnd());
525 EXPECT_THAT_ERROR(validateEditRange(Range, Context->getSourceManager()), in TEST()
540 Context->getSourceManager().getSpellingLoc(Expr->getBeginLoc()); in TEST()
573 validateEditRange(InvertedRange, Context->getSourceManager()), in TEST()
588 EXPECT_THAT_ERROR(validateEditRange(Range, Context->getSourceManager()), in TEST()
603 EXPECT_THAT_ERROR(validateEditRange(Range, Context->getSourceManager()), in TEST()
619 EXPECT_THAT_ERROR(validateEditRange(Range, Context->getSourceManager()), in TEST()
665 unsigned Begin = Context->getSourceManager().getFileOffset( in TEST()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/
H A DIncludeFixer.cpp111 Compiler.getSourceManager(), in runInvocation()
166 FileID FID = CI->getSourceManager().getFileID(Loc); in MaybeDiagnoseMissingCompleteType()
167 StringRef Code = CI->getSourceManager().getBufferData(FID); in MaybeDiagnoseMissingCompleteType()
169 CI->getSourceManager().getLocForStartOfFile(FID); in MaybeDiagnoseMissingCompleteType()
172 getIncludeFixerContext(CI->getSourceManager(), in MaybeDiagnoseMissingCompleteType()
211 if (!CI->getSourceManager().isWrittenInMainFile(Typo.getLoc())) in CorrectTypo()
257 const auto &SM = CI->getSourceManager(); in CorrectTypo()
362 LLVM_DEBUG(CI->getSourceManager() in query()
365 .print(llvm::dbgs(), CI->getSourceManager())); in query()
368 CI->getSourceManager().getLocForStartOfFile( in query()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DFixItHintUtils.cpp22 AmpLocation, Context.getSourceManager(), Context.getLangOpts()); in changeVarDeclToReference()
25 Context.getSourceManager(), in changeVarDeclToReference()
51 T = lexer::getPreviousToken(Start, Context.getSourceManager(), in skipLParensBackwards()
57 Start = lexer::findPreviousTokenStart(Start, Context.getSourceManager(), in skipLParensBackwards()
136 Var.getLocation(), Context.getSourceManager(), Context.getLangOpts(), in changePointer()
157 Var.getLocation(), Context.getSourceManager(), Context.getLangOpts(), in changePointer()
174 Var.getLocation(), Context.getSourceManager(), Context.getLangOpts(), in changeReferencee()
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFinder.cpp39 : RecursiveSymbolVisitor(Context.getSourceManager(), in NamedDeclOccurrenceFindingVisitor()
65 (Context.getSourceManager().isBeforeInTranslationUnit(Start, in isPointWithin()
67 Context.getSourceManager().isBeforeInTranslationUnit(Point, End)); in isPointWithin()
79 const SourceManager &SM = Context.getSourceManager(); in getNamedDeclAt()
H A DUSRLocFinder.cpp61 : RecursiveSymbolVisitor(Context.getSourceManager(), in USRLocFindingASTVisitor()
72 const SourceManager &SM = Context.getSourceManager(); in visitSymbolOccurrence()
91 BeginLoc, 0, Context.getSourceManager(), Context.getLangOpts()); in checkAndAddLocation()
94 Context.getSourceManager(), Context.getLangOpts()); in checkAndAddLocation()
202 if (IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitNamedDecl()
329 IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitDeclRefExpr()
408 if (IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitTypeLoc()
443 if (IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitTypeLoc()
534 TranslationUnitDecl->getASTContext().getSourceManager(); in createRenameAtomicChanges()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DParsedAST.h73 SourceManager &getSourceManager() { in getSourceManager() function
74 return getASTContext().getSourceManager(); in getSourceManager()
76 const SourceManager &getSourceManager() const { in getSourceManager() function
77 return getASTContext().getSourceManager(); in getSourceManager()
H A DParsedAST.cpp77 auto &SM = D->getASTContext().getSourceManager(); in HandleTopLevelDecl()
130 std::move(Includes), ExistingCallbacks, Clang.getSourceManager(), PP, in attach()
454 const SourceManager &SM = Clang->getSourceManager(); in build()
486 Check->registerPPCallbacks(Clang->getSourceManager(), PP, PP); in build()
530 isInsideMainFile(Info.getLocation(), Info.getSourceManager()); in build()
593 std::make_unique<CollectMainFileMacros>(Clang->getSourceManager(), in build()
601 collectPragmaMarksCallback(Clang->getSourceManager(), Marks)); in build()
738 Total += AST.getSourceManager().getContentCacheSize(); in getUsedBytes()
739 Total += AST.getSourceManager().getDataStructureSizes(); in getUsedBytes()
740 Total += AST.getSourceManager().getMemoryBufferSizes().malloc_bytes; in getUsedBytes()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DCheckSecuritySyntaxOnly.cpp337 PathDiagnosticLocation::createBegin(FS, BR.getSourceManager(), AC); in checkLoopConditionForFloat()
377 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_bcmp()
419 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_bcopy()
460 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_bzero()
498 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_gets()
538 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_getpw()
579 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mktemp()
651 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mkstemp()
698 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_strcpy()
726 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_strcat()
[all …]
H A DIdenticalExprChecker.cpp70 PathDiagnosticLocation::createOperatorLoc(B, BR.getSourceManager()); in reportIdenticalExpr()
119 PathDiagnosticLocation ELoc(InnerIf->getCond(), BR.getSourceManager(), AC); in VisitIfStmt()
142 PathDiagnosticLocation ELoc(Cond2, BR.getSourceManager(), AC); in VisitIfStmt()
172 PathDiagnosticLocation::createBegin(I, BR.getSourceManager(), AC); in VisitIfStmt()
255 PathDiagnosticLocation::createOperatorLoc(B, BR.getSourceManager()); in checkComparisonOp()
280 C, BR.getSourceManager()); in VisitConditionalOperator()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DSwapIfBranches.cpp66 auto &SrcMgr = Inputs.AST->getSourceManager(); in apply()
81 if (auto Err = Result.add(tooling::Replacement(Ctx.getSourceManager(), in apply()
85 if (auto Err = Result.add(tooling::Replacement(Ctx.getSourceManager(), in apply()
H A DDefineInline.cpp57 const SourceManager &SM = FD->getASTContext().getSourceManager(); in getSemicolonForDecl()
146 const SourceManager &SM = FD->getASTContext().getSourceManager(); in qualifyAllDecls()
264 const SourceManager &SM = Dest->getASTContext().getSourceManager(); in renameParameters()
361 const SourceManager &SM = FD->getASTContext().getSourceManager(); in addInlineIfInHeader()
432 Sel.AST->getSourceManager())) in prepare()
440 const auto &SM = AST.getSourceManager(); in apply()
H A DRemoveUsingNamespace.cpp74 auto &SM = Ctx.getSourceManager(); in removeUsingDirective()
131 auto &SM = Ctx.getSourceManager(); in apply()
198 if (auto Err = R.add(tooling::Replacement(Ctx.getSourceManager(), Loc, in apply()
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAnalysisManager.h86 SourceManager &getSourceManager() override { in getSourceManager() function
87 return getASTContext().getSourceManager(); in getSourceManager()
151 const SourceManager &SM = getASTContext().getSourceManager(); in isInCodeFile()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPreprocessorLexer.cpp27 InitialNumSLocEntries = pp->getSourceManager().local_sloc_entry_size(); in PreprocessorLexer()
52 return PP->getSourceManager().getFileEntryRefForID(getFileID()); in getFileEntry()
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/
H A DPragmaCommentHandler.cpp24 PP.getSourceManager(), PP.getLangOpts()); in HandleComment()
30 PP.getSourceManager().getFilename(Range.getBegin()), in HandleComment()
/llvm-project-15.0.7/clang/lib/AST/
H A DDataCollection.cpp20 MacroStack << Lexer::getImmediateMacroName(Loc, Context.getSourceManager(), in printMacroName()
36 SourceManager &SM = Context.getSourceManager(); in getMacroStack()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSymbolCollector.cpp53 const auto &SM = ND.getASTContext().getSourceManager(); in isPrivateProtoDecl()
121 const auto &SM = ND.getASTContext().getSourceManager(); in isPreferredDeclaration()
186 const auto &SM = AST.getSourceManager(); in isSpelled()
440 const auto &SM = ASTCtx->getSourceManager(); in getTokenLocation()
460 this->PP, ASTCtx->getSourceManager(), Opts); in initialize()
574 auto &SM = ASTCtx->getSourceManager(); in handleDeclOccurrence()
645 const auto &SM = PP->getSourceManager(); in handleMacros()
696 const auto &SM = PP->getSourceManager(); in handleMacroOccurrence()
876 auto &SM = Ctx.getSourceManager(); in addDeclaration()
949 const auto &SM = ND.getASTContext().getSourceManager(); in addDefinition()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-doc/
H A DMapper.cpp26 if (D->getASTContext().getSourceManager().isInSystemHeader(D->getLocation())) in mapDecl()
87 return Context.getSourceManager().getPresumedLoc(D->getBeginLoc()).getLine(); in getLine()
94 llvm::SmallString<128> File(Context.getSourceManager() in getFile()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DFrontendAction.cpp245 auto &SourceMgr = CI.getSourceManager(); in ReadOriginalFileName()
289 CI.getSourceManager().AddLineNote( in ReadOriginalFileName()
440 auto &SrcMgr = CI.getSourceManager(); in loadModuleMapForModuleBuild()
534 SourceManager &SourceMgr = CI.getSourceManager(); in prepareToBuildModule()
625 CI.getSourceManager().initializeForReplay(AST->getSourceManager()); in BeginSourceFile()
655 auto &OldSM = AST->getSourceManager(); in BeginSourceFile()
692 CI.setSourceManager(&AST->getSourceManager()); in BeginSourceFile()
727 CI.getSourceManager().setFileIsTransient(*FE); in BeginSourceFile()
732 CI.getSourceManager().setAllFilesAreTransient(true); in BeginSourceFile()
888 auto &SourceMgr = CI.getSourceManager(); in BeginSourceFile()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/tool/
H A DCheck.cpp214 auto &SM = AST->getSourceManager(); in testLocationFeatures()
221 unsigned Start = AST->getSourceManager().getFileOffset(Tok.location()); in testLocationFeatures()
230 SPAN_ATTACH(Trace, "text", Tok.text(AST->getSourceManager())); in testLocationFeatures()
234 vlog(" {0} {1}", Pos, Tok.text(AST->getSourceManager())); in testLocationFeatures()
244 &AST->getSourceManager().getFileManager().getVirtualFileSystem(); in testLocationFeatures()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXSourceLocation.h42 return translateSourceLocation(Context.getSourceManager(), in translateSourceLocation()
60 return translateSourceRange(Context.getSourceManager(), in translateSourceRange()
H A DCIndexHigh.cpp186 SourceManager &SM = Ctx.getSourceManager(); in findFileIdRefVisit()
216 SourceManager &SM = cxtu::getASTUnit(TU)->getSourceManager(); in findIdRefsInFile()
281 SourceManager &SM = Ctx.getSourceManager(); in findFileMacroRefVisit()
314 SourceManager &SM = Unit->getSourceManager(); in findMacroRefsInFile()
359 SourceManager &SM = Ctx.getSourceManager(); in visit()
386 SourceManager &SM = Unit->getSourceManager(); in findIncludesInFile()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransformActions.cpp387 SourceManager &SM = Ctx.getSourceManager(); in canInsert()
400 SourceManager &SM = Ctx.getSourceManager(); in canInsertAfterToken()
422 SourceManager &SM = Ctx.getSourceManager(); in canReplaceText()
443 addInsertion(getLocForEndOfToken(loc, Ctx.getSourceManager(), PP), text); in commitInsertAfterToken()
467 Ctx.getSourceManager(), PP); in commitReplace()
477 Ctx.getSourceManager(), PP), in commitReplace()
483 SourceManager &SM = Ctx.getSourceManager(); in commitReplaceText()
494 SourceManager &SM = Ctx.getSourceManager(); in commitIncreaseIndentation()
507 SourceManager &SM = Ctx.getSourceManager(); in addInsertion()
520 CharRange newRange(range, Ctx.getSourceManager(), PP); in addRemoval()

12345678910>>...17