Lines Matching refs:LocStart
806 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() local
823 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
1111 SourceLocation LocStart = Method->getBeginLoc(); in RewriteMethodDeclaration() local
1115 SM->getExpansionLineNumber(LocStart)) { in RewriteMethodDeclaration()
1116 InsertText(LocStart, "#if 0\n"); in RewriteMethodDeclaration()
1119 InsertText(LocStart, "// "); in RewriteMethodDeclaration()
1131 SourceLocation LocStart = CatDecl->getBeginLoc(); in RewriteCategoryDecl() local
1135 ReplaceText(LocStart, 1, "/** "); in RewriteCategoryDecl()
1139 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
1156 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl() local
1160 ReplaceText(LocStart, 0, "// "); in RewriteProtocolDecl()
1174 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl()
1178 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1183 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1191 SourceLocation LocStart = (*D.begin())->getBeginLoc(); in RewriteForwardProtocolDecl() local
1192 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1195 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1200 SourceLocation LocStart = DG[0]->getBeginLoc(); in RewriteForwardProtocolDecl() local
1201 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1204 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1353 SourceLocation LocStart = OMD->getBeginLoc(); in RewriteImplementationDecl() local
1356 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1358 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
1364 SourceLocation LocStart = OMD->getBeginLoc(); in RewriteImplementationDecl() local
1367 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1369 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
3889 SourceLocation LocStart = CDecl->getBeginLoc(); in RewriteObjCInternalStruct() local
3892 const char *startBuf = SM->getCharacterData(LocStart); in RewriteObjCInternalStruct()
3900 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
3947 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
4721 SourceLocation LocStart = CE->getLParenLoc(); in RewriteCastExpr() local
4725 if (LocStart.isInvalid()) in RewriteCastExpr()
4728 if (!Rewriter::isRewritable(LocStart) || !Rewriter::isRewritable(LocEnd)) in RewriteCastExpr()
4731 const char *startBuf = SM->getCharacterData(LocStart); in RewriteCastExpr()
4741 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString); in RewriteCastExpr()
4751 LocStart = LocStart.getLocWithOffset(argPtr-startBuf); in RewriteCastExpr()
4752 ReplaceText(LocStart, 1, "*"); in RewriteCastExpr()