| 1677 | |
| 1678 | |
| 1679 | bool ClassHasOpenBrace(LPTSTR aBuf, size_t aBufLength, LPTSTR aNextBuf, size_t &aNextBufLength) |
| 1680 | { |
| 1681 | if (aBuf[aBufLength - 1] == '{') // Brace on same line (OTB). |
| 1682 | { |
| 1683 | rtrim(aBuf, aBufLength - 1); |
| 1684 | return true; |
| 1685 | } |
| 1686 | if (*aNextBuf == '{') // Brace on next line. |
| 1687 | { |
| 1688 | // Remove '{' from aNextBuf since ACT_BLOCK_END is unwanted in this context. |
| 1689 | RemoveBufChar0(aNextBuf, aNextBufLength); |
| 1690 | return true; |
| 1691 | } |
| 1692 | return false; |
| 1693 | } |
| 1694 | |
| 1695 | |
| 1696 |
no test coverage detected