Home | History | Annotate | Download | only in Frontend

Lines Matching refs:startBuf

535     bool BufferContainsPPDirectives(const char *startBuf, const char *endBuf);
948 const char *startBuf = SM->getCharacterData(startLoc);
949 assert((*startBuf == '@') && "bogus @synthesize location");
950 const char *semiBuf = strchr(startBuf, ';');
952 startGetterSetterLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1);
1084 const char *startBuf = SM->getCharacterData(startLoc);
1085 const char *semiPtr = strchr(startBuf, ';');
1087 ReplaceText(startLoc, semiPtr-startBuf+1, typedefString);
1194 const char *startBuf = SM->getCharacterData(LocStart);
1196 for (const char *p = startBuf; p < endBuf; p++) {
1198 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
1203 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
1391 const char *startBuf = SM->getCharacterData(LocStart);
1393 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1402 const char *startBuf = SM->getCharacterData(LocStart);
1404 ReplaceText(LocStart, endBuf-startBuf, ResultStr);
1724 const char *startBuf = SM->getCharacterData(startLoc);
1767 const char *startCollectionBuf = startBuf;
1780 ReplaceText(startLoc, startCollectionBuf - startBuf, buf);
1784 SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf);
1898 const char *startBuf = SM->getCharacterData(startLoc);
1900 assert((*startBuf == '@') && "bogus @synchronized location");
1907 const char *lparenBuf = startBuf;
1909 ReplaceText(startLoc, lparenBuf-startBuf+1, buf);
1923 RParenExprLoc = startLoc.getLocWithOffset(RParenExprLocBuf-startBuf);
1983 const char *startBuf = SM->getCharacterData(startLoc);
1985 assert((*startBuf == '@') && "bogus @try location");
2007 startBuf = SM->getCharacterData(startLoc);
2008 assert((*startBuf == '@') && "bogus @catch location");
2016 ReplaceText(startLoc, rParenBuf-startBuf+1, Result);
2074 const char *startBuf = SM->getCharacterData(startLoc);
2076 assert((*startBuf == '@') && "bogus @throw location");
2086 const char *wBuf = strchr(startBuf, 'w');
2088 ReplaceText(startLoc, wBuf-startBuf+1, buf);
2094 SourceLocation semiLoc = startLoc.getLocWithOffset(semiBuf-startBuf);
2151 static bool scanForProtocolRefs(const char *startBuf, const char *endBuf,
2153 while (startBuf < endBuf) {
2154 if (*startBuf == '<')
2155 startRef = startBuf; // mark the start.
2156 if (*startBuf == '>') {
2158 endRef = startBuf; // mark the end.
2163 startBuf++;
2214 const char *startBuf = SM->getCharacterData(Loc);
2217 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2219 SourceLocation LessLoc = Loc.getLocWithOffset(startRef-startBuf);
2220 SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-startBuf+1);
2262 const char *startBuf = endBuf;
2263 while (*startBuf != ';' && *startBuf != '<' && startBuf != MainFileStart)
2264 startBuf--; // scan backward (from the decl location) for return type.
2266 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2278 const char *startBuf = SM->getCharacterData(Loc);
2279 const char *startFuncBuf = startBuf;
2284 const char *endBuf = startBuf;
2288 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) {
2298 startBuf = ++endBuf;
2303 while (*startBuf && *startBuf != ')' && *startBuf != ',')
2304 startBuf++; // scan forward (from the decl location) for argument types.
2305 startBuf++;
2324 const char *startBuf = SM->getCharacterData(DeclLoc);
2336 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
2342 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString);
3678 bool RewriteModernObjC::BufferContainsPPDirectives(const char *startBuf,
3680 while (startBuf < endBuf) {
3681 if (*startBuf == '#') {
3683 for (++startBuf; startBuf[0] == ' ' || startBuf[0] == '\t'; ++startBuf)
3685 if (!strncmp(startBuf, "if", strlen("if")) ||
3686 !strncmp(startBuf, "ifdef", strlen("ifdef")) ||
3687 !strncmp(startBuf, "ifndef", strlen("ifndef")) ||
3688 !strncmp(startBuf, "define", strlen("define")) ||
3689 !strncmp(startBuf, "undef", strlen("undef")) ||
3690 !strncmp(startBuf, "else", strlen("else")) ||
3691 !strncmp(startBuf, "elif", strlen("elif")) ||
3692 !strncmp(startBuf, "endif", strlen("endif")) ||
3693 !strncmp(startBuf, "pragma", strlen("pragma")) ||
3694 !strncmp(startBuf, "include", strlen("include")) ||
3695 !strncmp(startBuf, "import", strlen("import")) ||
3696 !strncmp(startBuf, "include_next", strlen("include_next")))
3699 startBuf++;
3999 const char *startBuf = SM->getCharacterData(LocStart);
4007 ReplaceText(LocStart, endBuf-startBuf, Result);
4054 ReplaceText(LocStart, endBuf-startBuf, Result);
4858 const char *startBuf = SM->getCharacterData(LocStart);
4868 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString);
4872 const char *argPtr = startBuf;
4878 LocStart = LocStart.getLocWithOffset(argPtr-startBuf);
4908 const char *startBuf = SM->getCharacterData(DeclLoc);
4909 const char *startArgList = strchr(startBuf, '(');
4915 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf);
5017 const char *startBuf = SM->getCharacterData(DeclLoc);
5018 const char *endBuf = startBuf;
5020 while (*startBuf != '^' && *startBuf != ';' && startBuf != MainFileStart)
5021 startBuf--;
5022 SourceLocation Start = DeclLoc.getLocWithOffset(startBuf-endBuf);
5025 // *startBuf != '^' if we are dealing with a pointer to function that
5027 if (*startBuf == '^') {
5030 startBuf++;
5033 while (*startBuf != ')') {
5034 buf += *startBuf;
5035 startBuf++;
5046 startBuf = SM->getCharacterData(DeclLoc);
5048 GetExtentOfArgList(startBuf, argListBegin, argListEnd);
5161 const char *startBuf = SM->getCharacterData(DeclLoc);
5263 startBuf = commaBuf;
5273 ReplaceText(DeclLoc, endBuf-startBuf+nameSize, ByrefType);
5285 ReplaceText(DeclLoc, endBuf-startBuf, ByrefType);
5664 const char *startBuf = SM->getCharacterData(startLoc);
5669 messString.append(startBuf, endBuf-startBuf+1);