Home
last modified time | relevance | path

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

12345678910>>...24

/external/llvm-project/clang-tools-extra/clang-include-fixer/
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()
229 Lexer::getSourceText(Range, CI->getSourceManager(), CI->getLangOpts()); in CorrectTypo()
257 const auto &SM = CI->getSourceManager(); in CorrectTypo()
362 LLVM_DEBUG(CI->getSourceManager() in query()
363 .getLocForStartOfFile(CI->getSourceManager().getMainFileID()) in query()
[all …]
/external/llvm-project/clang/unittests/Tooling/
DSourceCodeTest.cpp70 arg, Context->getSourceManager(), Context->getLangOpts());
71 unsigned Begin = Context->getSourceManager().getFileOffset(Range.getBegin());
72 unsigned End = Context->getSourceManager().getFileOffset(Range.getEnd());
213 Context->getSourceManager(), in TEST()
448 ValueIs(AsRange(Context->getSourceManager(), Code.range("r")))); in TEST()
463 ValueIs(AsRange(Context->getSourceManager(), Code.range("r")))); in TEST()
492 ValueIs(AsRange(Context->getSourceManager(), Code.range("r")))); in TEST()
507 ValueIs(AsRange(Context->getSourceManager(), Code.range("r")))); in TEST()
525 EXPECT_THAT_ERROR(validateEditRange(Range, Context->getSourceManager()), in TEST()
540 Context->getSourceManager().getSpellingLoc(Expr->getBeginLoc()); in TEST()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
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()
/external/llvm-project/clang-tools-extra/clangd/
DParsedAST.h74 SourceManager &getSourceManager() { in getSourceManager() function
75 return getASTContext().getSourceManager(); in getSourceManager()
77 const SourceManager &getSourceManager() const { in getSourceManager() function
78 return getASTContext().getSourceManager(); in getSourceManager()
DParsedAST.cpp77 auto &SM = D->getASTContext().getSourceManager(); in HandleTopLevelDecl()
130 std::move(Includes), ExistingCallbacks, Clang.getSourceManager(), PP, in attach()
314 Check->registerPPCallbacks(Clang->getSourceManager(), PP, PP); in build()
332 isInsideMainFile(Info.getLocation(), Info.getSourceManager()); in build()
386 collectIncludeStructureCallback(Clang->getSourceManager(), &Includes)); in build()
393 std::make_unique<CollectMainFileMacros>(Clang->getSourceManager(), in build()
508 Total += AST.getSourceManager().getContentCacheSize(); in getUsedBytes()
509 Total += AST.getSourceManager().getDataStructureSizes(); in getUsedBytes()
510 Total += AST.getSourceManager().getMemoryBufferSizes().malloc_bytes; in getUsedBytes()
/external/llvm-project/clang/lib/Tooling/Refactoring/Rename/
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()
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()
311 IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitDeclRefExpr()
390 if (IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitTypeLoc()
425 if (IsValidEditLoc(Context.getSourceManager(), StartLoc)) { in VisitTypeLoc()
516 TranslationUnitDecl->getASTContext().getSourceManager(); in createRenameAtomicChanges()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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 …]
/external/llvm-project/clang-tools-extra/clangd/index/
DSymbolCollector.cpp81 const auto &SM = ND.getASTContext().getSourceManager(); in isPrivateProtoDecl()
167 const auto &SM = ND.getASTContext().getSourceManager(); in isPreferredDeclaration()
305 auto &SM = ASTCtx->getSourceManager(); in handleDeclOccurrence()
382 const auto &SM = PP->getSourceManager(); in handleMacros()
412 const auto &SM = PP->getSourceManager(); in handleMacroOccurrence()
525 PP->getSourceManager().getDecomposedExpansionLoc(Loc).first; in setIncludeLocation()
547 if (auto ID = getSymbolID(II->getName(), MI, PP->getSourceManager())) in finish()
554 if (auto ID = getSymbolID(II->getName(), MI, PP->getSourceManager())) in finish()
571 const auto &SM = ASTCtx->getSourceManager(); in finish()
646 auto &SM = Ctx.getSourceManager(); in addDeclaration()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DCheckSecuritySyntaxOnly.cpp293 PathDiagnosticLocation::createBegin(FS, BR.getSourceManager(), AC); in checkLoopConditionForFloat()
328 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_gets()
368 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_getpw()
409 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mktemp()
481 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mkstemp()
516 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_strcpy()
543 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_strcat()
621 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_rand()
646 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_random()
666 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_vfork()
[all …]
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DSwapIfBranches.cpp69 auto &SrcMgr = Inputs.AST->getSourceManager(); in apply()
84 if (auto Err = Result.add(tooling::Replacement(Ctx.getSourceManager(), in apply()
88 if (auto Err = Result.add(tooling::Replacement(Ctx.getSourceManager(), in apply()
DDefineOutline.cpp69 &Sel.AST->getSourceManager().getFileManager().getVirtualFileSystem())) in getSourceFile()
119 const auto &SM = FD->getASTContext().getSourceManager(); in getFunctionSourceAfterReplacements()
150 auto &SM = AST.getSourceManager(); in getFunctionSourceCode()
370 if (!isHeaderFile(Sel.AST->getSourceManager().getFilename(Sel.Cursor), in prepare()
401 const SourceManager &SM = Sel.AST->getSourceManager(); in apply()
412 Sel.AST->getSourceManager().getFileManager().getVirtualFileSystem(); in apply()
439 Sel.AST->getSourceManager(), in apply()
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DAnalysisManager.h86 SourceManager &getSourceManager() override { in getSourceManager() function
87 return getASTContext().getSourceManager(); in getSourceManager()
151 const SourceManager &SM = getASTContext().getSourceManager(); in isInCodeFile()
/external/llvm-project/clang/lib/Frontend/
DFrontendAction.cpp233 auto &SourceMgr = CI.getSourceManager(); in ReadOriginalFileName()
277 CI.getSourceManager().AddLineNote( in ReadOriginalFileName()
430 auto &SrcMgr = CI.getSourceManager(); in loadModuleMapForModuleBuild()
444 Offset = CI.getSourceManager().getDecomposedLoc(EndOfLineMarker).second; in loadModuleMapForModuleBuild()
504 if (*OriginalModuleMap != CI.getSourceManager().getFileEntryForID( in prepareToBuildModule()
505 CI.getSourceManager().getMainFileID())) { in prepareToBuildModule()
515 SourceManager &SourceMgr = CI.getSourceManager(); in prepareToBuildModule()
593 CI.getSourceManager().initializeForReplay(AST->getSourceManager()); in BeginSourceFile()
622 auto &OldSM = AST->getSourceManager(); in BeginSourceFile()
659 CI.setSourceManager(&AST->getSourceManager()); in BeginSourceFile()
[all …]
/external/llvm-project/clang/lib/Lex/
DPreprocessorLexer.cpp27 InitialNumSLocEntries = pp->getSourceManager().local_sloc_entry_size(); in PreprocessorLexer()
51 return PP->getSourceManager().getFileEntryForID(getFileID()); in getFileEntry()
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/
DPragmaCommentHandler.cpp24 PP.getSourceManager(), PP.getLangOpts()); in HandleComment()
30 PP.getSourceManager().getFilename(Range.getBegin()), in HandleComment()
/external/llvm-project/clang-tools-extra/clang-doc/
DMapper.cpp28 if (D->getASTContext().getSourceManager().isInSystemHeader(D->getLocation())) in mapDecl()
89 return Context.getSourceManager().getPresumedLoc(D->getBeginLoc()).getLine(); in getLine()
96 llvm::SmallString<128> File(Context.getSourceManager() in getFile()
/external/llvm-project/clang/lib/AST/
DDataCollection.cpp20 MacroStack << Lexer::getImmediateMacroName(Loc, Context.getSourceManager(), in printMacroName()
36 SourceManager &SM = Context.getSourceManager(); in getMacroStack()
/external/clang/lib/Lex/
DPreprocessorLexer.cpp27 InitialNumSLocEntries = pp->getSourceManager().local_sloc_entry_size(); in PreprocessorLexer()
57 return PP->getSourceManager().getFileEntryForID(getFileID()); in getFileEntry()
/external/clang/lib/ARCMigrate/
DTransformActions.cpp386 SourceManager &SM = Ctx.getSourceManager(); in canInsert()
399 SourceManager &SM = Ctx.getSourceManager(); in canInsertAfterToken()
421 SourceManager &SM = Ctx.getSourceManager(); in canReplaceText()
442 addInsertion(getLocForEndOfToken(loc, Ctx.getSourceManager(), PP), text); in commitInsertAfterToken()
466 Ctx.getSourceManager(), PP); in commitReplace()
476 Ctx.getSourceManager(), PP), in commitReplace()
482 SourceManager &SM = Ctx.getSourceManager(); in commitReplaceText()
493 SourceManager &SM = Ctx.getSourceManager(); in commitIncreaseIndentation()
506 SourceManager &SM = Ctx.getSourceManager(); in addInsertion()
519 CharRange newRange(range, Ctx.getSourceManager(), PP); in addRemoval()
/external/clang/tools/libclang/
DCXSourceLocation.h43 return translateSourceLocation(Context.getSourceManager(), in translateSourceLocation()
61 return translateSourceRange(Context.getSourceManager(), in translateSourceRange()
/external/llvm-project/clang/lib/ARCMigrate/
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()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DSourceCodeTests.cpp355 AST->getSourceManager().getComposedLoc( in tryWord()
356 AST->getSourceManager().getMainFileID(), A.point()), in tryWord()
528 auto CurLoc = sourceLocationInMainFile(AST.getSourceManager(), Code.point()); in TEST()
542 auto CurLoc = sourceLocationInMainFile(AST.getSourceManager(), Code.point()); in TEST()
572 const auto &SM = AST.getSourceManager(); in TEST()
615 const SourceManager &SM = AST.getSourceManager(); in TEST()
656 AST.getSourceManager(), AST.getLangOpts(), Loop->getSourceRange()); in TEST()
658 EXPECT_EQ(AST.getSourceManager().getFileOffset(Range->getBegin()), in TEST()
660 EXPECT_EQ(AST.getSourceManager().getFileOffset(Range->getEnd()), in TEST()
675 const auto &SM = AST.getSourceManager(); in TEST()
/external/llvm-project/clang/tools/libclang/
DCXSourceLocation.h42 return translateSourceLocation(Context.getSourceManager(), in translateSourceLocation()
60 return translateSourceRange(Context.getSourceManager(), in translateSourceRange()
/external/llvm-project/clang/lib/Format/
DTokenAnalyzer.cpp53 AffectedRangeMgr(Env.getSourceManager(), Env.getCharRanges()), in TokenAnalyzer()
56 Env.getSourceManager().getBufferData(Env.getFileID()))) { in TokenAnalyzer()
69 FormatTokenLexer Lex(Env.getSourceManager(), Env.getFileID(), in process()

12345678910>>...24