Lines Matching refs:LocStart
812 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() local
829 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
1119 SourceLocation LocStart = Method->getLocStart(); in RewriteMethodDeclaration() local
1123 SM->getExpansionLineNumber(LocStart)) { in RewriteMethodDeclaration()
1124 InsertText(LocStart, "#if 0\n"); in RewriteMethodDeclaration()
1127 InsertText(LocStart, "// "); in RewriteMethodDeclaration()
1139 SourceLocation LocStart = CatDecl->getLocStart(); in RewriteCategoryDecl() local
1143 ReplaceText(LocStart, 1, "/** "); in RewriteCategoryDecl()
1147 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
1164 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl() local
1168 ReplaceText(LocStart, 0, "// "); in RewriteProtocolDecl()
1182 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl()
1186 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1191 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1199 SourceLocation LocStart = (*D.begin())->getLocStart(); in RewriteForwardProtocolDecl() local
1200 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1203 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1208 SourceLocation LocStart = DG[0]->getLocStart(); in RewriteForwardProtocolDecl() local
1209 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1212 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1217 SourceLocation LocStart = LSD->getExternLoc(); in RewriteLinkageSpec() local
1218 if (LocStart.isInvalid()) in RewriteLinkageSpec()
1221 ReplaceText(LocStart, 0, "// "); in RewriteLinkageSpec()
1376 SourceLocation LocStart = OMD->getLocStart(); in RewriteImplementationDecl() local
1379 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1381 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
1387 SourceLocation LocStart = OMD->getLocStart(); in RewriteImplementationDecl() local
1390 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1392 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
3959 SourceLocation LocStart = CDecl->getLocStart(); in RewriteObjCInternalStruct() local
3962 const char *startBuf = SM->getCharacterData(LocStart); in RewriteObjCInternalStruct()
3970 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
4017 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
4796 SourceLocation LocStart = CE->getLParenLoc(); in RewriteCastExpr() local
4800 if (LocStart.isInvalid()) in RewriteCastExpr()
4803 if (!Rewriter::isRewritable(LocStart) || !Rewriter::isRewritable(LocEnd)) in RewriteCastExpr()
4806 const char *startBuf = SM->getCharacterData(LocStart); in RewriteCastExpr()
4816 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString); in RewriteCastExpr()
4826 LocStart = LocStart.getLocWithOffset(argPtr-startBuf); in RewriteCastExpr()
4827 ReplaceText(LocStart, 1, "*"); in RewriteCastExpr()