[SERVER-35466] Clang-format does not add a newline at the end of a file Created: 06/Jun/18  Updated: 29/Aug/23  Resolved: 29/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Vesselina Ratcheva (Inactive) Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: clang-format
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Development Platform
Operating System: ALL
Participants:

 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.



 Comments   
Comment by Alex Neben [ 29/Aug/23 ]

As of the current version of clang tidy it is adding a newline at the end of files.

Generated at Thu Feb 08 04:39:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.