File indexing completed on 2024-05-19 15:44:57
0001 /* 0002 SPDX-FileCopyrightText: 2016 Milian Wolff <mail@milianw.de> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #ifndef BENCHCODECOMPLETION_H 0008 #define BENCHCODECOMPLETION_H 0009 0010 #include "codecompletiontestbase.h" 0011 0012 class ClangIndex; 0013 class ClangCodeCompletionModel; 0014 0015 class BenchCodeCompletion : public CodeCompletionTestBase 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 BenchCodeCompletion(); 0021 ~BenchCodeCompletion() override; 0022 0023 private Q_SLOTS: 0024 void benchCodeCompletion_data(); 0025 void benchCodeCompletion(); 0026 0027 private: 0028 QScopedPointer<ClangIndex> m_index; 0029 ClangCodeCompletionModel* m_model; 0030 }; 0031 0032 #endif // BENCHCODECOMPLETION_H