Lines Matching refs:LocStart

807   SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID);  in RewriteInclude()  local
824 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()
1356 SourceLocation LocStart = OMD->getBeginLoc(); in RewriteImplementationDecl() local
1359 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1361 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
1369 SourceLocation LocStart = OMD->getBeginLoc(); in RewriteImplementationDecl() local
1372 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1374 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
3887 SourceLocation LocStart = CDecl->getBeginLoc(); in RewriteObjCInternalStruct() local
3890 const char *startBuf = SM->getCharacterData(LocStart); in RewriteObjCInternalStruct()
3898 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
3945 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
4715 SourceLocation LocStart = CE->getLParenLoc(); in RewriteCastExpr() local
4719 if (LocStart.isInvalid()) in RewriteCastExpr()
4722 if (!Rewriter::isRewritable(LocStart) || !Rewriter::isRewritable(LocEnd)) in RewriteCastExpr()
4725 const char *startBuf = SM->getCharacterData(LocStart); in RewriteCastExpr()
4735 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString); in RewriteCastExpr()
4745 LocStart = LocStart.getLocWithOffset(argPtr-startBuf); in RewriteCastExpr()
4746 ReplaceText(LocStart, 1, "*"); in RewriteCastExpr()