run clang-format to order includes, fix include ordering errors

This commit is contained in:
Tropical
2026-04-01 15:59:19 -05:00
parent dd93cfe91e
commit dc4e2287ee
1769 changed files with 6505 additions and 4909 deletions

View File

@@ -1,4 +1,5 @@
#include "java/Buffer.h"
#include <cassert>
Buffer::Buffer(unsigned int capacity)

View File

@@ -1,14 +1,16 @@
#include "java/ByteBuffer.h"
#include <assert.h>
#include <stdint.h>
#include <string.h>
#include <algorithm>
#include <vector>
#include "java/IntBuffer.h"
#include "java/FloatBuffer.h"
#include "java/ByteBuffer.h"
#include "java/Buffer.h"
#include "java/FloatBuffer.h"
#include "java/IntBuffer.h"
ByteBuffer::ByteBuffer(unsigned int capacity) : Buffer(capacity) {
hasBackingArray = false;

View File

@@ -1,8 +1,8 @@
#include "java/Color.h"
#include <cassert>
#include <cmath>
#include "java/Color.h"
// Creates an opaque sRGB color with the specified red, green, and blue values
// in the range (0.0 - 1.0). Alpha is defaulted to 1.0. The actual color used in
// rendering depends on finding the best match given the color space available

View File

@@ -1,16 +1,18 @@
#include "java/File.h"
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
#include <chrono>
#include <filesystem>
#include <string>
#include <system_error>
#include <vector>
#include "java/FileFilter.h"
#include "java/File.h"
#include "console_helpers/PathHelper.h" // 4jcraft TODO
#include "console_helpers/StringHelpers.h" // 4jcraft TODO
#include "java/FileFilter.h"
const wchar_t File::pathSeparator = L'/';

View File

@@ -1,7 +1,7 @@
#include "java/InputOutputStream/BufferedReader.h"
#include <cstring>
#include <cassert>
#include <cstring>
// Creates a buffering character-input stream that uses a default-sized input
// buffer. Parameters: in - A Reader

View File

@@ -5,13 +5,14 @@
// mark is set to the specified offset. Parameters: buf - the input buffer.
// offset - the offset in the buffer of the first byte to read.
// length - the maximum number of bytes to read from the buffer.
#include "java/InputOutputStream/ByteArrayInputStream.h"
#include <stdint.h>
#include <algorithm>
#include <cstring>
#include <vector>
#include "java/InputOutputStream/ByteArrayInputStream.h"
ByteArrayInputStream::ByteArrayInputStream(std::vector<uint8_t>& buf,
unsigned int offset,
unsigned int length)

View File

@@ -1,6 +1,7 @@
#include "java/InputOutputStream/ByteArrayOutputStream.h"
#include <assert.h>
#include <algorithm>
#include <cstring>

View File

@@ -1,10 +1,12 @@
#include "java/InputOutputStream/DataInputStream.h"
#include <stdio.h>
#include <bit>
#include <cstdint>
#include <string>
#include <vector>
#include "java/InputOutputStream/DataInputStream.h"
#include "java/InputOutputStream/InputStream.h"
// Creates a DataInputStream that uses the specified underlying InputStream.

View File

@@ -1,10 +1,12 @@
#include "java/InputOutputStream/DataOutputStream.h"
#include <stdio.h>
#include <bit>
#include <cstdint>
#include <string>
#include <vector>
#include "java/InputOutputStream/DataOutputStream.h"
#include "java/InputOutputStream/OutputStream.h"
// Creates a new data output stream to write data to the specified underlying

View File

@@ -1,15 +1,17 @@
#include "java/InputOutputStream/FileInputStream.h"
#include <assert.h>
#include <sys/types.h>
#include <algorithm>
#include <cstdint>
#include <cstdio>
#include <string>
#include <vector>
#include "java/File.h"
#include "java/InputOutputStream/FileInputStream.h"
#include "console_helpers/StringHelpers.h"
#include "java/File.h"
namespace {
int64_t FileTell(std::FILE* file) {

View File

@@ -1,11 +1,11 @@
#include "java/InputOutputStream/FileOutputStream.h"
#include <cassert>
#include <cstdint>
#include <vector>
#include "java/File.h"
#include "java/InputOutputStream/FileOutputStream.h"
#include "console_helpers/StringHelpers.h" // 4jcraft TODO
#include "java/File.h"
// Creates a file output stream to write to the file represented by the
// specified File object. A new FileDescriptor object is created to represent

View File

@@ -1,7 +1,8 @@
#include "java/InputOutputStream/InputStream.h"
#include <string>
#include "java/File.h"
#include "java/InputOutputStream/InputStream.h"
#include "java/InputOutputStream/FileInputStream.h"
InputStream* InputStream::getResourceAsStream(const std::wstring& fileName) {

View File

@@ -1,6 +1,7 @@
#include "java/InputOutputStream/DataInputStream.h"
#include "java/InputOutputStream/InputStreamReader.h"
#include "java/InputOutputStream/DataInputStream.h"
class InputStream;
// Creates an InputStreamReader that uses the default charset.

View File

@@ -2,6 +2,7 @@
#include <assert.h>
#include <string.h>
#include <algorithm>
#include "java/Buffer.h"

View File

@@ -1,10 +1,10 @@
#include <cassert>
#include <cmath>
#include <chrono>
#include <cstdint> // for int64_t
#include "java/Random.h"
#include <cassert>
#include <chrono>
#include <cmath>
#include <cstdint> // for int64_t
Random::Random() {
// 4J - jave now uses the system nanosecond counter added to a
// "seedUniquifier" to get an initial seed. Our nanosecond timer is actually

View File

@@ -1,12 +1,12 @@
#include <chrono>
#include "java/System.h"
#include <assert.h>
#include <stdint.h>
#include <string.h>
#include <algorithm>
#include <vector>
#include "java/System.h"
#include <algorithm>
#include <chrono>
#include <vector>
class Biome;
class Node;