summaryrefslogtreecommitdiff
path: root/src/plugins/cppcheck/cppcheckoptions.h
blob: 84fbf483bbb680beb31c7424558843cc056eec13 (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
37
38
// 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 CppcheckTool;
class CppcheckTrigger;

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

    std::function<void(QWidget *widget)> layouter();

    Utils::StringAspect binary;
    Utils::BoolAspect warning;
    Utils::BoolAspect style;
    Utils::BoolAspect performance;
    Utils::BoolAspect portability;
    Utils::BoolAspect information;
    Utils::BoolAspect unusedFunction;
    Utils::BoolAspect missingInclude;
    Utils::BoolAspect inconclusive;
    Utils::BoolAspect forceDefines;

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

} // Cppcheck::Internal