summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/builtineditordocumentparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools/builtineditordocumentparser.h')
-rw-r--r--src/plugins/cpptools/builtineditordocumentparser.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/cpptools/builtineditordocumentparser.h b/src/plugins/cpptools/builtineditordocumentparser.h
index b52e6596db..c7993c6a6b 100644
--- a/src/plugins/cpptools/builtineditordocumentparser.h
+++ b/src/plugins/cpptools/builtineditordocumentparser.h
@@ -45,8 +45,7 @@ namespace CppTools {
class CPPTOOLS_EXPORT BuiltinEditorDocumentParser : public BaseEditorDocumentParser
{
-public:
- typedef QSharedPointer<BuiltinEditorDocumentParser> Ptr;
+ Q_OBJECT
public:
BuiltinEditorDocumentParser(const QString &filePath);
@@ -60,6 +59,9 @@ public:
void setReleaseSourceAndAST(bool onoff);
+public:
+ static BuiltinEditorDocumentParser *get(const QString &filePath);
+
private:
void addFileAndDependencies(QSet<QString> *toRemove, const QString &fileName) const;