Skip to content

Commit 7736672

Browse files
Style: use NOLINTNEXTLINE to avoid cpplint errors on long links
1 parent b07fcdd commit 7736672

6 files changed

+18
-6
lines changed

src/solvers/refinement/string_constraint_generator_indexof.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ exprt string_constraint_generatort::add_axioms_for_last_index_of_string(
244244
/// Index of the first occurence of a target inside the string
245245
///
246246
/// If the target is a character:
247+
// NOLINTNEXTLINE
247248
/// \copybrief add_axioms_for_index_of(const array_string_exprt&,const exprt&,const exprt&)
248249
/// \link
249250
/// add_axioms_for_index_of(const array_string_exprt&,const exprt&,const exprt&)
@@ -357,9 +358,10 @@ exprt string_constraint_generatort::add_axioms_for_last_index_of(
357358
/// Index of the last occurence of a target inside the string
358359
///
359360
/// If the target is a character:
361+
// NOLINTNEXTLINE
360362
/// \copybrief add_axioms_for_last_index_of(const array_string_exprt&,const exprt&,const exprt&)
361-
/// \link
362-
/// add_axioms_for_last_index_of(const array_string_exprt&,const exprt&,const exprt&)
363+
// NOLINTNEXTLINE
364+
/// \link add_axioms_for_last_index_of(const array_string_exprt&,const exprt&,const exprt&)
363365
/// (More...) \endlink
364366
///
365367
/// If the target is a refined_string:

src/solvers/refinement/string_constraint_generator_insert.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ exprt string_constraint_generatort::add_axioms_for_insert(
5656
/// \copybrief string_constraint_generatort::add_axioms_for_insert(
5757
/// const array_string_exprt &, const array_string_exprt &,
5858
/// const array_string_exprt &, const exprt &)
59-
/// \link
60-
/// add_axioms_for_insert(const array_string_exprt&,const array_string_exprt&,const array_string_exprt&,const exprt&)
59+
// NOLINTNEXTLINE
60+
/// \link add_axioms_for_insert(const array_string_exprt&,const array_string_exprt&,const array_string_exprt&,const exprt&)
6161
/// (More...) \endlink
6262
///
6363
/// If `start` and `end` arguments are given then `substring(s2, start, end)`

src/solvers/refinement/string_constraint_generator_testing.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ exprt string_constraint_generatort::add_axioms_for_is_prefix(
7070
/// Add axioms ensuring the return value is true when the string starts with the
7171
/// given target.
7272
/// These axioms are detailed here:
73+
// NOLINTNEXTLINE
7374
/// string_constraint_generatort::add_axioms_for_is_prefix(const array_string_exprt &prefix, const array_string_exprt &str, const exprt &offset)
7475
/// \todo The primitive should be renamed to `starts_with`.
7576
/// \todo Get rid of the boolean flag.

src/solvers/refinement/string_constraint_generator_transformation.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ exprt string_constraint_generatort::add_axioms_for_set_length(
7676
/// const array_string_exprt &str,
7777
/// const exprt &start,
7878
/// const exprt &end)
79+
// NOLINTNEXTLINE
7980
/// \link string_constraint_generatort::add_axioms_for_substring(const array_string_exprt &res, const array_string_exprt &str, const exprt &start, const exprt &end)
8081
/// (More...) \endlink
8182
/// \warning The specification may not be correct for the case where the string
@@ -367,8 +368,9 @@ exprt string_constraint_generatort::add_axioms_for_to_upper_case(
367368

368369
/// Conversion of a string to upper case
369370
///
370-
/// \copybrief string_constraint_generatort::add_axioms_for_to_upper_case(
371-
/// const array_string_exprt &res, const array_string_exprt &str)
371+
// NOLINTNEXTLINE
372+
/// \copybrief string_constraint_generatort::add_axioms_for_to_upper_case(const array_string_exprt&, const array_string_exprt&)
373+
// NOLINTNEXTLINE
372374
/// \link string_constraint_generatort::add_axioms_for_to_upper_case(const array_string_exprt &res, const array_string_exprt &str)
373375
/// (More...) \endlink
374376
/// \param f: function application with arguments integer `|res|`, character
@@ -551,7 +553,9 @@ exprt string_constraint_generatort::add_axioms_for_delete(
551553

552554
/// Remove a portion of a string
553555
///
556+
// NOLINTNEXTLINE
554557
/// \copybrief string_constraint_generatort::add_axioms_for_delete(const array_string_exprt &res, const array_string_exprt &str, const exprt &start, const exprt &end)
558+
// NOLINTNEXTLINE
555559
/// \link string_constraint_generatort::add_axioms_for_delete(const array_string_exprt &res, const array_string_exprt &str, const exprt &start, const exprt &end)
556560
/// (More...) \endlink
557561
/// \param f: function application with arguments integer `|res|`, character

src/solvers/refinement/string_constraint_generator_valueof.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ exprt string_constraint_generatort::add_axioms_from_int_hex(
269269
///
270270
/// \copybrief string_constraint_generatort::add_axioms_from_char(
271271
/// const array_string_exprt &res, const exprt &c)
272+
// NOLINTNEXTLINE
272273
/// \link string_constraint_generatort::add_axioms_from_char(const array_string_exprt &res, const exprt &c)
273274
/// (More...) \endlink
274275
/// \param f: function application with arguments integer `|res|`, character

src/solvers/refinement/string_refinement.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ static void display_index_set(
215215
/// the index set of `str` we find `y` such that `f(y)=val` and
216216
/// add lemma `P(y)`.
217217
/// (See
218+
// NOLINTNEXTLINE
218219
/// `instantiate(messaget::mstreamt&,const string_constraintt&,const exprt &,const exprt&)`
219220
/// for details)
220221
/// * For formulas of the form
@@ -467,12 +468,15 @@ void output_equations(
467468
/// Pointer symbols which are set to be equal by constraints, are replaced by
468469
/// an single symbol in the solver. The `symbol_solvert` object used for this
469470
/// substitution is constructed by
471+
// NOLINTNEXTLINE
470472
/// `generate_symbol_resolution_from_equations(const std::vector<equal_exprt>&,const namespacet&,messaget::mstreamt&)`.
471473
/// All these symbols are then replaced using
474+
// NOLINTNEXTLINE
472475
/// `replace_symbols_in_equations(const union_find_replacet &, std::vector<equal_exprt> &)`.
473476
///
474477
/// ## Conversion to first order formulas:
475478
/// Each string primitive is converted to a list of first order formulas by the
479+
// NOLINTNEXTLINE
476480
/// function `substitute_function_applications_in_equations(std::vector<equal_exprt>&,string_constraint_generatort&)`.
477481
/// These formulas should be unquantified or be either a `string_constraintt`
478482
/// or a `string_not_contains_constraintt`.

0 commit comments

Comments
 (0)