|
10 | 10 | // |
11 | 11 | //===----------------------------------------------------------------------===// |
12 | 12 |
|
13 | | -#ifndef LLVM_ADT_STRINGREF_H |
| 13 | +#if !defined(LLVM_ADT_STRINGREF_H) || !defined(LLVM_CLANG_STATICANALYZER_CORE_ANALYZEROPTIONS_H) |
14 | 14 | #error This .def file is expected to be included in translation units where \ |
15 | | -"llvm/ADT/StringRef.h" is already included! |
| 15 | +"llvm/ADT/StringRef.h" and "clang/StaticAnalyzer/Core/AnalyzerOptions.h" are \ |
| 16 | +already included! |
16 | 17 | #endif |
17 | 18 |
|
18 | 19 | #ifdef ANALYZER_OPTION |
@@ -216,13 +217,13 @@ ANALYZER_OPTION( |
216 | 217 | "hardware. Set 0 for unlimited.", 0) |
217 | 218 |
|
218 | 219 | ANALYZER_OPTION( |
219 | | - unsigned, Z3CrosscheckRetriesOnTimeout, |
220 | | - "crosscheck-with-z3-retries-on-timeout", |
221 | | - "Set how many times the oracle is allowed to retry a Z3 query. " |
222 | | - "Set 0 for not allowing retries, in which case each Z3 query would be " |
223 | | - "attempted only once. Increasing the number of retries is often more " |
224 | | - "effective at reducing the number of nondeterministic diagnostics than " |
225 | | - "\"crosscheck-with-z3-timeout-threshold\" in practice.", 2) |
| 220 | + PositiveAnalyzerOption, Z3CrosscheckMaxAttemptsPerQuery, |
| 221 | + "crosscheck-with-z3-max-attempts-per-query", |
| 222 | + "Set how many times the oracle is allowed to run a Z3 query. " |
| 223 | + "This must be a positive value. Set 1 to not allow any retry attempts. " |
| 224 | + "Increasing the number of attempts is often more effective at reducing " |
| 225 | + "the number of nondeterministic diagnostics than " |
| 226 | + "\"crosscheck-with-z3-timeout-threshold\" in practice.", 3) |
226 | 227 |
|
227 | 228 | ANALYZER_OPTION(bool, ShouldReportIssuesInMainSourceFile, |
228 | 229 | "report-in-main-source-file", |
|
0 commit comments