diff options
author | David Malcolm <dmalcolm@redhat.com> | 2025-07-15 16:19:53 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2025-07-15 16:19:53 -0400 |
commit | 1f0d76d61b94acc8a207c656dfe8f0fa7a38d742 (patch) | |
tree | b9a0bd622fc0810da00d85a548aa85a25d6aa785 /gcc/common/config/bpf | |
parent | 2a521eee58da7c0d0f2262181b804aa148e60aaf (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
No functional change intended.
gcc/ChangeLog:
* spellcheck.cc: Define INCLUDE_ALGORITHM.
(CASE_COST, BASE_COST): Convert to...
(case_cost, base_cost): ...these, in an anonymous namespace.
(get_edit_distance): Update for above. Use std::min rather than
MIN.
(get_edit_distance_cutoff): Likewise. Use std::max rather than
MAX.
(selftest::test_edit_distances): Update for BASE_COST renaming.
(selftest::get_old_cutoff): Likewise. Use std::max.
(selftest::assert_not_suggested_for): Use nullptr.
(selftest::test_find_closest_string): Likewise.
* spellcheck.h: Replace TYPE with StringLikeType in templates,
and use CamelCase.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/common/config/bpf')
0 files changed, 0 insertions, 0 deletions