Home | History | Annotate | Download | only in Frontend

Lines Matching refs:startBuf

521     bool BufferContainsPPDirectives(const char *startBuf, const char *endBuf);
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);
1062 const char *startBuf = SM->getCharacterData(startLoc);
1063 const char *semiPtr = strchr(startBuf, ';');
1065 ReplaceText(startLoc, semiPtr-startBuf+1, typedefString);
1180 const char *startBuf = SM->getCharacterData(LocStart);
1182 for (const char *p = startBuf; p < endBuf; p++) {
1184 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
1189 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
1382 const char *startBuf = SM->getCharacterData(LocStart);
1384 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1397 const char *startBuf = SM->getCharacterData(LocStart);
1399 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1728 const char *startBuf = SM->getCharacterData(startLoc);
1771 const char *startCollectionBuf = startBuf;
1784 ReplaceText(startLoc, startCollectionBuf - startBuf, buf);
1788 SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf);
1902 const char *startBuf = SM->getCharacterData(startLoc);
1904 assert((*startBuf == '@') && "bogus @synchronized location");
1911 const char *lparenBuf = startBuf;
1913 ReplaceText(startLoc, lparenBuf-startBuf+1, buf);
1927 RParenExprLoc = startLoc.getLocWithOffset(RParenExprLocBuf-startBuf);
1987 const char *startBuf = SM->getCharacterData(startLoc);
1989 assert((*startBuf == '@') && "bogus @try location");
2011 startBuf = SM->getCharacterData(startLoc);
2012 assert((*startBuf == '@') && "bogus @catch location");
2020 ReplaceText(startLoc, rParenBuf-startBuf+1, Result);
2078 const char *startBuf = SM->getCharacterData(startLoc);
2080 assert((*startBuf == '@') && "bogus @throw location");
2090 const char *wBuf = strchr(startBuf, 'w');
2092 ReplaceText(startLoc, wBuf-startBuf+1, buf);
2098 SourceLocation semiLoc = startLoc.getLocWithOffset(semiBuf-startBuf);
2162 static bool scanForProtocolRefs(const char *startBuf, const char *endBuf,
2164 while (startBuf < endBuf) {
2165 if (*startBuf == '<')
2166 startRef = startBuf; // mark the start.
2167 if (*startBuf == '>') {
2169 endRef = startBuf; // mark the end.
2174 startBuf++;
2225 const char *startBuf = SM->getCharacterData(Loc);
2228 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2230 SourceLocation LessLoc = Loc.getLocWithOffset(startRef-startBuf);
2231 SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-startBuf+1);
2273 const char *startBuf = endBuf;
2274 while (*startBuf != ';' && *startBuf != '<' && startBuf != MainFileStart)
2275 startBuf--; // scan backward (from the decl location) for return type.
2277 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2289 const char *startBuf = SM->getCharacterData(Loc);
2290 const char *startFuncBuf = startBuf;
2295 const char *endBuf = startBuf;
2299 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2309 startBuf = ++endBuf;
2314 while (*startBuf && *startBuf != ')' && *startBuf != ',')
2315 startBuf++; // scan forward (from the decl location) for argument types.
2316 startBuf++;
2335 const char *startBuf = SM->getCharacterData(DeclLoc);
2347 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
2353 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
3742 bool RewriteModernObjC::BufferContainsPPDirectives(const char *startBuf,
3744 while (startBuf < endBuf) {
3745 if (*startBuf == '#') {
3747 for (++startBuf; startBuf[0] == ' ' || startBuf[0] == '\t'; ++startBuf)
3749 if (!strncmp(startBuf, "if", strlen("if")) ||
3750 !strncmp(startBuf, "ifdef", strlen("ifdef")) ||
3751 !strncmp(startBuf, "ifndef", strlen("ifndef")) ||
3752 !strncmp(startBuf, "define", strlen("define")) ||
3753 !strncmp(startBuf, "undef", strlen("undef")) ||
3754 !strncmp(startBuf, "else", strlen("else")) ||
3755 !strncmp(startBuf, "elif", strlen("elif")) ||
3756 !strncmp(startBuf, "endif", strlen("endif")) ||
3757 !strncmp(startBuf, "pragma", strlen("pragma")) ||
3758 !strncmp(startBuf, "include", strlen("include")) ||
3759 !strncmp(startBuf, "import", strlen("import")) ||
3760 !strncmp(startBuf, "include_next", strlen("include_next")))
3763 startBuf++;
4067 const char *startBuf = SM->getCharacterData(LocStart);
4075 ReplaceText(LocStart, endBuf-startBuf, Result);
4122 ReplaceText(LocStart, endBuf-startBuf, Result);
4928 const char *startBuf = SM->getCharacterData(LocStart);
4938 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString);
4942 const char *argPtr = startBuf;
4948 LocStart = LocStart.getLocWithOffset(argPtr-startBuf);
4978 const char *startBuf = SM->getCharacterData(DeclLoc);
4979 const char *startArgList = strchr(startBuf, '(');
4985 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf);
5089 const char *startBuf = SM->getCharacterData(DeclLoc);
5090 const char *endBuf = startBuf;
5092 while (*startBuf != '^' && *startBuf != ';' && startBuf != MainFileStart)
5093 startBuf--;
5094 SourceLocation Start = DeclLoc.getLocWithOffset(startBuf-endBuf);
5097 // *startBuf != '^' if we are dealing with a pointer to function that
5099 if (*startBuf == '^') {
5102 startBuf++;
5105 while (*startBuf != ')') {
5106 buf += *startBuf;
5107 startBuf++;
5118 startBuf = SM->getCharacterData(DeclLoc);
5120 GetExtentOfArgList(startBuf, argListBegin, argListEnd);
5233 const char *startBuf = SM->getCharacterData(DeclLoc);
5335 startBuf = commaBuf;
5345 ReplaceText(DeclLoc, endBuf-startBuf+nameSize, ByrefType);
5357 ReplaceText(DeclLoc, endBuf-startBuf, ByrefType);
5737 const char *startBuf = SM->getCharacterData(startLoc);
5742 messString.append(startBuf, endBuf-startBuf+1);