CppHighlighter: highlight macro references.

Change-Id: I7c90957aa67e03a109af0a722160d4e1c759d716
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
Francois Ferrand
2010-11-03 11:02:25 +01:00
committed by Leandro Melo
parent 85ce5aba62
commit 85609aff8e
9 changed files with 101 additions and 61 deletions

View File

@@ -72,7 +72,7 @@ public:
return future;
}
static Future go(Document::Ptr doc, const LookupContext &context);
static Future go(Document::Ptr doc, const LookupContext &context, const QList<Use> &macroUses);
static QMap<int, QVector<Use> > chunks(const QFuture<Use> &future, int from, int to)
{
@@ -94,7 +94,7 @@ protected:
using ASTVisitor::visit;
using ASTVisitor::endVisit;
CheckSymbols(Document::Ptr doc, const LookupContext &context);
CheckSymbols(Document::Ptr doc, const LookupContext &context, const QList<Use> &macroUses);
bool hasVirtualDestructor(Class *klass) const;
bool hasVirtualDestructor(ClassOrNamespace *binding) const;
@@ -174,6 +174,7 @@ private:
QList<AST *> _astStack;
QVector<Use> _usages;
unsigned _lineOfLastUsage;
QList<Use> _macroUses;
};
} // namespace CPlusPlus