diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2024-10-08 12:29:50 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2024-10-08 15:42:50 +0000 |
| commit | 0370629593a68f2e04a9710d201d120a2ce437d4 (patch) | |
| tree | 234deb3bdc0d79aec71583f92d7b920e3abd0333 /clang/lib/Format/TokenAnnotator.cpp | |
| parent | 1de139fdd502e836552eba1049a42b45514d8f7b (diff) | |
Diffstat (limited to 'clang/lib/Format/TokenAnnotator.cpp')
| -rw-r--r-- | clang/lib/Format/TokenAnnotator.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp index 3f00a28e6298..4512e539cc79 100644 --- a/clang/lib/Format/TokenAnnotator.cpp +++ b/clang/lib/Format/TokenAnnotator.cpp @@ -3680,11 +3680,6 @@ void TokenAnnotator::annotate(AnnotatedLine &Line) { auto *First = Line.First; First->SpacesRequiredBefore = 1; First->CanBreakBefore = First->MustBreakBefore; - - if (First->is(tok::eof) && First->NewlinesBefore == 0 && - Style.InsertNewlineAtEOF) { - First->NewlinesBefore = 1; - } } // This function heuristically determines whether 'Current' starts the name of a |
