aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/beautifier/clangformat/clangformatsettings.h
blob: 64f2b4b9bbd555dc15b5cf87a1091f5f08e829c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (C) 2016 Lorenz Haas
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "../abstractsettings.h"

namespace Beautifier::Internal {

class ClangFormatSettings : public AbstractSettings
{
public:
    explicit ClangFormatSettings();

    void createDocumentationFile() const override;

    QStringList completerWords() override;

    Utils::BoolAspect usePredefinedStyle{this};
    Utils::SelectionAspect predefinedStyle{this};
    Utils::SelectionAspect fallbackStyle{this};
    Utils::StringAspect customStyle{this};

    QString styleFileName(const QString &key) const override;

private:
    void readStyles() override;
};

class ClangFormatOptionsPage final : public Core::IOptionsPage
{
public:
    explicit ClangFormatOptionsPage(ClangFormatSettings *settings);
};

} // Beautifier::Internal