Lines Matching refs:LocStart
732 SourceLocation LocStart = SM->getLocForStartOfFile(MainFileID); in RewriteInclude() local
749 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
948 SourceLocation LocStart = Method->getBeginLoc(); in RewriteMethodDeclaration() local
952 SM->getExpansionLineNumber(LocStart)) { in RewriteMethodDeclaration()
953 InsertText(LocStart, "#if 0\n"); in RewriteMethodDeclaration()
956 InsertText(LocStart, "// "); in RewriteMethodDeclaration()
968 SourceLocation LocStart = CatDecl->getBeginLoc(); in RewriteCategoryDecl() local
971 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
986 SourceLocation LocStart = PDecl->getBeginLoc(); in RewriteProtocolDecl() local
990 ReplaceText(LocStart, 0, "// "); in RewriteProtocolDecl()
1004 const char *startBuf = SM->getCharacterData(LocStart); in RewriteProtocolDecl()
1008 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1013 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1021 SourceLocation LocStart = (*D.begin())->getBeginLoc(); in RewriteForwardProtocolDecl() local
1022 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1025 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1030 SourceLocation LocStart = DG[0]->getBeginLoc(); in RewriteForwardProtocolDecl() local
1031 if (LocStart.isInvalid()) in RewriteForwardProtocolDecl()
1034 ReplaceText(LocStart, 0, "// "); in RewriteForwardProtocolDecl()
1173 SourceLocation LocStart = OMD->getBeginLoc(); in RewriteImplementationDecl() local
1176 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1178 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
1184 SourceLocation LocStart = OMD->getBeginLoc(); in RewriteImplementationDecl() local
1187 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1189 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
3095 SourceLocation LocStart = CDecl->getBeginLoc(); 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()
3885 SourceLocation LocStart = CE->getLParenLoc(); in RewriteCastExpr() local
3889 if (LocStart.isInvalid()) in RewriteCastExpr()
3892 if (!Rewriter::isRewritable(LocStart) || !Rewriter::isRewritable(LocEnd)) in RewriteCastExpr()
3895 const char *startBuf = SM->getCharacterData(LocStart); in RewriteCastExpr()
3905 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString); in RewriteCastExpr()
3915 LocStart = LocStart.getLocWithOffset(argPtr-startBuf); in RewriteCastExpr()
3916 ReplaceText(LocStart, 1, "*"); in RewriteCastExpr()