[llvm-bugs] [Bug 48256] clang-format Allman brace style joins } with while keyword in do/while loop

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 1 10:02:24 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48256

Richard <legalize at xmission.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #5 from Richard <legalize at xmission.com> ---
OK, after more spelunking and with a little help from a vintage computing
discord server community, I found sources for sendmail 4.12 here:

http://ftp.math.utah.edu/pub/mirrors/minnie.tuhs.org/old/4BSD/Distributions/components/sendmail/

Use this gist to convert the compressed tarball to something gzip
can understand: https://gist.github.com/MikeRalphson/232163

Unpacking the 4.12 sources, we find aux/arpa.c with an author comment by
Eric Allman and a date comment of 7/25/83 containing a do/while loop like
this at line 376:

    /* output the rest of the header & the body of the letter */
    do
    {
        fputs(buf, sfp);
        if (ferror(sfp))
            goto spoolerr;
    } while (fgets(buf, sizeof buf, stdin) != NULL);

...and several more do/while loops in the 4.12 code base that are formatted
similarly.

So while it doesn't seem consistent to me, it apparently was consistent to
Eric Allman :)

I'm therefore closing this bug as WONTFIX.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201201/83f82b5d/attachment-0001.html>


More information about the llvm-bugs mailing list