Home
last modified time | relevance | path

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

123

/llvm-project/clang-tools-extra/clangd/refactor/
H A DTweak.cpp67 Code = SM.getBufferData(SM.getMainFileID()); in Selection()
106 Edit Ed(SM.getBufferData(FID), std::move(Replacements)); in fileEdit()
/llvm-project/clang/lib/Rewrite/
H A DRewriter.cpp149 StringRef MB = SourceMgr->getBufferData(FID); in getRangeSize()
165 StringRef MB = SourceMgr->getBufferData(FID); in getRangeSize()
242 StringRef MB = SourceMgr->getBufferData(FID); in getEditBuffer()
266 StringRef MB = SourceMgr->getBufferData(FID); in InsertText()
/llvm-project/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/clang/lib/AST/
H A DRawCommentList.cpp132 SourceMgr.getBufferData(BeginFileID, &Invalid).data(); in RawComment()
169 const char *BufferStart = SourceMgr.getBufferData(BeginFileID, in getRawTextSlow()
235 const char *Buffer = SM.getBufferData(Loc1Info.first, &Invalid).data(); in onlyWhitespaceBetween()
/llvm-project/clang/lib/Basic/
H A DSourceLocation.cpp274 StringRef FullSourceLoc::getBufferData(bool *Invalid) const { in getBufferData() function in FullSourceLoc
276 return SrcMgr->getBufferData(SrcMgr->getFileID(*this), Invalid); in getBufferData()
/llvm-project/clang-tools-extra/clang-tidy/llvmlibc/
H A DInlineFunctionDeclCheck.cpp87 llvm::StringRef SrcText = Loc.getBufferData().drop_front(Loc.getFileOffset()); in check()
/llvm-project/clang-tools-extra/clang-tidy/utils/
H A DLexerUtils.cpp127 StringRef File = SM.getBufferData(LocInfo.first); in rangeContainsExpansionsOrDirectives()
/llvm-project/clang/lib/ARCMigrate/
H A DTransforms.cpp144 StringRef file = SM.getBufferData(locInfo.first, &invalidTemp); in findSemiAfterLocation()
392 StringRef file = SM.getBufferData(locInfo.first, &invalidTemp); in rewritePropertyAttribute()
473 StringRef file = SM.getBufferData(locInfo.first, &invalidTemp); in addPropertyAttribute()
/llvm-project/clang/lib/Tooling/
H A DRefactoring.cpp83 StringRef Code = SM.getBufferData(ID); in formatAndApplyAllReplacements()
/llvm-project/clang-tools-extra/clangd/
H A DSourceCode.cpp222 llvm::StringRef Code = SM.getBufferData(FID, &Invalid); in sourceLocToPosition()
271 llvm::StringRef Buf = SM.getBufferData(IncludingFile, &Invalid); in includeHashLoc()
577 llvm::StringRef Content = SM.getBufferData(FID, &Invalid); in digestFile()
974 llvm::StringRef Code = SM.getBufferData(File, &Invalid); in touching()
1241 return SM.getBufferData(FID).starts_with(ProtoHeaderComment); in isProtoFile()
H A DSemanticSelection.cpp118 auto Offset = positionToOffset(SM.getBufferData(FID), Pos); in getSemanticRanges()
/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp231 llvm::StringRef File = SM.getBufferData(FileOffset.first, &Invalid); in getEntityEndLoc()
468 SM.getBufferData(SM.getFileID(Range.getBegin()), &Invalid); in getAssociatedRange()
/llvm-project/clang-tools-extra/clang-include-fixer/
H A DIncludeFixer.cpp169 StringRef Code = CI->getSourceManager().getBufferData(FID); in MaybeDiagnoseMissingCompleteType()
290 StringRef Code = SM.getBufferData(FID); in CorrectTypo()
/llvm-project/clang-tools-extra/clang-tidy/google/
H A DExplicitConstructorCheck.cpp43 StringRef Buf = Sources.getBufferData(File); in findToken()
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DUseTrailingReturnTypeCheck.cpp148 StringRef File = SM.getBufferData(Loc.first); in findTrailingReturnTypeSourceLocation()
229 StringRef File = SM.getBufferData(Loc.first); in classifyTokensBeforeFunctionName()
H A DUseOverrideCheck.cpp60 StringRef File = Sources.getBufferData(LocInfo.first); in parseTokens()
/llvm-project/clang-tools-extra/clang-move/
H A DMove.cpp289 llvm::StringRef File = SM.getBufferData(LocInfo.first, &InvalidTemp); in getLocForEndOfDecl()
782 llvm::StringRef Code = SM.getBufferData(SI->second); in removeDeclsInOldFiles()
860 StringRef Code = SM.getBufferData(ID); in moveAll()
/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DIncludeCleanerCheck.cpp195 llvm::StringRef Code = SM->getBufferData(SM->getMainFileID()); in check()
/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
H A DScopifyEnum.cpp96 SM->getBufferData(SM->getMainFileID()))); in apply()
/llvm-project/clang/lib/Lex/
H A DLexer.cpp388 StringRef file = SM.getBufferData(locInfo.first, &invalidTemp); in getSpelling()
524 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid); in getRawToken()
569 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid); in getBeginningOfFileToken()
1049 StringRef file = SM.getBufferData(beginInfo.first, &invalidTemp); in getSourceText()
1102 StringRef ExpansionBuffer = SM.getBufferData(ExpansionInfo.first); in getImmediateMacroName()
1129 StringRef ExpansionBuffer = SM.getBufferData(ExpansionInfo.first); in getImmediateMacroNameForDiagnostics()
1165 StringRef Buffer = SM.getBufferData(LocInfo.first, &Invalid); in getIndentationForLine()
1339 StringRef File = SM.getBufferData(LocInfo.first, &InvalidTemp); in findNextToken()
/llvm-project/clang-tools-extra/include-cleaner/tool/
H A DIncludeCleaner.cpp181 llvm::StringRef Code = SM.getBufferData(SM.getMainFileID()); in EndSourceFile()
/llvm-project/clang/lib/Edit/
H A DCommit.cpp332 StringRef file = SourceMgr.getBufferData(Offs.getFID(), &invalidTemp); in canReplaceText()
/llvm-project/clang/include/clang/Basic/
H A DSourceLocation.h421 StringRef getBufferData(bool *Invalid = nullptr) const;
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DArgumentCommentCheck.cpp91 StringRef Buffer = SM.getBufferData(BeginLoc.first, &Invalid); in getCommentsInRange()

123