Home | History | Annotate | Download | only in Rewrite

Lines Matching defs:startBuf

925     const char *startBuf = SM->getCharacterData(startLoc);
926 assert((*startBuf == '@') && "bogus @synthesize location");
927 const char *semiBuf = strchr(startBuf, ';');
929 startGetterSetterLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1);
1061 const char *startBuf = SM->getCharacterData(startLoc);
1062 const char *semiPtr = strchr(startBuf, ';');
1064 ReplaceText(startLoc, semiPtr-startBuf+1, typedefString);
1171 const char *startBuf = SM->getCharacterData(LocStart);
1173 for (const char *p = startBuf; p < endBuf; p++) {
1175 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
1180 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
1353 const char *startBuf = SM->getCharacterData(LocStart);
1355 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1364 const char *startBuf = SM->getCharacterData(LocStart);
1366 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1686 const char *startBuf = SM->getCharacterData(startLoc);
1729 const char *startCollectionBuf = startBuf;
1742 ReplaceText(startLoc, startCollectionBuf - startBuf, buf);
1746 SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf);
1860 const char *startBuf = SM->getCharacterData(startLoc);
1862 assert((*startBuf == '@') && "bogus @synchronized location");
1869 const char *lparenBuf = startBuf;
1871 ReplaceText(startLoc, lparenBuf-startBuf+1, buf);
1885 RParenExprLoc = startLoc.getLocWithOffset(RParenExprLocBuf-startBuf);
1944 const char *startBuf = SM->getCharacterData(startLoc);
1946 assert((*startBuf == '@') && "bogus @try location");
1968 startBuf = SM->getCharacterData(startLoc);
1969 assert((*startBuf == '@') && "bogus @catch location");
1977 ReplaceText(startLoc, rParenBuf-startBuf+1, Result);
2035 const char *startBuf = SM->getCharacterData(startLoc);
2037 assert((*startBuf == '@') && "bogus @throw location");
2047 const char *wBuf = strchr(startBuf, 'w');
2049 ReplaceText(startLoc, wBuf-startBuf+1, buf);
2055 SourceLocation semiLoc = startLoc.getLocWithOffset(semiBuf-startBuf);
2113 static bool scanForProtocolRefs(const char *startBuf, const char *endBuf,
2115 while (startBuf < endBuf) {
2116 if (*startBuf == '<')
2117 startRef = startBuf; // mark the start.
2118 if (*startBuf == '>') {
2120 endRef = startBuf; // mark the end.
2125 startBuf++;
2176 const char *startBuf = SM->getCharacterData(Loc);
2179 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2181 SourceLocation LessLoc = Loc.getLocWithOffset(startRef-startBuf);
2182 SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-startBuf+1);
2224 const char *startBuf = endBuf;
2225 while (*startBuf != ';' && *startBuf != '<' && startBuf != MainFileStart)
2226 startBuf--; // scan backward (from the decl location) for return type.
2228 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2240 const char *startBuf = SM->getCharacterData(Loc);
2241 const char *startFuncBuf = startBuf;
2246 const char *endBuf = startBuf;
2250 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2260 startBuf = ++endBuf;
2265 while (*startBuf && *startBuf != ')' && *startBuf != ',')
2266 startBuf++; // scan forward (from the decl location) for argument types.
2267 startBuf++;
2286 const char *startBuf = SM->getCharacterData(DeclLoc);
2298 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
2304 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
3898 const char *startBuf = SM->getCharacterData(LocStart);
3906 ReplaceText(LocStart, endBuf-startBuf, Result);
3953 ReplaceText(LocStart, endBuf-startBuf, Result);
4737 const char *startBuf = SM->getCharacterData(LocStart);
4747 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString);
4751 const char *argPtr = startBuf;
4757 LocStart = LocStart.getLocWithOffset(argPtr-startBuf);
4784 const char *startBuf = SM->getCharacterData(DeclLoc);
4785 const char *startArgList = strchr(startBuf, '(');
4791 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf);
4892 const char *startBuf = SM->getCharacterData(DeclLoc);
4893 const char *endBuf = startBuf;
4895 while (*startBuf != '^' && *startBuf != ';' && startBuf != MainFileStart)
4896 startBuf--;
4897 SourceLocation Start = DeclLoc.getLocWithOffset(startBuf-endBuf);
4900 // *startBuf != '^' if we are dealing with a pointer to function that
4902 if (*startBuf == '^') {
4905 startBuf++;
4908 while (*startBuf != ')') {
4909 buf += *startBuf;
4910 startBuf++;
4921 startBuf = SM->getCharacterData(DeclLoc);
4923 GetExtentOfArgList(startBuf, argListBegin, argListEnd);
5033 const char *startBuf = SM->getCharacterData(DeclLoc);
5135 startBuf = commaBuf;
5145 ReplaceText(DeclLoc, endBuf-startBuf+nameSize, ByrefType);
5157 ReplaceText(DeclLoc, endBuf-startBuf, ByrefType);
5537 const char *startBuf = SM->getCharacterData(startLoc);
5542 messString.append(startBuf, endBuf-startBuf+1);