Indent every scope and put opening braces on the signature line

Namespace and extern "C" bodies are indented a level, so nesting is
visible from the indentation rather than only from the braces. Opening
braces stay on the line that opens the scope, including function
definitions, which previously carried theirs on a line of their own.
This commit is contained in:
2026-08-15 23:47:43 -04:00
parent 9fd7d2f433
commit 12a4f68025
13 changed files with 634 additions and 709 deletions

View File

@@ -20,19 +20,16 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
extern "C" const char* dpm_module_version(void)
{
extern "C" const char* dpm_module_version(void) {
return "banana";
}
extern "C" const char* dpm_module_description(void)
{
extern "C" const char* dpm_module_description(void) {
return "Fixture with a malformed version.";
}
extern "C" int dpm_module_execute(void* ctx, const char* command,
int argc, char** argv)
{
int argc, char** argv) {
(void)ctx;
(void)command;
(void)argc;