Lines Matching refs:LocStart
732 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() local
749 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
951 SourceLocation LocStart = Method->getBeginLoc(); in RewriteMethodDeclaration() local
955 SM->getExpansionLineNumber(LocStart)) { in RewriteMethodDeclaration()
956 InsertText(LocStart, "#if 0\n"); in RewriteMethodDeclaration()
959 InsertText(LocStart, "// "); in RewriteMethodDeclaration()
971 SourceLocation LocStart = CatDecl->getBeginLoc(); in RewriteCategoryDecl() local
974 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
989 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl() local
993 ReplaceText(LocStart, 0, "// "); in RewriteProtocolDecl()
1007 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl()
1011 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1016 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1024 SourceLocation LocStart = (*D.begin())->getBeginLoc(); in RewriteForwardProtocolDecl() local
1025 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1028 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1033 SourceLocation LocStart = DG[0]->getBeginLoc(); in RewriteForwardProtocolDecl() local
1034 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1037 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1179 SourceLocation LocStart = OMD->getBeginLoc(); in RewriteImplementationDecl() local
1182 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1184 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
1192 SourceLocation LocStart = OMD->getBeginLoc(); in RewriteImplementationDecl() local
1195 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1197 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
3108 SourceLocation LocStart = CDecl->getBeginLoc(); in RewriteObjCInternalStruct() local
3111 const char *startBuf = SM->getCharacterData(LocStart); in RewriteObjCInternalStruct()
3119 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
3161 ReplaceText(LocStart, endHeader-startBuf, Result); in RewriteObjCInternalStruct()
3164 ReplaceText(LocStart, cursor-startBuf, Result); in RewriteObjCInternalStruct()
3175 LocStart.getLocWithOffset(cursor-startBuf+1); in RewriteObjCInternalStruct()
3183 SourceLocation atLoc = LocStart.getLocWithOffset(cursor-startBuf); in RewriteObjCInternalStruct()
3200 SourceLocation atLoc = LocStart.getLocWithOffset(cursor-startBuf); in RewriteObjCInternalStruct()
3204 atLoc = LocStart.getLocWithOffset(cursor-startBuf); in RewriteObjCInternalStruct()
3207 SourceLocation caretLoc = LocStart.getLocWithOffset(cursor-startBuf); in RewriteObjCInternalStruct()
3221 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
3897 SourceLocation LocStart = CE->getLParenLoc(); in RewriteCastExpr() local
3901 if (LocStart.isInvalid()) in RewriteCastExpr()
3904 if (!Rewriter::isRewritable(LocStart) || !Rewriter::isRewritable(LocEnd)) in RewriteCastExpr()
3907 const char *startBuf = SM->getCharacterData(LocStart); in RewriteCastExpr()
3917 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString); in RewriteCastExpr()
3927 LocStart = LocStart.getLocWithOffset(argPtr-startBuf); in RewriteCastExpr()
3928 ReplaceText(LocStart, 1, "*"); in RewriteCastExpr()