Home
last modified time | relevance | path

Searched refs:FilePos (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Rewrite/
H A DHTMLRewrite.cpp147 for (unsigned FilePos = 0; C != FileEnd ; ++C, ++FilePos) { in EscapeText() local
157 RB.ReplaceText(FilePos, 1, " "); in EscapeText()
161 RB.ReplaceText(FilePos, 1, "<hr>"); in EscapeText()
170 RB.ReplaceText(FilePos, 1, in EscapeText()
174 RB.ReplaceText(FilePos, 1, StringRef(" ", NumSpaces)); in EscapeText()
179 RB.ReplaceText(FilePos, 1, "&lt;"); in EscapeText()
184 RB.ReplaceText(FilePos, 1, "&gt;"); in EscapeText()
189 RB.ReplaceText(FilePos, 1, "&amp;"); in EscapeText()
266 unsigned FilePos = 0; in AddLineNumbers() local
271 unsigned LineStartPos = FilePos; in AddLineNumbers()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp1135 unsigned SourceManager::getColumnNumber(FileID FID, unsigned FilePos, in getColumnNumber() argument
1145 if (FilePos > MemBuf->getBufferSize()) { in getColumnNumber()
1160 if (FilePos >= LineStart && FilePos < LineEnd) { in getColumnNumber()
1165 if (FilePos + 1 == LineEnd && FilePos > LineStart) { in getColumnNumber()
1166 if (Buf[FilePos - 1] == '\r' || Buf[FilePos - 1] == '\n') in getColumnNumber()
1167 --FilePos; in getColumnNumber()
1169 return FilePos - LineStart + 1; in getColumnNumber()
1173 unsigned LineStart = FilePos; in getColumnNumber()
1176 return FilePos-LineStart+1; in getColumnNumber()
1300 unsigned SourceManager::getLineNumber(FileID FID, unsigned FilePos, in getLineNumber() argument
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceManager.h1425 unsigned getColumnNumber(FileID FID, unsigned FilePos,
1440 unsigned getLineNumber(FileID FID, unsigned FilePos, bool *Invalid = nullptr) const;