Просмотр исходного кода

Everywhere: Fix badly-formatted includes

In 7c5e30daaa615ad3a2ef55222423a747ac0a1227, the focus was "only" on
Userland/Libraries/, whereas this commit cleans up the remaining
headers in the repo, and any new badly-formatted include.
Ben Wiederhake 2 лет назад
Родитель
Сommit
b83cb09db1
35 измененных файлов с 43 добавлено и 43 удалено
  1. 1 1
      AK/EnumBits.h
  2. 1 1
      AK/FlyString.h
  3. 2 2
      AK/UBSanitizer.h
  4. 1 1
      Tests/AK/TestVector.cpp
  5. 1 1
      Tests/LibCore/TestLibCoreSharedSingleProducerCircularQueue.cpp
  6. 1 1
      Tests/LibRegex/Regex.cpp
  7. 1 1
      Userland/Applets/Keymap/KeymapStatusWidget.cpp
  8. 1 1
      Userland/Applications/Browser/History/HistoryModel.h
  9. 1 1
      Userland/Applications/Browser/History/HistoryWidget.h
  10. 1 1
      Userland/Applications/BrowserSettings/ContentFilterSettingsWidget.h
  11. 1 1
      Userland/Applications/PDFViewer/NumericInput.cpp
  12. 5 5
      Userland/Applications/PDFViewer/PDFViewerWidget.cpp
  13. 2 2
      Userland/Applications/PDFViewer/PDFViewerWidget.h
  14. 2 2
      Userland/Applications/PDFViewer/SidebarWidget.h
  15. 1 1
      Userland/Applications/Piano/RollWidget.cpp
  16. 1 1
      Userland/Applications/PixelPaint/Tools/TextTool.cpp
  17. 1 1
      Userland/Applications/Presenter/PresenterWidget.cpp
  18. 1 1
      Userland/Applications/Presenter/PresenterWidget.h
  19. 1 1
      Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp
  20. 1 1
      Userland/Applications/Spreadsheet/Workbook.cpp
  21. 1 1
      Userland/Applications/Spreadsheet/main.cpp
  22. 1 1
      Userland/DevTools/HackStudio/HackStudioWidget.h
  23. 1 1
      Userland/DevTools/HackStudio/ProjectBuilder.h
  24. 2 2
      Userland/DevTools/Profiler/FlameGraphView.cpp
  25. 1 1
      Userland/DevTools/UserspaceEmulator/SoftCPU.h
  26. 1 1
      Userland/Libraries/LibCore/ArgsParser.cpp
  27. 1 1
      Userland/Libraries/LibIMAP/Client.cpp
  28. 1 1
      Userland/Libraries/LibPDF/ColorSpace.h
  29. 1 1
      Userland/Libraries/LibRegex/RegexByteCode.cpp
  30. 1 1
      Userland/Services/EchoServer/Client.cpp
  31. 1 1
      Userland/Services/Taskbar/main.cpp
  32. 1 1
      Userland/Services/WindowServer/WMConnectionFromClient.h
  33. 1 1
      Userland/Shell/Builtin.cpp
  34. 1 1
      Userland/Utilities/fgrep.cpp
  35. 1 1
      Userland/Utilities/tar.cpp

+ 1 - 1
AK/EnumBits.h

@@ -6,7 +6,7 @@
 
 #pragma once
 
-#include "AK/StdLibExtras.h"
+#include <AK/StdLibExtras.h>
 
 // Enables bitwise operators for the specified Enum type.
 //

+ 1 - 1
AK/FlyString.h

@@ -6,8 +6,8 @@
 
 #pragma once
 
-#include "AK/StringUtils.h"
 #include <AK/DeprecatedString.h>
+#include <AK/StringUtils.h>
 
 namespace AK {
 

+ 2 - 2
AK/UBSanitizer.h

@@ -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 {

+ 1 - 1
Tests/AK/TestVector.cpp

@@ -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)

+ 1 - 1
Tests/LibCore/TestLibCoreSharedSingleProducerCircularQueue.cpp

@@ -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>;

+ 1 - 1
Tests/LibRegex/Regex.cpp

@@ -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)

+ 1 - 1
Userland/Applets/Keymap/KeymapStatusWidget.cpp

@@ -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>

+ 1 - 1
Userland/Applications/Browser/History/HistoryModel.h

@@ -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>
 

+ 1 - 1
Userland/Applications/Browser/History/HistoryWidget.h

@@ -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>

+ 1 - 1
Userland/Applications/BrowserSettings/ContentFilterSettingsWidget.h

@@ -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>
 

+ 1 - 1
Userland/Applications/PDFViewer/NumericInput.cpp

@@ -5,7 +5,7 @@
  */
 
 #include "NumericInput.h"
