Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/clang/include/clang/Basic/DiagnosticOptions.def
Line
Count
Source
1
182k
//===--- DiagOptions.def - Diagnostic option database ------------- C++ -*-===//
2
182k
//
3
182k
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
182k
// See https://llvm.org/LICENSE.txt for license information.
5
182k
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
182k
//
7
182k
//===----------------------------------------------------------------------===//
8
182k
//
9
182k
// This file defines the diagnostic options. Users of this file
10
182k
// must define the DIAGOPT macro to make use of this information.
11
182k
// Optionally, the user may also define ENUM_DIAGOPT (for options
12
182k
// that have enumeration type and VALUE_DIAGOPT (for options that
13
182k
// describe a value rather than a flag). The SEMANTIC_* variants of these macros
14
182k
// indicate options that affect the processing of the program, rather than
15
182k
// simply the output.
16
182k
//
17
182k
//===----------------------------------------------------------------------===//
18
#ifndef DIAGOPT
19
#  error Define the DIAGOPT macro to handle language options
20
#endif
21
22
#ifndef VALUE_DIAGOPT
23
1.64M
#  define VALUE_DIAGOPT(Name, Bits, Default) \
24
1.64M
DIAGOPT(Name, Bits, Default)
25
#endif
26
27
#ifndef ENUM_DIAGOPT
28
#  define ENUM_DIAGOPT(Name, Type, Bits, Default) \
29
DIAGOPT(Name, Bits, Default)
30
#endif
31
32
182k
#ifndef SEMANTIC_DIAGOPT
33
182k
#  define SEMANTIC_DIAGOPT(Name, Bits, Default) DIAGOPT(Name, Bits, Default)
34
182k
#endif
35
182k
36
182k
#ifndef SEMANTIC_VALUE_DIAGOPT
37
182k
#  define SEMANTIC_VALUE_DIAGOPT(Name, Bits, Default) \
38
182k
     VALUE_DIAGOPT(Name, Bits, Default)
39
182k
#endif
40
182k
41
182k
#ifndef SEMANTIC_ENUM_DIAGOPT
42
182k
#  define SEMANTIC_ENUM_DIAGOPT(Name, Type, Bits, Default) \
43
182k
     ENUM_DIAGOPT(Name, Type, Bits, Default)
44
182k
#endif
45
182k
46
182k
SEMANTIC_DIAGOPT(IgnoreWarnings, 1, 0)   /// -w
47
182k
DIAGOPT(NoRewriteMacros, 1, 0)  /// -Wno-rewrite-macros
48
182k
DIAGOPT(Pedantic, 1, 0)         /// -pedantic
49
182k
DIAGOPT(PedanticErrors, 1, 0)   /// -pedantic-errors
50
182k
DIAGOPT(ShowColumn, 1, 1)       /// Show column number on diagnostics.
51
182k
DIAGOPT(ShowLocation, 1, 1)     /// Show source location information.
52
182k
DIAGOPT(AbsolutePath, 1, 0)     /// Use absolute paths.
53
182k
DIAGOPT(ShowCarets, 1, 1)       /// Show carets in diagnostics.
54
182k
DIAGOPT(ShowFixits, 1, 1)       /// Show fixit information.
55
182k
DIAGOPT(ShowSourceRanges, 1, 0) /// Show source ranges in numeric form.
56
182k
DIAGOPT(ShowParseableFixits, 1, 0) /// Show machine parseable fix-its.
57
182k
DIAGOPT(ShowPresumedLoc, 1, 0)  /// Show presumed location for diagnostics.
58
182k
DIAGOPT(ShowOptionNames, 1, 0)  /// Show the option name for mappable
59
182k
                                /// diagnostics.
60
182k
DIAGOPT(ShowNoteIncludeStack, 1, 0) /// Show include stacks for notes.
61
182k
VALUE_DIAGOPT(ShowCategories, 2, 0) /// Show categories: 0 -> none, 1 -> Number,
62
182k
                                    /// 2 -> Full Name.
63
182k
64
182k
ENUM_DIAGOPT(Format, TextDiagnosticFormat, 2, Clang) /// Format for diagnostics:
65
182k
66
182k
DIAGOPT(ShowColors, 1, 0)       /// Show diagnostics with ANSI color sequences.
67
182k
ENUM_DIAGOPT(ShowOverloads, OverloadsShown, 1,
68
182k
             Ovl_All)    /// Overload candidates to show.
69
182k
DIAGOPT(VerifyDiagnostics, 1, 0) /// Check that diagnostics match the expected
70
182k
                                 /// diagnostics, indicated by markers in the
71
182k
                                 /// input source file.
72
182k
ENUM_DIAGOPT(VerifyIgnoreUnexpected, DiagnosticLevelMask, 4,
73
182k
             DiagnosticLevelMask::None) /// Ignore unexpected diagnostics of
74
182k
                                        /// the specified levels when using
75
182k
                                        /// -verify.
76
182k
DIAGOPT(ElideType, 1, 0)         /// Elide identical types in template diffing
77
182k
DIAGOPT(ShowTemplateTree, 1, 0)  /// Print a template tree when diffing
78
182k
DIAGOPT(CLFallbackMode, 1, 0)    /// Format for clang-cl fallback mode
79
182k
80
182k
VALUE_DIAGOPT(ErrorLimit, 32, 0)           /// Limit # errors emitted.
81
182k
/// Limit depth of macro expansion backtrace.
82
182k
VALUE_DIAGOPT(MacroBacktraceLimit, 32, DefaultMacroBacktraceLimit)
83
182k
/// Limit depth of instantiation backtrace.
84
182k
VALUE_DIAGOPT(TemplateBacktraceLimit, 32, DefaultTemplateBacktraceLimit)
85
182k
/// Limit depth of constexpr backtrace.
86
182k
VALUE_DIAGOPT(ConstexprBacktraceLimit, 32, DefaultConstexprBacktraceLimit)
87
182k
/// Limit number of times to perform spell checking.
88
182k
VALUE_DIAGOPT(SpellCheckingLimit, 32, DefaultSpellCheckingLimit)
89
182k
/// Limit number of lines shown in a snippet.
90
182k
VALUE_DIAGOPT(SnippetLineLimit, 32, DefaultSnippetLineLimit)
91
182k
92
182k
VALUE_DIAGOPT(TabStop, 32, DefaultTabStop) /// The distance between tab stops.
93
182k
/// Column limit for formatting message diagnostics, or 0 if unused.
94
182k
VALUE_DIAGOPT(MessageLength, 32, 0)
95
182k
96
182k
#undef DIAGOPT
97
182k
#undef ENUM_DIAGOPT
98
182k
#undef VALUE_DIAGOPT
99
182k
#undef SEMANTIC_DIAGOPT
100
182k
#undef SEMANTIC_ENUM_DIAGOPT
101
182k
#undef SEMANTIC_VALUE_DIAGOPT