• Home
  • Raw
  • Download

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()
1171 SourceLocation LocStart = OMD->getLocStart(); in RewriteImplementationDecl() local
1174 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1176 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
1182 SourceLocation LocStart = OMD->getLocStart(); in RewriteImplementationDecl() local
1185 const char *startBuf = SM->getCharacterData(LocStart); in RewriteImplementationDecl()
1187 ReplaceText(LocStart, endBuf-startBuf, ResultStr); in RewriteImplementationDecl()
3103 SourceLocation LocStart = CDecl->getLocStart(); in RewriteObjCInternalStruct() local
3106 const char *startBuf = SM->getCharacterData(LocStart); in RewriteObjCInternalStruct()
3114 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
3156 ReplaceText(LocStart, endHeader-startBuf, Result); in RewriteObjCInternalStruct()
3159 ReplaceText(LocStart, cursor-startBuf, Result); in RewriteObjCInternalStruct()
3170 LocStart.getLocWithOffset(cursor-startBuf+1); in RewriteObjCInternalStruct()
3178 SourceLocation atLoc = LocStart.getLocWithOffset(cursor-startBuf); in RewriteObjCInternalStruct()
3195 SourceLocation atLoc = LocStart.getLocWithOffset(cursor-startBuf); in RewriteObjCInternalStruct()
3199 atLoc = LocStart.getLocWithOffset(cursor-startBuf); in RewriteObjCInternalStruct()
3202 SourceLocation caretLoc = LocStart.getLocWithOffset(cursor-startBuf); in RewriteObjCInternalStruct()
3216 ReplaceText(LocStart, endBuf-startBuf, Result); in RewriteObjCInternalStruct()
3899 SourceLocation LocStart = CE->getLParenLoc(); in RewriteCastExpr() local
3903 if (LocStart.isInvalid()) in RewriteCastExpr()
3906 if (!Rewriter::isRewritable(LocStart) || !Rewriter::isRewritable(LocEnd)) in RewriteCastExpr()
3909 const char *startBuf = SM->getCharacterData(LocStart); in RewriteCastExpr()
3919 ReplaceText(LocStart, endBuf-startBuf+1, TypeAsString); in RewriteCastExpr()
3929 LocStart = LocStart.getLocWithOffset(argPtr-startBuf); in RewriteCastExpr()
3930 ReplaceText(LocStart, 1, "*"); in RewriteCastExpr()