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
|
from dataclasses import dataclass
from typing import List, Optional
@dataclass
class Args:
verbose: bool = False
no_standalone: bool = False
no_clang_tidy: bool = False
no_fixits: bool = False
only_standalone: bool = False
dump_ast: bool = False
qt_versions: List[int] = None
exclude: Optional[str] = None
jobs: int = 14
check_names: List[str] = None
cxx_args: str = ""
qt_namespaced: bool = False
clang_version: int = -1
def __post_init__(self):
# avoid mutable default pitfalls
if self.qt_versions is None:
self.qt_versions = [5, 6]
if self.check_names is None:
self.check_names = []
|