Lines Matching refs:LocStart

806   SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID);  in RewriteInclude()  local
823 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
1110 SourceLocation LocStart = Method->getBeginLoc(); in RewriteMethodDeclaration() local
1114 SM->getExpansionLineNumber(LocStart)) { in RewriteMethodDeclaration()
1115 InsertText(LocStart, "#if 0\n"); in RewriteMethodDeclaration()
1118 InsertText(LocStart, "// "); in RewriteMethodDeclaration()
1130 SourceLocation LocStart = CatDecl->getBeginLoc(); in RewriteCategoryDecl() local
1134 ReplaceText(LocStart, 1, "/** "); in RewriteCategoryDecl()
1138 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
1155 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl() local
1159 ReplaceText(LocStart, 0, "// "); in RewriteProtocolDecl()
1173 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl()
1177 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1182 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1190 SourceLocation LocStart = (*D.begin())->getBeginLoc(); in RewriteForwardProtocolDecl() local
1191 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1194 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1199 SourceLocation LocStart = DG[0]->getBeginLoc(); in RewriteForwardProtocolDecl() local
1200 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1203 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1355 SourceLocation LocStart = OMD->getBeginLoc(); in RewriteImplementationDecl() local
1358 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1360 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
1368 SourceLocation LocStart = OMD->getBeginLoc(); in RewriteImplementationDecl() local
1371 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1373 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
3897 SourceLocation LocStart = CDecl->getBeginLoc(); in RewriteObjCInternalStruct() local
3900 const char *startBuf = SM->getCharacterData(LocStart); in RewriteObjCInternalStruct()
3908 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
3955 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
4727 SourceLocation LocStart = CE->getLParenLoc(); in RewriteCastExpr() local
4731 if (LocStart.isInvalid()) in RewriteCastExpr()
4734 if (!Rewriter::isRewritable(LocStart) || !Rewriter::isRewritable(LocEnd)) in RewriteCastExpr()
4737 const char *startBuf = SM->getCharacterData(LocStart); in RewriteCastExpr()
4747 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString); in RewriteCastExpr()
4757 LocStart = LocStart.getLocWithOffset(argPtr-startBuf); in RewriteCastExpr()
4758 ReplaceText(LocStart, 1, "*"); in RewriteCastExpr()