This is an archive of the discontinued LLVM Phabricator instance.

[lldb][NFC] Fix all formatting errors in .cpp file headers
ClosedPublic

Authored by teemperor on Jan 23 2020, 2:07 AM.

Details

Summary

A *.cpp file header in LLDB (and in LLDB) should like this:

//===-- TestUtilities.cpp -------------------------------------------------===//

However in LLDB most of our source files have arbitrary changes to this format and
these changes are spreading through LLDB as folks usually just use the existing
source files as templates for their new files (most notably the unnecessary
editor language indicator -*- C++ -*- is spreading and in every review
someone is pointing out that this is wrong, resulting in people pointing out that this
is done in the same way in other files).

This patch removes most of these inconsistencies including the editor language indicators,
all the different missing/additional '-' characters, files that center the file name, missing
trailing ===// (mostly caused by clang-format breaking the line).

Diff Detail

Event Timeline

teemperor created this revision.Jan 23 2020, 2:07 AM
JDevlieghere accepted this revision.Jan 23 2020, 8:33 AM
This revision is now accepted and ready to land.Jan 23 2020, 8:33 AM
This revision was automatically updated to reflect the committed changes.