forked from qt-creator/qt-creator
Added macro expanding events and some initial on the macro highlighting support.
This commit is contained in:
@@ -153,6 +153,11 @@ void Document::appendMacro(const QByteArray ¯oName, const QByteArray &text)
|
||||
_definedMacros += text;
|
||||
}
|
||||
|
||||
void Document::addMacroUse(unsigned offset, unsigned length)
|
||||
{
|
||||
_macroUses.append(Block(offset, offset + length));
|
||||
}
|
||||
|
||||
TranslationUnit *Document::translationUnit() const
|
||||
{
|
||||
return _translationUnit;
|
||||
|
Reference in New Issue
Block a user