| 73 | } |
| 74 | |
| 75 | static bool isCharLiteral(const std::string &s) |
| 76 | { |
| 77 | // char literal patterns can include 'a', '\t', '\000', '\xff', 'abcd', and maybe '' |
| 78 | // This only checks for the surrounding '' but doesn't parse the content. |
| 79 | return s.size() > 1 && (s[0]=='\'') && (*s.rbegin()=='\''); |
| 80 | } |
| 81 | |
| 82 | static const simplecpp::TokenString DEFINE("define"); |
| 83 | static const simplecpp::TokenString UNDEF("undef"); |