forked from qt-creator/qt-creator
Clang: Classify *.{moc,qdoc} as CXXSource
This leads to the "-x c++" arguments to libclang for these file types and thus avoids crashes of libclang 3.6. Task-number: QTCREATORBUG-16140 Change-Id: I6141615a1b0b7ad92d7151ad58c304eaf99fb4f3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -64,6 +64,10 @@ ProjectFile::Kind ProjectFile::classify(const QString &file)
|
||||
return ObjCSource;
|
||||
if (mt == QLatin1String(CppTools::Constants::OBJECTIVE_CPP_SOURCE_MIMETYPE))
|
||||
return ObjCXXSource;
|
||||
if (mt == QLatin1String(CppTools::Constants::QDOC_MIMETYPE))
|
||||
return CXXSource;
|
||||
if (mt == QLatin1String(CppTools::Constants::MOC_MIMETYPE))
|
||||
return CXXSource;
|
||||
return Unclassified;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user