C++ editor: Better control to stop the semantic highlighter

Done-by: Roberto Raggi
Reviewed-by: Leandro Melo
Reviewed-by: mae
This commit is contained in:
Leandro Melo
2011-02-04 16:26:10 +01:00
parent 3c8ff2bee4
commit cb9cc8dca6
5 changed files with 34 additions and 1 deletions

View File

@@ -244,6 +244,7 @@ public:
, objcRetainId(0)
, objcCopyId(0)
, objcNonatomicId(0)
, processor(0)
{}
~Data()
@@ -531,6 +532,7 @@ public:
const Identifier *objcRetainId;
const Identifier *objcCopyId;
const Identifier *objcNonatomicId;
TopLevelDeclarationProcessor *processor;
};
Control::Control()
@@ -809,3 +811,13 @@ void Control::squeeze()
{
d->numericLiterals.reset();
}
TopLevelDeclarationProcessor *Control::topLevelDeclarationProcessor() const
{
return d->processor;
}
void Control::setTopLevelDeclarationProcessor(CPlusPlus::TopLevelDeclarationProcessor *processor)
{
d->processor = processor;
}