Lines Matching refs:endBuf
535 bool BufferContainsPPDirectives(const char *startBuf, const char *endBuf);
1195 const char *endBuf = SM->getCharacterData(LocEnd);
1196 for (const char *p = startBuf; p < endBuf; p++) {
1392 const char *endBuf = SM->getCharacterData(LocEnd);
1393 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1403 const char *endBuf = SM->getCharacterData(LocEnd);
1404 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
2091 const char *endBuf = SM->getCharacterData(endLoc);
2092 const char *semiBuf = strchr(endBuf, ';');
2151 static bool scanForProtocolRefs(const char *startBuf, const char *endBuf,
2153 while (startBuf < endBuf) {
2215 const char *endBuf = SM->getCharacterData(EndLoc);
2217 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2261 const char *endBuf = SM->getCharacterData(Loc);
2262 const char *startBuf = endBuf;
2266 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2268 SourceLocation LessLoc = Loc.getLocWithOffset(startRef-endBuf);
2269 SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-endBuf+1);
2284 const char *endBuf = startBuf;
2286 scanToNextArgument(endBuf);
2288 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2298 startBuf = ++endBuf;
2335 const char *endBuf = SM->getCharacterData(startLoc);
2336 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
2341 const char *endBuf = SM->getCharacterData(X);
2342 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
3679 const char *endBuf) {
3680 while (startBuf < endBuf) {
4000 const char *endBuf = SM->getCharacterData(LocEnd);
4006 endBuf += Lexer::MeasureTokenLength(LocEnd, *SM, LangOpts);
4007 ReplaceText(LocStart, endBuf-startBuf, Result);
4053 endBuf += Lexer::MeasureTokenLength(LocEnd, *SM, LangOpts);
4054 ReplaceText(LocStart, endBuf-startBuf, Result);
4859 const char *endBuf = SM->getCharacterData(LocEnd);
4868 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString);
4874 while (*argPtr++ && (argPtr < endBuf)) {
5018 const char *endBuf = startBuf;
5022 SourceLocation Start = DeclLoc.getLocWithOffset(startBuf-endBuf);
5164 const char *endBuf = SM->getCharacterData(X);
5273 ReplaceText(DeclLoc, endBuf-startBuf+nameSize, ByrefType);
5284 endBuf = SM->getCharacterData(startLoc);
5285 ReplaceText(DeclLoc, endBuf-startBuf, ByrefType);
5665 const char *endBuf = SM->getCharacterData(endLoc);
5669 messString.append(startBuf, endBuf-startBuf+1);