~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/plugins/cpptools/cpphighlightingsupportinternal.cpp

  • 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:
73
73
        if (isQtKeyword(QStringRef(&name)))
74
74
            continue;
75
75
 
76
 
        //Filter out C++ keywords
 
76
        // Filter out C++ keywords
 
77
        // FIXME: Check default values or get from document.
 
78
        LanguageFeatures features;
 
79
        features.cxx11Enabled = true;
 
80
 
77
81
        SimpleLexer tokenize;
78
 
        tokenize.setQtMocRunEnabled(false);
79
 
        tokenize.setObjCEnabled(false);
80
 
        tokenize.setCxx0xEnabled(true);
 
82
        tokenize.setLanguageFeatures(features);
 
83
 
81
84
        const QList<Token> tokens = tokenize(name);
82
85
        if (tokens.length() && (tokens.at(0).isKeyword() || tokens.at(0).isObjCAtKeyword()))
83
86
            continue;
92
95
    LookupContext context(doc, snapshot);
93
96
    return CheckSymbols::go(doc, context, macroUses);
94
97
}
95
 
 
96
 
CppHighlightingSupportInternalFactory::~CppHighlightingSupportInternalFactory()
97
 
{
98
 
}
99
 
 
100
 
CppHighlightingSupport *CppHighlightingSupportInternalFactory::highlightingSupport(TextEditor::ITextEditor *editor)
101
 
{
102
 
    return new CppHighlightingSupportInternal(editor);
103
 
}