-#include "ctype.h"
+#include <ctype.h>
 
 NumericInput::NumericInput()
 {

+ 5 - 5
Userland/Applications/PDFViewer/PDFViewerWidget.cpp

@@ -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>
@@ -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>
@@ -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 {
 

+ 2 - 2
Userland/Applications/PDFViewer/PDFViewerWidget.h

@@ -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>

+ 2 - 2
Userland/Applications/PDFViewer/SidebarWidget.h

@@ -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)

+ 1 - 1
Userland/Applications/Piano/RollWidget.cpp

@@ -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>

+ 1 - 1
Userland/Applications/PixelPaint/Tools/TextTool.cpp

@@ -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>

+ 1 - 1
Userland/Applications/Presenter/PresenterWidget.cpp

@@ -5,7 +5,6 @@
  */
 
 #include "PresenterWidget.h"
-#include "LibGUI/MessageBox.h"
 #include "Presentation.h"
 #include <AK/Format.h>
 #include <LibCore/MimeData.h>
@@ -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>

+ 1 - 1
Userland/Applications/Presenter/PresenterWidget.h

@@ -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>

+ 1 - 1
Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp

@@ -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>

+ 1 - 1
Userland/Applications/Spreadsheet/Workbook.cpp

@@ -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>

+ 1 - 1
Userland/Applications/Spreadsheet/main.cpp

@@ -5,7 +5,6 @@
  */
 
 #include "HelpWindow.h"
-#include "LibFileSystemAccessClient/Client.h"
 #include "Spreadsheet.h"
 #include "SpreadsheetWidget.h"
 #include <AK/ScopeGuard.h>
@@ -13,6 +12,7 @@
 #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>

+ 1 - 1
Userland/DevTools/HackStudio/HackStudioWidget.h

@@ -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"
@@ -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>

+ 1 - 1
Userland/DevTools/HackStudio/ProjectBuilder.h

@@ -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>
 

+ 2 - 2
Userland/DevTools/Profiler/FlameGraphView.cpp

@@ -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 {

+ 1 - 1
Userland/DevTools/UserspaceEmulator/SoftCPU.h

@@ -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>
 

+ 1 - 1
Userland/Libraries/LibCore/ArgsParser.cpp

@@ -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>

+ 1 - 1
Userland/Libraries/LibIMAP/Client.cpp

@@ -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>
 

+ 1 - 1
Userland/Libraries/LibPDF/ColorSpace.h

@@ -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>
 

+ 1 - 1
Userland/Libraries/LibRegex/RegexByteCode.cpp

@@ -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 {

+ 1 - 1
Userland/Services/EchoServer/Client.cpp

@@ -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)

+ 1 - 1
Userland/Services/Taskbar/main.cpp

@@ -5,7 +5,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include "LibGUI/Window.h"
 #include "ShutdownDialog.h"
 #include "TaskbarWindow.h"
 #include <AK/Debug.h>
@@ -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>

+ 1 - 1
Userland/Services/WindowServer/WMConnectionFromClient.h

@@ -6,8 +6,8 @@
 
 #pragma once
 
-#include "AK/NonnullRefPtr.h"
 #include <AK/HashMap.h>
+#include <AK/NonnullRefPtr.h>
 #include <LibIPC/ConnectionFromClient.h>
 #include <WindowServer/WindowManagerClientEndpoint.h>
 #include <WindowServer/WindowManagerServerEndpoint.h>

+ 1 - 1
Userland/Shell/Builtin.cpp

@@ -5,8 +5,8 @@
  */
 
 #include "AST.h"
+#include "Formatter.h"
 #include "Shell.h"
-#include "Shell/Formatter.h"
 #include <AK/DeprecatedString.h>
 #include <AK/LexicalPath.h>
 #include <AK/ScopeGuard.h>

+ 1 - 1
Userland/Utilities/fgrep.cpp

@@ -4,8 +4,8 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include "AK/DeprecatedString.h"
 #include <AK/Assertions.h>
+#include <AK/DeprecatedString.h>
 #include <AK/Format.h>
 #include <LibCore/System.h>
 #include <LibMain/Main.h>

+ 1 - 1
Userland/Utilities/tar.cpp

@@ -4,7 +4,6 @@
  * SPDX-License-Identifier: BSD-2-Clause
  */
 
-#include "LibCore/Directory.h"
 #include <AK/Assertions.h>
 #include <AK/LexicalPath.h>
 #include <AK/Span.h>
@@ -13,6 +12,7 @@
 #include <LibCompress/Gzip.h>
 #include <LibCore/ArgsParser.h>
 #include <LibCore/DirIterator.h>
+#include <LibCore/Directory.h>
 #include <LibCore/File.h>
 #include <LibCore/FileStream.h>
 #include <LibCore/Stream.h>