Lines Matching refs:endBuf
281 bool BufferContainsPPDirectives(const char *startBuf, const char *endBuf);
1052 const char *endBuf = SM->getCharacterData(LocEnd);
1053 for (const char *p = startBuf; p < endBuf; p++) {
1221 const char *endBuf = SM->getCharacterData(LocEnd);
1222 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1236 const char *endBuf = SM->getCharacterData(LocEnd);
1237 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1839 const char *endBuf = SM->getCharacterData(endLoc);
1840 while (*endBuf != ')') endBuf--;
1841 SourceLocation rparenLoc = startLoc.getLocWithOffset(endBuf-startBuf);
2221 static bool scanForProtocolRefs(const char *startBuf, const char *endBuf,
2223 while (startBuf < endBuf) {
2285 const char *endBuf = SM->getCharacterData(EndLoc);
2287 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2327 const char *endBuf = SM->getCharacterData(Loc);
2328 const char *startBuf = endBuf;
2332 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2334 SourceLocation LessLoc = Loc.getLocWithOffset(startRef-endBuf);
2335 SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-endBuf+1);
2350 const char *endBuf = startBuf;
2352 scanToNextArgument(endBuf);
2354 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2364 startBuf = ++endBuf;
2401 const char *endBuf = SM->getCharacterData(startLoc);
2402 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
2407 const char *endBuf = SM->getCharacterData(X);
2408 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
3287 const char *endBuf) {
3288 while (startBuf < endBuf) {
3328 const char *endBuf = SM->getCharacterData(LocEnd);
3334 endBuf += Lexer::MeasureTokenLength(LocEnd, *SM, LangOpts);
3335 ReplaceText(LocStart, endBuf-startBuf, Result);
3348 assert((cursor && endBuf)
3397 while (cursor < endBuf) {
3431 endBuf += Lexer::MeasureTokenLength(LocEnd, *SM, LangOpts);
3437 ReplaceText(LocStart, endBuf-startBuf, Result);
4914 const char *endBuf = SM->getCharacterData(LocEnd);
4923 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString);
4929 while (*argPtr++ && (argPtr < endBuf)) {
5058 const char *endBuf = startBuf;
5062 SourceLocation Start = DeclLoc.getLocWithOffset(startBuf-endBuf);
5207 const char *endBuf = SM->getCharacterData(X);
5292 ReplaceText(DeclLoc, endBuf-startBuf+nameSize, ByrefType);
5302 endBuf = SM->getCharacterData(startLoc);
5319 ReplaceText(DeclLoc, endBuf-startBuf, ByrefType);
5766 const char *endBuf = SM->getCharacterData(endLoc);
5770 messString.append(startBuf, endBuf-startBuf+1);