Lines Matching refs:startBuf
928 const char *startBuf = SM->getCharacterData(startLoc); in RewritePropertyImplDecl() local
929 assert((*startBuf == '@') && "bogus @synthesize location"); in RewritePropertyImplDecl()
930 const char *semiBuf = strchr(startBuf, ';'); in RewritePropertyImplDecl()
932 startGetterSetterLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1); in RewritePropertyImplDecl()
1064 const char *startBuf = SM->getCharacterData(startLoc); in RewriteForwardClassEpilogue() local
1065 const char *semiPtr = strchr(startBuf, ';'); in RewriteForwardClassEpilogue()
1067 ReplaceText(startLoc, semiPtr-startBuf+1, typedefString); in RewriteForwardClassEpilogue()
1174 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl() local
1176 for (const char *p = startBuf; p < endBuf; p++) { in RewriteProtocolDecl()
1178 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1183 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1359 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl() local
1361 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
1372 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl() local
1374 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
1694 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCForCollectionStmt() local
1737 const char *startCollectionBuf = startBuf; in RewriteObjCForCollectionStmt()
1750 ReplaceText(startLoc, startCollectionBuf - startBuf, buf); in RewriteObjCForCollectionStmt()
1754 SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf); in RewriteObjCForCollectionStmt()
1868 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCSynchronizedStmt() local
1870 assert((*startBuf == '@') && "bogus @synchronized location"); in RewriteObjCSynchronizedStmt()
1877 const char *lparenBuf = startBuf; in RewriteObjCSynchronizedStmt()
1879 ReplaceText(startLoc, lparenBuf-startBuf+1, buf); in RewriteObjCSynchronizedStmt()
1893 RParenExprLoc = startLoc.getLocWithOffset(RParenExprLocBuf-startBuf); in RewriteObjCSynchronizedStmt()
1952 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCTryStmt() local
1954 assert((*startBuf == '@') && "bogus @try location"); in RewriteObjCTryStmt()
1976 startBuf = SM->getCharacterData(startLoc); in RewriteObjCTryStmt()
1977 assert((*startBuf == '@') && "bogus @catch location"); in RewriteObjCTryStmt()
1985 ReplaceText(startLoc, rParenBuf-startBuf+1, Result); in RewriteObjCTryStmt()
2043 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCThrowStmt() local
2045 assert((*startBuf == '@') && "bogus @throw location"); in RewriteObjCThrowStmt()
2055 const char *wBuf = strchr(startBuf, 'w'); in RewriteObjCThrowStmt()
2057 ReplaceText(startLoc, wBuf-startBuf+1, buf); in RewriteObjCThrowStmt()
2063 SourceLocation semiLoc = startLoc.getLocWithOffset(semiBuf-startBuf); in RewriteObjCThrowStmt()
2120 static bool scanForProtocolRefs(const char *startBuf, const char *endBuf, in scanForProtocolRefs() argument
2122 while (startBuf < endBuf) { in scanForProtocolRefs()
2123 if (*startBuf == '<') in scanForProtocolRefs()
2124 startRef = startBuf; // mark the start. in scanForProtocolRefs()
2125 if (*startBuf == '>') { in scanForProtocolRefs()
2127 endRef = startBuf; // mark the end. in scanForProtocolRefs()
2132 startBuf++; in scanForProtocolRefs()
2183 const char *startBuf = SM->getCharacterData(Loc); in RewriteObjCQualifiedInterfaceTypes() local
2186 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) { in RewriteObjCQualifiedInterfaceTypes()
2188 SourceLocation LessLoc = Loc.getLocWithOffset(startRef-startBuf); in RewriteObjCQualifiedInterfaceTypes()
2189 SourceLocation GreaterLoc = Loc.getLocWithOffset(endRef-startBuf+1); in RewriteObjCQualifiedInterfaceTypes()
2231 const char *startBuf = endBuf; in RewriteObjCQualifiedInterfaceTypes() local
2232 while (*startBuf != ';' && *startBuf != '<' && startBuf != MainFileStart) in RewriteObjCQualifiedInterfaceTypes()
2233 startBuf--; // scan backward (from the decl location) for return type. in RewriteObjCQualifiedInterfaceTypes()
2235 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) { in RewriteObjCQualifiedInterfaceTypes()
2247 const char *startBuf = SM->getCharacterData(Loc); in RewriteObjCQualifiedInterfaceTypes() local
2248 const char *startFuncBuf = startBuf; in RewriteObjCQualifiedInterfaceTypes()
2253 const char *endBuf = startBuf; in RewriteObjCQualifiedInterfaceTypes()
2257 if (scanForProtocolRefs(startBuf, endBuf, startRef, endRef)) { in RewriteObjCQualifiedInterfaceTypes()
2267 startBuf = ++endBuf; in RewriteObjCQualifiedInterfaceTypes()
2272 while (*startBuf && *startBuf != ')' && *startBuf != ',') in RewriteObjCQualifiedInterfaceTypes()
2273 startBuf++; // scan forward (from the decl location) for argument types. in RewriteObjCQualifiedInterfaceTypes()
2274 startBuf++; in RewriteObjCQualifiedInterfaceTypes()
2293 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteTypeOfDecl() local
2305 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl()
2311 ReplaceText(DeclLoc, endBuf-startBuf-1, TypeAsString); in RewriteTypeOfDecl()
3890 const char *startBuf = SM->getCharacterData(LocStart); in RewriteObjCInternalStruct() local
3898 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
3945 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
4725 const char *startBuf = SM->getCharacterData(LocStart); in RewriteCastExpr() local
4735 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString); in RewriteCastExpr()
4739 const char *argPtr = startBuf; in RewriteCastExpr()
4745 LocStart = LocStart.getLocWithOffset(argPtr-startBuf); in RewriteCastExpr()
4772 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteBlockPointerFunctionArgs() local
4773 const char *startArgList = strchr(startBuf, '('); in RewriteBlockPointerFunctionArgs()
4779 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf); in RewriteBlockPointerFunctionArgs()
4880 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteBlockPointerDecl() local
4881 const char *endBuf = startBuf; in RewriteBlockPointerDecl()
4883 while (*startBuf != '^' && *startBuf != ';' && startBuf != MainFileStart) in RewriteBlockPointerDecl()
4884 startBuf--; in RewriteBlockPointerDecl()
4885 SourceLocation Start = DeclLoc.getLocWithOffset(startBuf-endBuf); in RewriteBlockPointerDecl()
4890 if (*startBuf == '^') { in RewriteBlockPointerDecl()
4893 startBuf++; in RewriteBlockPointerDecl()
4896 while (*startBuf != ')') { in RewriteBlockPointerDecl()
4897 buf += *startBuf; in RewriteBlockPointerDecl()
4898 startBuf++; in RewriteBlockPointerDecl()
4909 startBuf = SM->getCharacterData(DeclLoc); in RewriteBlockPointerDecl()
4911 GetExtentOfArgList(startBuf, argListBegin, argListEnd); in RewriteBlockPointerDecl()
5021 const char *startBuf = SM->getCharacterData(DeclLoc); in RewriteByRefVar() local
5123 startBuf = commaBuf; in RewriteByRefVar()
5133 ReplaceText(DeclLoc, endBuf-startBuf+nameSize, ByrefType); in RewriteByRefVar()
5145 ReplaceText(DeclLoc, endBuf-startBuf, ByrefType); in RewriteByRefVar()
5525 const char *startBuf = SM->getCharacterData(startLoc); in RewriteFunctionBodyOrGlobalInitializer()
5530 messString.append(startBuf, endBuf-startBuf+1); in RewriteFunctionBodyOrGlobalInitializer()