Skip to content

Commit 43c84f8

Browse files
Merge pull request diffblue#3258 from johnnonweiler/new-doxygen-ci-job
Use new Doxygen script in Travis CI
2 parents f33dc9d + a655ef9 commit 43c84f8

File tree

4 files changed

+5
-39
lines changed

4 files changed

+5
-39
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
script:
7373
- echo $PATH
7474
- doxygen --version
75-
- scripts/travis_doxygen.sh
75+
- scripts/run_doxygen.sh
7676
before_cache:
7777
after_success:
7878
# Google Cloud Integration

scripts/expected_doxygen_warnings.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/cbmc/src/solvers/refinement/string_refinement.cpp:1511: warning: argument 'stream' of command @param is not found in the argument list of compute_inverse_function(const exprt &qvar, const exprt &val, const exprt &f)
2121
/cbmc/src/solvers/refinement/string_refinement.cpp:239: warning: Invalid list item found
2222
/cbmc/src/solvers/refinement/string_refinement.cpp:1823: warning: argument 'stream' of command @param is not found in the argument list of instantiate(const string_constraintt &axiom, const exprt &str, const exprt &val)
23-
/cbmc/src/solvers/refinement/string_refinement.cpp:112: warning: The following parameters of instantiate(const string_not_contains_constraintt &axiom, const index_set_pairt &index_set, const string_constraint_generatort &generator, const std::map< string_not_contains_constraintt, symbol_exprt > &witnesses) are not documented:
23+
/cbmc/src/solvers/refinement/string_refinement.cpp:112: warning: The following parameters of instantiate(const string_not_contains_constraintt &axiom, const index_set_pairt &index_set, const string_constraint_generatort &generator, const std::unordered_map< string_not_contains_constraintt, symbol_exprt > &witnesses) are not documented:
2424
parameter 'witnesses'
2525
/cbmc/src/solvers/refinement/string_refinement.cpp:1052: warning: The following parameters of substitute_array_access(const with_exprt &expr, const exprt &index, const bool left_propagate) are not documented:
2626
parameter 'left_propagate'
@@ -95,9 +95,6 @@
9595
/cbmc/src/goto-programs/goto_program.cpp:21: warning: argument 'instruction' of command @param is not found in the argument list of goto_programt::output_instruction(const namespacet &ns, const irep_idt &identifier, std::ostream &out, const instructionst::value_type &it) const
9696
/cbmc/src/goto-programs/goto_program.h:560: warning: The following parameters of goto_programt::output_instruction(const namespacet &ns, const irep_idt &identifier, std::ostream &out, const instructionst::value_type &it) const are not documented:
9797
parameter 'it'
98-
/cbmc/src/goto-symex/goto_symex.h:179: warning: argument 'goto_functions' of command @param is not found in the argument list of goto_symext::initialize_entry_point(statet &state, const get_goto_functiont &get_goto_function, goto_programt::const_targett pc, goto_programt::const_targett limit)
99-
/cbmc/src/goto-symex/goto_symex.h:185: warning: The following parameters of goto_symext::initialize_entry_point(statet &state, const get_goto_functiont &get_goto_function, goto_programt::const_targett pc, goto_programt::const_targett limit) are not documented:
100-
parameter 'get_goto_function'
10198
/cbmc/src/goto-instrument/wmm/goto2graph.h:260: warning: The following parameters of instrumentert::cfg_visitort::visit_cfg_function(value_setst &value_sets, memory_modelt model, bool no_dependencies, loop_strategyt duplicate_body, const irep_idt &function, std::set< nodet > &ending_vertex) are not documented:
10299
parameter 'model'
103100
parameter 'no_dependencies'
@@ -171,3 +168,5 @@
171168
/cbmc/src/pointer-analysis/dereference.h:26: warning: argument '_options' of command @param is not found in the argument list of dereferencet::dereferencet(const namespacet &_ns)
172169
/cbmc/src/pointer-analysis/dereference.h:26: warning: argument '_dereference_callback' of command @param is not found in the argument list of dereferencet::dereferencet(const namespacet &_ns)
173170
/cbmc/src/goto-programs/rebuild_goto_start_function.cpp:22: warning: argument '_message_handler' of command @param is not found in the argument list of rebuild_goto_start_function_baset< maybe_lazy_goto_modelt >::rebuild_goto_start_function_baset(const optionst &options, maybe_lazy_goto_modelt &goto_model, message_handlert &message_handler)
171+
/cbmc/src/solvers/README.md:4: warning: @copydetails or @copydoc target 'check_axioms(const string_axiomst &axioms, string_constraint_generatort &generator, const std::function<exprt(const exprt &)> &get, messaget::mstreamt &stream, const namespacet &ns, bool use_counter_example, const union_find_replacet &symbol_resolve, const std::map<string_not_contains_constraintt, symbol_exprt> &not_contain_witnesses)' not found
172+
/cbmc/src/solvers/README.md:428: warning: unable to resolve link to `check_axioms(const string_axiomst &axioms, string_constraint_generatort &generator, const std::function<exprt(const exprt &)> &get, messaget::mstreamt &stream, const namespacet &ns, bool use_counter_example, const union_find_replacet &symbol_resolve, const std::map<string_not_contains_constraintt, symbol_exprt> &not_contain_witnesses)' for \link command

scripts/run_diff.sh

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
script_folder=$(dirname "$0")
66
absolute_repository_root=$(git rev-parse --show-toplevel)
77
mode=$1
8-
modes="CPPLINT | DOXYGEN"
8+
modes="CPPLINT"
99

1010
if [[ "$#" -gt 3 ]]
1111
then
@@ -39,23 +39,6 @@ then
3939
else
4040
cmd='${script_folder}/cpplint.py --filter=-whitespace/operators,-readability/identifier_spacing $file 2>&1 >/dev/null'
4141
fi
42-
elif [[ "$mode" == "DOXYGEN" ]]
43-
then
44-
doxygen=doxygen
45-
doxygenlogdir="doc/html"
46-
doxygenlog="$doxygenlogdir/doxygen.log"
47-
suppress_warnings=(
48-
"warning: Included by graph for .* not generated, too many nodes. Consider increasing DOT_GRAPH_MAX_NODES.")
49-
if ! $doxygen --version &>/dev/null
50-
then
51-
echo "Doxygen is not installed on this PC"
52-
echo "Please install before running this script"
53-
exit 1
54-
else
55-
mkdir -p $doxygenlogdir && cd src && $doxygen &> ../$doxygenlog && cd ..
56-
suppress_warnings_regex=$(IFS="|" ; echo "${suppress_warnings[*]}")
57-
cmd='grep -Ev "$suppress_warnings_regex" $doxygenlog'
58-
fi
5942
else
6043
echo "Mode $mode not recognized"
6144
echo "Possible values: $modes"

scripts/travis_doxygen.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)