|
29 | 29 | // clang-format off |
30 | 30 | #define JAVA_BYTECODE_LANGUAGE_OPTIONS /*NOLINT*/ \ |
31 | 31 | "(disable-uncaught-exception-check)" \ |
| 32 | + "(throw-assertion-error)" \ |
32 | 33 | "(java-assume-inputs-non-null)" \ |
33 | 34 | "(java-throw-runtime-exceptions)" \ |
34 | 35 | "(java-max-input-array-length):" \ |
|
43 | 44 | #define JAVA_BYTECODE_LANGUAGE_OPTIONS_HELP /*NOLINT*/ \ |
44 | 45 | " --disable-uncaught-exception-check" \ |
45 | 46 | " ignore uncaught exceptions and errors\n" \ |
| 47 | + " --throw-assertion-error throw java.lang.AssertionError on violated\n" /* NOLINT(*) */ \ |
| 48 | + " assert statements instead of failing\n" \ |
| 49 | + " at the location of the assert statement\n" /* NOLINT(*) */ \ |
46 | 50 | " --java-assume-inputs-non-null never initialize reference-typed parameter to the\n" /* NOLINT(*) */ \ |
47 | 51 | " entry point with null\n" /* NOLINT(*) */ \ |
48 | 52 | " --java-throw-runtime-exceptions make implicit runtime exceptions explicit\n" /* NOLINT(*) */ \ |
@@ -173,6 +177,7 @@ class java_bytecode_languaget:public languaget |
173 | 177 | bool string_refinement_enabled; |
174 | 178 | bool throw_runtime_exceptions; |
175 | 179 | bool assert_uncaught_exceptions; |
| 180 | + bool throw_assertion_error; |
176 | 181 | java_string_library_preprocesst string_preprocess; |
177 | 182 | std::string java_cp_include_files; |
178 | 183 |
|
|
0 commit comments