Lines Matching defs:startBuf
927 const char *startBuf = SM->getCharacterData(startLoc);
928 assert((*startBuf == '@') && "bogus @synthesize location");
929 const char *semiBuf = strchr(startBuf, ';');
931 startGetterSetterLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1);
1063 const char *startBuf = SM->getCharacterData(startLoc);
1064 const char *semiPtr = strchr(startBuf, ';');
1066 ReplaceText(startLoc, semiPtr-startBuf+1, typedefString);
1173 const char *startBuf = SM->getCharacterData(LocStart);
1175 for (const char *p = startBuf; p < endBuf; p++) {
1177 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
1182 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
1358 const char *startBuf = SM->getCharacterData(LocStart);
1360 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1371 const char *startBuf = SM->getCharacterData(LocStart);
1373 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1693 const char *startBuf = SM->getCharacterData(startLoc);
1736 const char *startCollectionBuf = startBuf;
1749 ReplaceText(startLoc, startCollectionBuf - startBuf, buf);
1753 SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf);
1867 const char *startBuf = SM->getCharacterData(startLoc);
1869 assert((*startBuf == '@') && "bogus @synchronized location");
1876 const char *lparenBuf = startBuf;
1878 ReplaceText(startLoc, lparenBuf-startBuf+1, buf);
1892 RParenExprLoc = startLoc.getLocWithOffset(RParenExprLocBuf-startBuf);
1951 const char *startBuf = SM->getCharacterData(startLoc);
1953 assert((*startBuf == '@') && "bogus @try location");
1975 startBuf = SM->getCharacterData(startLoc);
1976 assert((*startBuf == '@') && "bogus @catch location");
1984 ReplaceText(startLoc, rParenBuf-startBuf+1, Result);
2042 const char *startBuf = SM->getCharacterData(startLoc);
2044 assert((*startBuf == '@') && "bogus @throw location");
2054 const char *wBuf = strchr(startBuf, 'w');
2056 ReplaceText(startLoc, wBuf-startBuf+1, buf);
2062 SourceLocation semiLoc = startLoc.getLocWithOffset(semiBuf-startBuf);
2119 static bool scanForProtocolRefs(const char *startBuf, const char *endBuf,
2121 while (startBuf < endBuf) {
2122 if (*startBuf == '<')
2123 startRef = startBuf; // mark the start.
2124 if (*startBuf == '>') {
2126 endRef = startBuf; // mark the end.
2131 startBuf++;
2182 const char *startBuf = SM->getCharacterData(Loc);
2185 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2187 SourceLocation LessLoc = Loc.getLocWithOffset(startRef-startBuf);
2188 SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-startBuf+1);
2230 const char *startBuf = endBuf;
2231 while (*startBuf != ';' && *startBuf != '<' && startBuf != MainFileStart)
2232 startBuf--; // scan backward (from the decl location) for return type.
2234 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2246 const char *startBuf = SM->getCharacterData(Loc);
2247 const char *startFuncBuf = startBuf;
2252 const char *endBuf = startBuf;
2256 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2266 startBuf = ++endBuf;
2271 while (*startBuf && *startBuf != ')' && *startBuf != ',')
2272 startBuf++; // scan forward (from the decl location) for argument types.
2273 startBuf++;
2292 const char *startBuf = SM->getCharacterData(DeclLoc);
2304 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
2310 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
3888 const char *startBuf = SM->getCharacterData(LocStart);
3896 ReplaceText(LocStart, endBuf-startBuf, Result);
3943 ReplaceText(LocStart, endBuf-startBuf, Result);
4722 const char *startBuf = SM->getCharacterData(LocStart);
4732 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString);
4736 const char *argPtr = startBuf;
4742 LocStart = LocStart.getLocWithOffset(argPtr-startBuf);
4769 const char *startBuf = SM->getCharacterData(DeclLoc);
4770 const char *startArgList = strchr(startBuf, '(');
4776 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf);
4877 const char *startBuf = SM->getCharacterData(DeclLoc);
4878 const char *endBuf = startBuf;
4880 while (*startBuf != '^' && *startBuf != ';' && startBuf != MainFileStart)
4881 startBuf--;
4882 SourceLocation Start = DeclLoc.getLocWithOffset(startBuf-endBuf);
4885 // *startBuf != '^' if we are dealing with a pointer to function that
4887 if (*startBuf == '^') {
4890 startBuf++;
4893 while (*startBuf != ')') {
4894 buf += *startBuf;
4895 startBuf++;
4906 startBuf = SM->getCharacterData(DeclLoc);
4908 GetExtentOfArgList(startBuf, argListBegin, argListEnd);
5018 const char *startBuf = SM->getCharacterData(DeclLoc);
5120 startBuf = commaBuf;
5130 ReplaceText(DeclLoc, endBuf-startBuf+nameSize, ByrefType);
5142 ReplaceText(DeclLoc, endBuf-startBuf, ByrefType);
5522 const char *startBuf = SM->getCharacterData(startLoc);
5527 messString.append(startBuf, endBuf-startBuf+1);