diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-08 15:32:37 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-02-08 15:41:18 +0100 |
commit | 1af05166d956526728db448cfe34a98ee0e74e8f (patch) | |
tree | 39aabcd58c060040fe413d4b02ac1250f40a2c72 /src/shared/cplusplus/Keywords.cpp | |
parent | bd1b9e6ccb3fb9c1e02df6644e2e50e4e0c5e5ee (diff) | |
download | qt-creator-1af05166d956526728db448cfe34a98ee0e74e8f.tar.gz |
Removed Q_DECLARE_FLAGS parsing, leaving it to the CPP to expand it.
Diffstat (limited to 'src/shared/cplusplus/Keywords.cpp')
-rw-r--r-- | src/shared/cplusplus/Keywords.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/shared/cplusplus/Keywords.cpp b/src/shared/cplusplus/Keywords.cpp index 414221efa6..e1e45373ea 100644 --- a/src/shared/cplusplus/Keywords.cpp +++ b/src/shared/cplusplus/Keywords.cpp @@ -1283,41 +1283,6 @@ static inline int classify13(const char *s, bool) { return T_IDENTIFIER; } -static inline int classify15(const char *s, bool) { - if (s[0] == 'Q') { - if (s[1] == '_') { - if (s[2] == 'D') { - if (s[3] == 'E') { - if (s[4] == 'C') { - if (s[5] == 'L') { - if (s[6] == 'A') { - if (s[7] == 'R') { - if (s[8] == 'E') { - if (s[9] == '_') { - if (s[10] == 'F') { - if (s[11] == 'L') { - if (s[12] == 'A') { - if (s[13] == 'G') { - if (s[14] == 'S') { - return T_Q_DECLARE_FLAGS; - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - return T_IDENTIFIER; -} - static inline int classify16(const char *s, bool) { if (s[0] == 'r') { if (s[1] == 'e') { @@ -1369,7 +1334,6 @@ int Lexer::classify(const char *s, int n, bool q) { case 11: return classify11(s, q); case 12: return classify12(s, q); case 13: return classify13(s, q); - case 15: return classify15(s, q); case 16: return classify16(s, q); default: return T_IDENTIFIER; } // switch |