Skip to content

Commit

Permalink
Everywhere: Fix badly-formatted includes
Browse files Browse the repository at this point in the history
In 7c5e30d, the focus was "only" on
Userland/Libraries/, whereas this commit cleans up the remaining
headers in the repo, and any new badly-formatted include.
  • Loading branch information
BenWiederhake authored and trflynn89 committed Jan 2, 2023
1 parent 9d61e59 commit b83cb09
Show file tree
Hide file tree
Showing 35 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion AK/EnumBits.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma once

#include "AK/StdLibExtras.h"
#include <AK/StdLibExtras.h>

// Enables bitwise operators for the specified Enum type.
//
Expand Down
2 changes: 1 addition & 1 deletion AK/FlyString.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

#pragma once

#include "AK/StringUtils.h"
#include <AK/DeprecatedString.h>
#include <AK/StringUtils.h>

namespace AK {

Expand Down
4 changes: 2 additions & 2 deletions AK/UBSanitizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

#pragma once

#include "AK/Noncopyable.h"
#include "AK/StdLibExtras.h"
#include <AK/Atomic.h>
#include <AK/Noncopyable.h>
#include <AK/StdLibExtras.h>
#include <AK/Types.h>

namespace AK::UBSanitizer {
Expand Down
2 changes: 1 addition & 1 deletion Tests/AK/TestVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* SPDX-License-Identifier: BSD-2-Clause
*/

#include "AK/ReverseIterator.h"
#include <LibTest/TestCase.h>

#include <AK/DeprecatedString.h>
#include <AK/NonnullOwnPtrVector.h>
#include <AK/OwnPtr.h>
#include <AK/ReverseIterator.h>
#include <AK/Vector.h>

TEST_CASE(construct)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
* SPDX-License-Identifier: BSD-2-Clause
*/

#include "sched.h"
#include <LibCore/SharedCircularQueue.h>
#include <LibTest/TestCase.h>
#include <LibThreading/Thread.h>
#include <sched.h>

using TestQueue = Core::SharedSingleProducerCircularQueue<int>;
using QueueError = ErrorOr<int, TestQueue::QueueStatus>;
Expand Down
2 changes: 1 addition & 1 deletion Tests/LibRegex/Regex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
* SPDX-License-Identifier: BSD-2-Clause
*/

#include "LibRegex/RegexMatcher.h"
#include <LibTest/TestCase.h> // import first, to prevent warning of VERIFY* redefinition

#include <AK/StringBuilder.h>
#include <AK/Tuple.h>
#include <LibRegex/Regex.h>
#include <LibRegex/RegexDebug.h>
#include <LibRegex/RegexMatcher.h>
#include <stdio.h>

static ECMAScriptOptions match_test_api_options(const ECMAScriptOptions options)
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applets/Keymap/KeymapStatusWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/

#include "KeymapStatusWidget.h"
#include "LibGUI/ActionGroup.h"
#include <LibGUI/Action.h>
#include <LibGUI/ActionGroup.h>
#include <LibGUI/ConnectionToWindowManagerServer.h>
#include <LibGUI/Painter.h>
#include <LibGUI/Process.h>
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/Browser/History/HistoryModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

#pragma once

#include "Applications/Browser/History.h"
#include <AK/Vector.h>
#include <Applications/Browser/History.h>
#include <LibGUI/Model.h>
#include <LibGUI/Widget.h>

Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/Browser/History/HistoryWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma once

#include "Applications/Browser/History.h"
#include "../History.h"
#include "HistoryModel.h"
#include <LibGUI/FilteringProxyModel.h>
#include <LibGUI/TextBox.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

#pragma once

#include "LibGUI/CheckBox.h"
#include <LibGUI/Button.h>
#include <LibGUI/CheckBox.h>
#include <LibGUI/ListView.h>
#include <LibGUI/SettingsWindow.h>

Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/PDFViewer/NumericInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

#include "NumericInput.h"
#include "ctype.h"
#include <ctype.h>

NumericInput::NumericInput()
{
Expand Down
10 changes: 5 additions & 5 deletions Userland/Applications/PDFViewer/PDFViewerWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
*/

#include "PDFViewerWidget.h"
#include "AK/Assertions.h"
#include "AK/DeprecatedString.h"
#include "AK/Format.h"
#include "LibGUI/Forward.h"
#include "LibPDF/Document.h"
#include <AK/Assertions.h>
#include <AK/DeprecatedString.h>
#include <AK/Format.h>
#include <AK/HashMap.h>
#include <AK/HashTable.h>
#include <AK/Variant.h>
Expand All @@ -19,6 +17,7 @@
#include <LibGUI/Application.h>
#include <LibGUI/BoxLayout.h>
#include <LibGUI/FilePicker.h>
#include <LibGUI/Forward.h>
#include <LibGUI/InputBox.h>
#include <LibGUI/Label.h>
#include <LibGUI/Menu.h>
Expand All @@ -30,6 +29,7 @@
#include <LibGUI/TableView.h>
#include <LibGUI/Toolbar.h>
#include <LibGUI/ToolbarContainer.h>
#include <LibPDF/Document.h>

class PagedErrorsModel : public GUI::Model {

Expand Down
4 changes: 2 additions & 2 deletions Userland/Applications/PDFViewer/PDFViewerWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

#pragma once

#include "AK/NonnullRefPtr.h"
#include "AK/RefPtr.h"
#include "NumericInput.h"
#include "PDFViewer.h"
#include "SidebarWidget.h"
#include <AK/NonnullRefPtr.h>
#include <AK/RefPtr.h>
#include <LibGUI/Action.h>
#include <LibGUI/ActionGroup.h>
#include <LibGUI/CheckBox.h>
Expand Down
4 changes: 2 additions & 2 deletions Userland/Applications/PDFViewer/SidebarWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

#pragma once

#include "LibGUI/ModelIndex.h"
#include "LibPDF/Document.h"
#include "OutlineModel.h"
#include <LibGUI/ModelIndex.h>
#include <LibGUI/TreeView.h>
#include <LibGUI/Widget.h>
#include <LibPDF/Document.h>

class SidebarWidget final : public GUI::Widget {
C_OBJECT(SidebarWidget)
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/Piano/RollWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
*/

#include "RollWidget.h"
#include "LibGUI/Event.h"
#include "TrackManager.h"
#include <AK/IntegralMath.h>
#include <LibGUI/Event.h>
#include <LibGUI/Painter.h>
#include <LibGUI/Scrollbar.h>
#include <LibGfx/Font/Font.h>
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/PixelPaint/Tools/TextTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#include "TextTool.h"
#include "../ImageEditor.h"
#include "../Layer.h"
#include "LibGUI/FontPicker.h"
#include <LibGUI/Action.h>
#include <LibGUI/BoxLayout.h>
#include <LibGUI/Button.h>
#include <LibGUI/FontPicker.h>
#include <LibGUI/Label.h>
#include <LibGUI/Menu.h>
#include <LibGUI/Painter.h>
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/Presenter/PresenterWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

#include "PresenterWidget.h"
#include "LibGUI/MessageBox.h"
#include "Presentation.h"
#include <AK/Format.h>
#include <LibCore/MimeData.h>
Expand All @@ -14,6 +13,7 @@
#include <LibGUI/Event.h>
#include <LibGUI/Icon.h>
#include <LibGUI/Menu.h>
#include <LibGUI/MessageBox.h>
#include <LibGUI/Painter.h>
#include <LibGUI/Window.h>
#include <LibGfx/Forward.h>
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/Presenter/PresenterWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

#pragma once

#include "LibGUI/Action.h"
#include "Presentation.h"
#include <LibGUI/Action.h>
#include <LibGUI/Event.h>
#include <LibGUI/UIDimensions.h>
#include <LibGUI/Widget.h>
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "SpreadsheetWidget.h"
#include "CellSyntaxHighlighter.h"
#include "HelpWindow.h"
#include "LibFileSystemAccessClient/Client.h"
#include <LibFileSystemAccessClient/Client.h>
#include <LibGUI/Application.h>
#include <LibGUI/BoxLayout.h>
#include <LibGUI/Button.h>
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/Spreadsheet/Workbook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
#include "ExportDialog.h"
#include "ImportDialog.h"
#include "JSIntegration.h"
#include "LibGUI/MessageBox.h"
#include "Readers/CSV.h"
#include <AK/ByteBuffer.h>
#include <AK/StringView.h>
#include <LibCore/File.h>
#include <LibCore/MimeData.h>
#include <LibFileSystemAccessClient/Client.h>
#include <LibGUI/MessageBox.h>
#include <LibGUI/TextBox.h>
#include <LibGUI/Window.h>
#include <LibJS/Runtime/GlobalObject.h>
Expand Down
2 changes: 1 addition & 1 deletion Userland/Applications/Spreadsheet/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
*/

#include "HelpWindow.h"
#include "LibFileSystemAccessClient/Client.h"
#include "Spreadsheet.h"
#include "SpreadsheetWidget.h"
#include <AK/ScopeGuard.h>
#include <AK/Try.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/File.h>
#include <LibCore/System.h>
#include <LibFileSystemAccessClient/Client.h>
#include <LibGUI/Application.h>
#include <LibGUI/Clipboard.h>
#include <LibGUI/FilePicker.h>
Expand Down
2 changes: 1 addition & 1 deletion Userland/DevTools/HackStudio/HackStudioWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "GMLPreviewWidget.h"
#include "Git/DiffViewer.h"
#include "Git/GitWidget.h"
#include "LibGUI/Button.h"
#include "Locator.h"
#include "Project.h"
#include "ProjectBuilder.h"
Expand All @@ -25,6 +24,7 @@
#include "ToDoEntriesWidget.h"
#include <LibCoredump/Inspector.h>
#include <LibGUI/ActionGroup.h>
#include <LibGUI/Button.h>
#include <LibGUI/Scrollbar.h>
#include <LibGUI/Splitter.h>
#include <LibGUI/Widget.h>
Expand Down
2 changes: 1 addition & 1 deletion Userland/DevTools/HackStudio/ProjectBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

#pragma once

#include "AK/Error.h"
#include "Project.h"
#include "TerminalWrapper.h"
#include <AK/Error.h>
#include <AK/Noncopyable.h>
#include <LibCore/TempFile.h>

Expand Down
4 changes: 2 additions & 2 deletions Userland/DevTools/Profiler/FlameGraphView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
*/

#include "FlameGraphView.h"
#include "DevTools/Profiler/Profile.h"
#include "LibGfx/Forward.h"
#include "Profile.h"
#include <AK/Function.h>
#include <LibGUI/Painter.h>
#include <LibGUI/Widget.h>
#include <LibGfx/Font/FontDatabase.h>
#include <LibGfx/Forward.h>
#include <LibGfx/Palette.h>

namespace Profiler {
Expand Down
2 changes: 1 addition & 1 deletion Userland/DevTools/UserspaceEmulator/SoftCPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

#pragma once

#include "AK/Debug.h"
#include "Emulator.h"
#include "Region.h"
#include "SoftFPU.h"
#include "SoftVPU.h"
#include "ValueWithShadow.h"
#include <AK/ByteReader.h>
#include <AK/Debug.h>
#include <LibX86/Instruction.h>
#include <LibX86/Interpreter.h>

Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibCore/ArgsParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* SPDX-License-Identifier: BSD-2-Clause
*/

#include "AK/JsonObject.h"
#include <AK/Format.h>
#include <AK/JsonObject.h>
#include <AK/StringBuilder.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/Version.h>
Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibIMAP/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*/

#include "AK/OwnPtr.h"
#include <AK/OwnPtr.h>
#include <LibCore/Stream.h>
#include <LibIMAP/Client.h>

Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibPDF/ColorSpace.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

#pragma once

#include "AK/Forward.h"
#include <AK/FlyString.h>
#include <AK/Forward.h>
#include <LibGfx/Color.h>
#include <LibPDF/Value.h>

Expand Down
2 changes: 1 addition & 1 deletion Userland/Libraries/LibRegex/RegexByteCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
*/

#include "RegexByteCode.h"
#include "AK/StringBuilder.h"
#include "RegexDebug.h"
#include <AK/BinarySearch.h>
#include <AK/CharacterTypes.h>
#include <AK/Debug.h>
#include <AK/StringBuilder.h>
#include <LibUnicode/CharacterTypes.h>

namespace regex {
Expand Down
2 changes: 1 addition & 1 deletion Userland/Services/EchoServer/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

#include "Client.h"
#include "LibCore/EventLoop.h"
#include <LibCore/EventLoop.h>

Client::Client(int id, NonnullOwnPtr<Core::Stream::TCPSocket> socket)
: m_id(id)
Expand Down
2 changes: 1 addition & 1 deletion Userland/Services/Taskbar/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/

#include "LibGUI/Window.h"
#include "ShutdownDialog.h"
#include "TaskbarWindow.h"
#include <AK/Debug.h>
Expand All @@ -25,6 +24,7 @@
#include <LibGUI/Menu.h>
#include <LibGUI/MenuItem.h>
#include <LibGUI/Process.h>
#include <LibGUI/Window.h>
#include <LibGfx/SystemTheme.h>
#include <LibMain/Main.h>
#include <WindowServer/Window.h>
Expand Down
Loading

0 comments on commit b83cb09

Please sign in to comment.