Lines Matching refs:startLoc

771   SourceLocation startLoc = PID->getLocStart();  in RewritePropertyImplDecl()  local
772 InsertText(startLoc, "// "); in RewritePropertyImplDecl()
773 const char *startBuf = SM->getCharacterData(startLoc); in RewritePropertyImplDecl()
778 startLoc.getLocWithOffset(semiBuf-startBuf+1); in RewritePropertyImplDecl()
903 SourceLocation startLoc = ClassDecl->getLocStart(); in RewriteForwardClassEpilogue() local
904 const char *startBuf = SM->getCharacterData(startLoc); in RewriteForwardClassEpilogue()
907 ReplaceText(startLoc, semiPtr-startBuf+1, typedefString); in RewriteForwardClassEpilogue()
1414 SourceLocation startLoc = S->getLocStart(); in RewriteBreakStmt() local
1417 ReplaceText(startLoc, strlen("break"), buf); in RewriteBreakStmt()
1431 SourceLocation startLoc = S->getLocStart(); in RewriteContinueStmt() local
1434 ReplaceText(startLoc, strlen("continue"), buf); in RewriteContinueStmt()
1479 SourceLocation startLoc = S->getLocStart(); in RewriteObjCForCollectionStmt() local
1480 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCForCollectionStmt()
1533 ReplaceText(startLoc, startCollectionBuf - startBuf, buf); in RewriteObjCForCollectionStmt()
1537 SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf); in RewriteObjCForCollectionStmt()
1643 SourceLocation startLoc = S->getLocStart(); in RewriteObjCSynchronizedStmt() local
1644 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCSynchronizedStmt()
1652 ReplaceText(startLoc, lparenBuf-startBuf+1, buf); in RewriteObjCSynchronizedStmt()
1659 SourceLocation rparenLoc = startLoc.getLocWithOffset(endBuf-startBuf); in RewriteObjCSynchronizedStmt()
1669 startLoc = S->getSynchBody()->getLocEnd(); in RewriteObjCSynchronizedStmt()
1670 startBuf = SM->getCharacterData(startLoc); in RewriteObjCSynchronizedStmt()
1673 SourceLocation lastCurlyLoc = startLoc; in RewriteObjCSynchronizedStmt()
1744 SourceLocation startLoc = S->getLocStart(); in RewriteTryReturnStmts() local
1745 const char *startBuf = SM->getCharacterData(startLoc); in RewriteTryReturnStmts()
1748 SourceLocation onePastSemiLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1); in RewriteTryReturnStmts()
1753 ReplaceText(startLoc, 6, buf); in RewriteTryReturnStmts()
1765 SourceLocation startLoc = S->getLocStart(); in RewriteSyncReturnStmts() local
1766 const char *startBuf = SM->getCharacterData(startLoc); in RewriteSyncReturnStmts()
1770 SourceLocation onePastSemiLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1); in RewriteSyncReturnStmts()
1777 ReplaceText(startLoc, 6, buf); in RewriteSyncReturnStmts()
1784 SourceLocation startLoc = S->getLocStart(); in RewriteObjCTryStmt() local
1785 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCTryStmt()
1798 ReplaceText(startLoc, 4, buf); in RewriteObjCTryStmt()
1800 startLoc = S->getTryBody()->getLocEnd(); in RewriteObjCTryStmt()
1801 startBuf = SM->getCharacterData(startLoc); in RewriteObjCTryStmt()
1805 SourceLocation lastCurlyLoc = startLoc; in RewriteObjCTryStmt()
1807 startLoc = startLoc.getLocWithOffset(1); in RewriteObjCTryStmt()
1815 InsertText(startLoc, buf); in RewriteObjCTryStmt()
1831 startLoc = Catch->getLocStart(); in RewriteObjCTryStmt()
1832 startBuf = SM->getCharacterData(startLoc); in RewriteObjCTryStmt()
1848 Rewrite.ReplaceText(startLoc, bodyBuf-startBuf+1, buf); in RewriteObjCTryStmt()
1853 ReplaceText(startLoc, lParenLoc-startBuf+1, buf); in RewriteObjCTryStmt()
1862 ReplaceText(startLoc, lParenLoc-startBuf+1, buf); in RewriteObjCTryStmt()
1902 startLoc = finalStmt->getLocStart(); in RewriteObjCTryStmt()
1903 startBuf = SM->getCharacterData(startLoc); in RewriteObjCTryStmt()
1906 ReplaceText(startLoc, 8, "/* @finally */"); in RewriteObjCTryStmt()
1909 SourceLocation startLoc = body->getLocStart(); in RewriteObjCTryStmt() local
1911 assert(*SM->getCharacterData(startLoc) == '{' && in RewriteObjCTryStmt()
1916 startLoc = startLoc.getLocWithOffset(1); in RewriteObjCTryStmt()
1917 InsertText(startLoc, " if (!_rethrow) objc_exception_try_exit(&_stack);\n"); in RewriteObjCTryStmt()
1952 SourceLocation startLoc = S->getLocStart(); in RewriteObjCThrowStmt() local
1953 const char *startBuf = SM->getCharacterData(startLoc); in RewriteObjCThrowStmt()
1967 ReplaceText(startLoc, wBuf-startBuf+1, buf); in RewriteObjCThrowStmt()
1971 SourceLocation semiLoc = startLoc.getLocWithOffset(semiBuf-startBuf); in RewriteObjCThrowStmt()
2202 SourceLocation startLoc; in RewriteTypeOfDecl() local
2204 startLoc = ECE->getLParenLoc(); in RewriteTypeOfDecl()
2206 startLoc = E->getLocStart(); in RewriteTypeOfDecl()
2207 startLoc = SM->getExpansionLoc(startLoc); in RewriteTypeOfDecl()
2208 const char *endBuf = SM->getCharacterData(startLoc); in RewriteTypeOfDecl()
4271 SourceLocation startLoc; in RewriteByRefVar() local
4274 startLoc = ECE->getLParenLoc(); in RewriteByRefVar()
4276 startLoc = E->getLocStart(); in RewriteByRefVar()
4277 startLoc = SM->getExpansionLoc(startLoc); in RewriteByRefVar()
4278 endBuf = SM->getCharacterData(startLoc); in RewriteByRefVar()
4305 const char *startInitializerBuf = SM->getCharacterData(startLoc); in RewriteByRefVar()
4309 startLoc.getLocWithOffset(semiBuf-startInitializerBuf); in RewriteByRefVar()
4634 SourceLocation startLoc = MessExpr->getLocStart(); in RewriteFunctionBodyOrGlobalInitializer()
4637 const char *startBuf = SM->getCharacterData(startLoc); in RewriteFunctionBodyOrGlobalInitializer()