forked from qt-creator/qt-creator
Clang: clean up unit handling.
- Use a QSharedPointer instead of an explicitly shared pointer. - Remove the LiveUnitManager. Change-Id: I05bf32c1f77c17f42ee1da39f1353cff580fa6eb Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
2251958375
commit
a4b6e35ac4
@@ -46,10 +46,6 @@
|
||||
|
||||
namespace ClangCodeModel {
|
||||
|
||||
namespace Internal {
|
||||
class Unit;
|
||||
}
|
||||
|
||||
class CLANG_EXPORT SemanticMarker
|
||||
{
|
||||
Q_DISABLE_COPY(SemanticMarker)
|
||||
@@ -78,11 +74,11 @@ public:
|
||||
QList<SourceMarker> sourceMarkersInRange(unsigned firstLine,
|
||||
unsigned lastLine);
|
||||
|
||||
Internal::Unit unit() const;
|
||||
Internal::Unit::Ptr unit() const;
|
||||
|
||||
private:
|
||||
mutable QMutex m_mutex;
|
||||
QScopedPointer<Internal::Unit> m_unit;
|
||||
Internal::Unit::Ptr m_unit;
|
||||
};
|
||||
|
||||
} // namespace ClangCodeModel
|
||||
|
||||
Reference in New Issue
Block a user