forked from qt-creator/qt-creator
Improved ObjC++ support.
This commit is contained in:
@@ -248,6 +248,7 @@ int main(int argc, char *argv[])
|
||||
Control control;
|
||||
StringLiteral *fileId = control.findOrInsertFileName("<stdin>");
|
||||
TranslationUnit unit(&control, fileId);
|
||||
unit.setObjCEnabled(true);
|
||||
unit.setSource(source.constData(), source.size());
|
||||
unit.parse();
|
||||
if (! unit.ast())
|
||||
|
||||
Reference in New Issue
Block a user