mit-dci / opencbdc-tx

A transaction processor for a hypothetical, general-purpose, central bank digital currency
Other
895 stars 200 forks source link

Fix unintuitive formatting by clang-format #221

Open AlexRamRam opened 1 year ago

AlexRamRam commented 1 year ago

Affected Branch

programmability

Basic Diagnostics

Description

Example of case clauses containing series of brackets:

        switch(et) {
            case event_type::remove: {
                struct kevent ev {};
                EV_SET(&ev, fd, EVFILT_READ, EV_DELETE, 0, 0, 0);
                m_evs.emplace_back(std::move(ev));
            }
                {
                    struct kevent ev {};
                    EV_SET(&ev, fd, EVFILT_WRITE, EV_DELETE, 0, 0, 0);
                    m_evs.emplace_back(std::move(ev));
                }

Code of Conduct