forked from checkedc/checkedc-clang
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path3CGlobalOptions.h
More file actions
77 lines (51 loc) · 1.64 KB
/
3CGlobalOptions.h
File metadata and controls
77 lines (51 loc) · 1.64 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//=--3CGlobalOptions.h--------------------------------------------*- C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Tool options that are visible to all the components.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_3C_3CGLOBALOPTIONS_H
#define LLVM_CLANG_3C_3CGLOBALOPTIONS_H
#include "llvm/Support/CommandLine.h"
// Options used to initialize 3C tool.
//
// See clang/docs/checkedc/3C/clang-tidy.md#_3c-name-prefix
// NOLINTNEXTLINE(readability-identifier-naming)
struct _3COptions {
bool DumpIntermediate;
bool Verbose;
std::string OutputPostfix;
std::string OutputDir;
std::string ConstraintOutputJson;
bool DumpStats;
std::string StatsOutputJson;
std::string WildPtrInfoJson;
std::string PerWildPtrInfoJson;
std::vector<std::string> AllocatorFunctions;
bool HandleVARARGS;
bool EnablePropThruIType;
std::string BaseDir;
bool AllowSourcesOutsideBaseDir;
bool AllTypes;
bool AddCheckedRegions;
bool EnableCCTypeChecker;
bool WarnRootCause;
bool WarnAllRootCause;
#ifdef FIVE_C
bool RemoveItypes;
bool ForceItypes;
#endif
bool DumpUnwritableChanges;
bool AllowUnwritableChanges;
bool AllowRewriteFailures;
bool ItypesForExtern;
bool InferTypesForUndefs;
};
// NOLINTNEXTLINE(readability-identifier-naming)
extern struct _3COptions _3COpts;
#endif // LLVM_CLANG_3C_3CGLOBALOPTIONS_H