Checks if the current line starts with the preprocessor directive used usually to introduce documentation comments: #ifdef DOC. This method is supposed to be called if the line has been recognized as a preprocessor directive already.
| 91 | // supposed to be called if the line has been recognized as a preprocessor |
| 92 | // directive already. |
| 93 | static bool IsDocCommentStart(StyleContext &sc) { |
| 94 | // Check the line back to its start only if the end looks promising. |
| 95 | if (sc.LengthCurrent() == 10 && !IsAlphaNumeric(sc.ch)) { |
| 96 | char s[11]; |
| 97 | sc.GetCurrentLowered(s, sizeof(s)); |
| 98 | return strcmp(s, "#ifdef doc") == 0; |
| 99 | } |
| 100 | return false; |
| 101 | } |
| 102 | |
| 103 | // Checks if the current line starts with the preprocessor directive that |
| 104 | // is complementary to the #ifdef DOC start: #endif. This method is supposed |
no test coverage detected