Lines Matching refs:Code
89 bool violatesColumnLimit(llvm::StringRef Code, unsigned ColumnLimit, in violatesColumnLimit() argument
91 auto StartPos = Code.rfind('\n', Start); in violatesColumnLimit()
94 auto EndPos = Code.find("\n", End); in violatesColumnLimit()
96 EndPos = Code.size(); in violatesColumnLimit()
99 Code.substr(StartPos, EndPos - StartPos).split(Lines, '\n'); in violatesColumnLimit()
107 getRangesForFormating(llvm::StringRef Code, unsigned ColumnLimit, in getRangesForFormating() argument
123 R.getOffset() > 0 && R.getOffset() <= Code.size() && in getRangesForFormating()
124 Code[R.getOffset() - 1] == '\n') in getRangesForFormating()
131 violatesColumnLimit(Code, ColumnLimit, Start, End)) in getRangesForFormating()
144 createReplacementsForHeaders(llvm::StringRef FilePath, llvm::StringRef Code, in createReplacementsForHeaders() argument
176 return clang::format::cleanupAroundReplacements(Code, HeaderReplacements, in createReplacementsForHeaders()
301 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code, in applyAtomicChanges() argument
305 createReplacementsForHeaders(FilePath, Code, Changes, Spec.Style); in applyAtomicChanges()
328 format::cleanupAroundReplacements(Code, AllReplaces, Spec.Style); in applyAtomicChanges()
337 applyAllReplacements(Code, AllReplaces); in applyAtomicChanges()