[clang-format] Add support to remove unnecessary semicolons after function definition
authormydeveloperday <mydeveloperday@gmail.com>
Sun, 9 Oct 2022 10:16:58 +0000 (11:16 +0100)
committermydeveloperday <mydeveloperday@gmail.com>
Sun, 9 Oct 2022 10:18:16 +0000 (11:18 +0100)
commit69e772768e957629d41ed53eaf4dcda96fa9dac7
tree8d6a03c2951dfebc2707db3e0e4cac0c75af8820
parentac21938fbdfa75f1eb4ca399dac4fbf3e90d472d
[clang-format] Add support to remove unnecessary semicolons after function definition

Fixes: https://github.com/llvm/llvm-project/issues/58217

This change is to remove extraneous and unnecessary ';' from after a function definition, its off by default and carries the same "code modification" warning as some of our other code manipulating changes.

Reviewed By: HazardyKnusperkeks, owenpan

Differential Revision: https://reviews.llvm.org/D135466
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp