Lines Matching refs:LocStart
802 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() local
819 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
1108 SourceLocation LocStart = Method->getLocStart(); in RewriteMethodDeclaration() local
1112 SM->getExpansionLineNumber(LocStart)) { in RewriteMethodDeclaration()
1113 InsertText(LocStart, "#if 0\n"); in RewriteMethodDeclaration()
1116 InsertText(LocStart, "// "); in RewriteMethodDeclaration()
1128 SourceLocation LocStart = CatDecl->getLocStart(); in RewriteCategoryDecl() local
1132 ReplaceText(LocStart, 1, "/** "); in RewriteCategoryDecl()
1136 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
1153 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl() local
1157 ReplaceText(LocStart, 0, "// "); in RewriteProtocolDecl()
1171 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl()
1175 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1180 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1188 SourceLocation LocStart = (*D.begin())->getLocStart(); in RewriteForwardProtocolDecl() local
1189 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1192 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1197 SourceLocation LocStart = DG[0]->getLocStart(); in RewriteForwardProtocolDecl() local
1198 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1201 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1350 SourceLocation LocStart = OMD->getLocStart(); in RewriteImplementationDecl() local
1353 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1355 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
1361 SourceLocation LocStart = OMD->getLocStart(); in RewriteImplementationDecl() local
1364 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1366 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
3895 SourceLocation LocStart = CDecl->getLocStart(); in RewriteObjCInternalStruct() local
3898 const char *startBuf = SM->getCharacterData(LocStart); in RewriteObjCInternalStruct()
3906 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
3953 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()