~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/libs/3rdparty/cplusplus/Lexer.h

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    Control *control() const { return _control; }
46
46
    TranslationUnit *translationUnit() const;
47
47
 
48
 
    bool qtMocRunEnabled() const;
49
 
    void setQtMocRunEnabled(bool onoff);
50
 
 
51
 
    bool cxx0xEnabled() const;
52
 
    void setCxxOxEnabled(bool onoff);
53
 
 
54
 
    bool objCEnabled() const;
55
 
    void setObjCEnabled(bool onoff);
56
 
 
57
48
    void scan(Token *tok);
58
49
 
59
50
    inline void operator()(Token *tok)
82
73
    bool isIncremental() const;
83
74
    void setIncremental(bool isIncremental);
84
75
 
 
76
    LanguageFeatures languageFeatures() const { return _languageFeatures; }
 
77
    void setLanguageFeatures(LanguageFeatures features) { _languageFeatures = features; }
 
78
 
85
79
private:
86
80
    void scan_helper(Token *tok);
87
81
    void setSource(const char *firstChar, const char *lastChar);
88
 
    static int classify(const char *string, int length, bool q, bool cxx0x);
 
82
    static int classify(const char *string, int length, LanguageFeatures features);
89
83
    static int classifyObjCAtKeyword(const char *s, int n);
90
84
    static int classifyOperator(const char *string, int length);
91
85
 
111
105
        unsigned _scanCommentTokens: 1;
112
106
        unsigned _scanKeywords: 1;
113
107
        unsigned _scanAngleStringLiteralTokens: 1;
114
 
        unsigned _qtMocRunEnabled: 1;
115
 
        unsigned _cxx0xEnabled: 1;
116
 
        unsigned _objCEnabled: 1;
117
108
    };
118
109
 
119
110
    TranslationUnit *_translationUnit;
129
120
        Flags f;
130
121
    };
131
122
    unsigned _currentLine;
 
123
    LanguageFeatures _languageFeatures;
 
124
 
132
125
};
133
126
 
134
127
} // namespace CPlusPlus