Lines Matching refs:endBuf
437 bool BufferContainsPPDirectives(const char *startBuf, const char *endBuf);
1017 const char *endBuf = SM->getCharacterData(LocEnd);
1018 for (const char *p = startBuf; p < endBuf; p++) {
1193 const char *endBuf = SM->getCharacterData(LocEnd);
1194 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1208 const char *endBuf = SM->getCharacterData(LocEnd);
1209 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1687 const char *endBuf = SM->getCharacterData(endLoc);
1688 while (*endBuf != ')') endBuf--;
1689 SourceLocation rparenLoc = startLoc.getLocWithOffset(endBuf-startBuf);
2068 static bool scanForProtocolRefs(const char *startBuf, const char *endBuf,
2070 while (startBuf < endBuf) {
2132 const char *endBuf = SM->getCharacterData(EndLoc);
2134 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2174 const char *endBuf = SM->getCharacterData(Loc);
2175 const char *startBuf = endBuf;
2179 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2181 SourceLocation LessLoc = Loc.getLocWithOffset(startRef-endBuf);
2182 SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-endBuf+1);
2197 const char *endBuf = startBuf;
2199 scanToNextArgument(endBuf);
2201 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2211 startBuf = ++endBuf;
2248 const char *endBuf = SM->getCharacterData(startLoc);
2249 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
2254 const char *endBuf = SM->getCharacterData(X);
2255 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
3132 const char *endBuf) {
3133 while (startBuf < endBuf) {
3173 const char *endBuf = SM->getCharacterData(LocEnd);
3179 endBuf += Lexer::MeasureTokenLength(LocEnd, *SM, LangOpts);
3180 ReplaceText(LocStart, endBuf-startBuf, Result);
3193 assert((cursor && endBuf)
3242 while (cursor < endBuf) {
3276 endBuf += Lexer::MeasureTokenLength(LocEnd, *SM, LangOpts);
3282 ReplaceText(LocStart, endBuf-startBuf, Result);
3991 const char *endBuf = SM->getCharacterData(LocEnd);
4000 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString);
4006 while (*argPtr++ && (argPtr < endBuf)) {
4135 const char *endBuf = startBuf;
4139 SourceLocation Start = DeclLoc.getLocWithOffset(startBuf-endBuf);
4284 const char *endBuf = SM->getCharacterData(X);
4369 ReplaceText(DeclLoc, endBuf-startBuf+nameSize, ByrefType);
4379 endBuf = SM->getCharacterData(startLoc);
4396 ReplaceText(DeclLoc, endBuf-startBuf, ByrefType);
4743 const char *endBuf = SM->getCharacterData(endLoc);
4747 messString.append(startBuf, endBuf-startBuf+1);