Fixes: Enable ObjC support.

This commit is contained in:
Roberto Raggi
2009-02-04 11:36:17 +01:00
committed by Roberto Raggi
parent 88b4dd35dc
commit 56b48c2362
2 changed files with 4 additions and 1 deletions

View File

@@ -109,6 +109,7 @@ Document::Document(const QString &fileName)
localFileName.size());
_translationUnit = new TranslationUnit(_control, fileId);
_translationUnit->setQtMocRunEnabled(true);
_translationUnit->setObjCEnabled(true);
(void) _control->switchTranslationUnit(_translationUnit);
}

View File

@@ -59,7 +59,9 @@ SimpleLexer::SimpleLexer()
_skipComments(false),
_qtMocRunEnabled(true),
_objCEnabled(false)
{ }
{
setObjCEnabled(true);
}
SimpleLexer::~SimpleLexer()
{ }