Lines Matching refs:LocStart
731 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() local
748 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
947 SourceLocation LocStart = Method->getLocStart(); in RewriteMethodDeclaration() local
951 SM->getExpansionLineNumber(LocStart)) { in RewriteMethodDeclaration()
952 InsertText(LocStart, "#if 0\n"); in RewriteMethodDeclaration()
955 InsertText(LocStart, "// "); in RewriteMethodDeclaration()
967 SourceLocation LocStart = CatDecl->getLocStart(); in RewriteCategoryDecl() local
970 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
985 SourceLocation LocStart = PDecl->getLocStart(); in RewriteProtocolDecl() local
989 ReplaceText(LocStart, 0, "// "); in RewriteProtocolDecl()
1003 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl()
1007 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1012 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1020 SourceLocation LocStart = (*D.begin())->getLocStart(); in RewriteForwardProtocolDecl() local
1021 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1024 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1029 SourceLocation LocStart = DG[0]->getLocStart(); in RewriteForwardProtocolDecl() local
1030 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1033 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1172 SourceLocation LocStart = OMD->getLocStart(); in RewriteImplementationDecl() local
1175 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1177 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
1183 SourceLocation LocStart = OMD->getLocStart(); in RewriteImplementationDecl() local
1186 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1188 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
3095 SourceLocation LocStart = CDecl->getLocStart(); in RewriteObjCInternalStruct() local
3098 const char *startBuf = SM->getCharacterData(LocStart); in RewriteObjCInternalStruct()
3106 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
3148 ReplaceText(LocStart, endHeader-startBuf, Result); in RewriteObjCInternalStruct()
3151 ReplaceText(LocStart, cursor-startBuf, Result); in RewriteObjCInternalStruct()
3162 LocStart.getLocWithOffset(cursor-startBuf+1); in RewriteObjCInternalStruct()
3170 SourceLocation atLoc = LocStart.getLocWithOffset(cursor-startBuf); in RewriteObjCInternalStruct()
3187 SourceLocation atLoc = LocStart.getLocWithOffset(cursor-startBuf); in RewriteObjCInternalStruct()
3191 atLoc = LocStart.getLocWithOffset(cursor-startBuf); in RewriteObjCInternalStruct()
3194 SourceLocation caretLoc = LocStart.getLocWithOffset(cursor-startBuf); in RewriteObjCInternalStruct()
3208 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
3886 SourceLocation LocStart = CE->getLParenLoc(); in RewriteCastExpr() local
3890 if (LocStart.isInvalid()) in RewriteCastExpr()
3893 if (!Rewriter::isRewritable(LocStart) || !Rewriter::isRewritable(LocEnd)) in RewriteCastExpr()
3896 const char *startBuf = SM->getCharacterData(LocStart); in RewriteCastExpr()
3906 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString); in RewriteCastExpr()
3916 LocStart = LocStart.getLocWithOffset(argPtr-startBuf); in RewriteCastExpr()
3917 ReplaceText(LocStart, 1, "*"); in RewriteCastExpr()