aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppcheck/cppcheckoptions.h
blob: eb3e1c7ddbf1eb8baaee979b77633c39b32c69ad (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
// Copyright (C) 2018 Sergey Morozov
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <coreplugin/dialogs/ioptionspage.h>

namespace Cppcheck::Internal {

class CppcheckOptions final : public Core::PagedSettings
{
public:
    CppcheckOptions();

    std::function<Layouting::LayoutItem()> layouter();

    Utils::FilePathAspect binary{this};
    Utils::BoolAspect warning{this};
    Utils::BoolAspect style{this};
    Utils::BoolAspect performance{this};
    Utils::BoolAspect portability{this};
    Utils::BoolAspect information{this};
    Utils::BoolAspect unusedFunction{this};
    Utils::BoolAspect missingInclude{this};
    Utils::BoolAspect inconclusive{this};
    Utils::BoolAspect forceDefines{this};

    Utils::StringAspect customArguments{this};
    Utils::StringAspect ignoredPatterns{this};
    Utils::BoolAspect showOutput{this};
    Utils::BoolAspect addIncludePaths{this};
    Utils::BoolAspect guessArguments{this};
};

} // Cppcheck::Internal