Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35466

Clang-format does not add a newline at the end of a file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:

      Description

      Currently, "lint" expects a newline character at the end of a file, but if you create a new one without it, running clang-format will not correct that for you. If a convenient setting exists in .clang-format, it would be wise to have it added. Otherwise, it is currently possible to fail "lint" despite linting, which can be very confusing for new members.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: