Home
last modified time | relevance | path

Searched refs:getBufferData (Results 1 – 25 of 54) sorted by relevance

123

/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/
H A DTweak.cpp68 Code = SM.getBufferData(SM.getMainFileID()); in Selection()
107 Edit Ed(SM.getBufferData(FID), std::move(Replacements)); in fileEdit()
/llvm-project-15.0.7/clang/lib/Rewrite/
H A DRewriter.cpp248 StringRef MB = SourceMgr->getBufferData(FID); in getEditBuffer()
264 StringRef MB = SourceMgr->getBufferData(FID); in InsertText()
341 StringRef MB = SourceMgr->getBufferData(FID); in ReplaceText()
365 StringRef MB = SourceMgr->getBufferData(FID); in IncreaseIndentation()
H A DHTMLRewrite.cpp48 const char *BufferStart = SM.getBufferData(FID, &Invalid).data(); in HighlightRange()
/llvm-project-15.0.7/clang/lib/Format/
H A DTokenAnalyzer.cpp73 Env->SM.getBufferData(Env->ID); in make()
91 Env.getSourceManager().getBufferData(Env.getFileID()))) { in TokenAnalyzer()
H A DDefinitionBlockSeparator.cpp74 Env.getSourceManager().getBufferData(Env.getFileID()), in separateBlocks()
/llvm-project-15.0.7/clang/lib/Basic/
H A DSourceLocation.cpp265 StringRef FullSourceLoc::getBufferData(bool *Invalid) const { in getBufferData() function in FullSourceLoc
267 return SrcMgr->getBufferData(SrcMgr->getFileID(*this), Invalid); in getBufferData()
/llvm-project-15.0.7/clang/lib/AST/
H A DRawCommentList.cpp134 SourceMgr.getBufferData(BeginFileID, &Invalid).data(); in RawComment()
171 const char *BufferStart = SourceMgr.getBufferData(BeginFileID, in getRawTextSlow()
237 const char *Buffer = SM.getBufferData(Loc1Info.first, &Invalid).data(); in onlyWhitespaceBetween()
/llvm-project-15.0.7/clang/lib/Tooling/
H A DRefactoring.cpp86 StringRef Code = SM.getBufferData(ID); in formatAndApplyAllReplacements()
/llvm-project-15.0.7/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp138 llvm::StringRef File = SM.getBufferData(FileOffset.first, &Invalid); in getEntityEndLoc()
375 SM.getBufferData(SM.getFileID(Range.getBegin()), &Invalid); in getAssociatedRange()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DSourceCode.cpp221 llvm::StringRef Code = SM.getBufferData(FID, &Invalid); in sourceLocToPosition()
262 llvm::StringRef Buf = SM.getBufferData(IncludingFile, &Invalid); in includeHashLoc()
571 llvm::StringRef Content = SM.getBufferData(FID, &Invalid); in digestFile()
948 llvm::StringRef Code = SM.getBufferData(File, &Invalid); in touching()
1179 return SM.getBufferData(FID).startswith(ProtoHeaderComment); in isProtoFile()
1232 return !isDontIncludeMeHeader(SM.getBufferData(FID)); in isSelfContainedHeader()
H A DSemanticSelection.cpp116 auto Offset = positionToOffset(SM.getBufferData(FID), Pos); in getSemanticRanges()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransforms.cpp143 StringRef file = SM.getBufferData(locInfo.first, &invalidTemp); in findSemiAfterLocation()
391 StringRef file = SM.getBufferData(locInfo.first, &invalidTemp); in rewritePropertyAttribute()
472 StringRef file = SM.getBufferData(locInfo.first, &invalidTemp); in addPropertyAttribute()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DExplicitConstructorCheck.cpp45 StringRef Buf = Sources.getBufferData(File); in findToken()
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/
H A DIncludeFixer.cpp167 StringRef Code = CI->getSourceManager().getBufferData(FID); in MaybeDiagnoseMissingCompleteType()
288 StringRef Code = SM.getBufferData(FID); in CorrectTypo()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseTrailingReturnTypeCheck.cpp146 StringRef File = SM.getBufferData(Loc.first); in findTrailingReturnTypeSourceLocation()
227 StringRef File = SM.getBufferData(Loc.first); in classifyTokensBeforeFunctionName()
H A DUseOverrideCheck.cpp50 StringRef File = Sources.getBufferData(LocInfo.first); in parseTokens()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DLexerUtils.cpp122 StringRef File = SM.getBufferData(LocInfo.first); in getQualifyingToken()
/llvm-project-15.0.7/clang-tools-extra/clang-move/
H A DMove.cpp288 llvm::StringRef File = SM.getBufferData(LocInfo.first, &InvalidTemp); in getLocForEndOfDecl()
781 llvm::StringRef Code = SM.getBufferData(SI->second); in removeDeclsInOldFiles()
859 StringRef Code = SM.getBufferData(ID); in moveAll()
/llvm-project-15.0.7/clang/lib/Lex/
H A DLexer.cpp341 StringRef file = SM.getBufferData(locInfo.first, &invalidTemp); in getSpelling()
477 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid); in getRawToken()
522 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid); in getBeginningOfFileToken()
987 StringRef file = SM.getBufferData(beginInfo.first, &invalidTemp); in getSourceText()
1040 StringRef ExpansionBuffer = SM.getBufferData(ExpansionInfo.first); in getImmediateMacroName()
1065 StringRef ExpansionBuffer = SM.getBufferData(ExpansionInfo.first); in getImmediateMacroNameForDiagnostics()
1101 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid); in getIndentationForLine()
1273 StringRef File = SM.getBufferData(LocInfo.first, &InvalidTemp); in findNextToken()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSourceLocation.h413 StringRef getBufferData(bool *Invalid = nullptr) const;
/llvm-project-15.0.7/clang/lib/Edit/
H A DCommit.cpp332 StringRef file = SourceMgr.getBufferData(Offs.getFID(), &invalidTemp); in canReplaceText()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DSelectionTests.cpp52 StringRef Buffer = SM.getBufferData(SM.getMainFileID()); in nodeRange()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DArgumentCommentCheck.cpp93 StringRef Buffer = SM.getBufferData(BeginLoc.first, &Invalid); in getCommentsInRange()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DDefineOutline.cpp129 SM.getBufferData(SM.getMainFileID()), Replacements); in getFunctionSourceAfterReplacements()
H A DDefineInline.cpp215 SM.getBufferData(SM.getFileID(OrigBodyRange->getBegin())), Replacements); in qualifyAllDecls()

123