File indexing completed on 2024-05-12 04:39:13

0001 /*
0002     SPDX-FileCopyrightText: 2018 Amish K. Naidu <amhndu@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #ifndef HEADERGUARDASSISTANT_H
0008 #define HEADERGUARDASSISTANT_H
0009 
0010 #include <serialization/indexedstring.h>
0011 #include <interfaces/iassistant.h>
0012 
0013 #include <clang-c/Index.h>
0014 
0015 class HeaderGuardAssistant
0016     : public KDevelop::IAssistant
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     HeaderGuardAssistant(const CXTranslationUnit unit, const CXFile file);
0022     virtual ~HeaderGuardAssistant() override = default;
0023 
0024     QString title() const override;
0025 
0026     void createActions() override;
0027 
0028 private:
0029     const int m_line;
0030     const KDevelop::IndexedString m_path;
0031 };
0032 
0033 #endif // HEADERGUARDASSISTANT_H