Warning, file /kdevelop/kdevelop/kdevplatform/language/backgroundparser/tests/testparsejob.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     SPDX-FileCopyrightText: 2012 Sven Brauch <svenbrauch@googlemail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDEVPLATFORM_TESTPARSEJOB_H
0008 #define KDEVPLATFORM_TESTPARSEJOB_H
0009 
0010 #include "language/backgroundparser/parsejob.h"
0011 
0012 #include <functional>
0013 
0014 using namespace KDevelop;
0015 
0016 class TestParseJob
0017     : public KDevelop::ParseJob
0018 {
0019     Q_OBJECT
0020 
0021 public:
0022     TestParseJob(const IndexedString& url, ILanguageSupport* languageSupport);
0023     void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override;
0024     ControlFlowGraph* controlFlowGraph() override;
0025     DataAccessRepository* dataAccessInformation() override;
0026 
0027     int duration_ms;
0028     std::function<void( const IndexedString& )> run_callback;
0029 };
0030 
0031 #endif