Fixup whitespace/comments issues.
This CL fixes a few tabs to be spaces which makes the whitespace/comments
lint check pass. The check is set to enabled.
Change-Id: I2a6c590aa3bfee888239adc89d1ce4c8c99f3e78
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86083
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Auto-Submit: Dan Sinclair <dsinclair@chromium.org>
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index c54ff29..4cb8b9e 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -77,7 +77,7 @@
"-legal/copyright", "-readability/braces", "-readability/casting",
"-readability/inheritance", "-readability/namespace", "-runtime/explicit",
"-runtime/indentation_namespace", "-runtime/int", "-runtime/printf",
- "-whitespace/comments", "-whitespace/empty_if_body"
+ "-whitespace/empty_if_body"
]
diff --git a/include/dawn/native/MetalBackend.h b/include/dawn/native/MetalBackend.h
index 6db34a1..54b01ce 100644
--- a/include/dawn/native/MetalBackend.h
+++ b/include/dawn/native/MetalBackend.h
@@ -30,7 +30,7 @@
#ifdef __OBJC__
# import <Metal/Metal.h>
-#endif //__OBJC__
+#endif // __OBJC__
namespace dawn::native::metal {
diff --git a/src/dawn/tests/unittests/validation/ResourceUsageTrackingTests.cpp b/src/dawn/tests/unittests/validation/ResourceUsageTrackingTests.cpp
index b19e423..6fb5541 100644
--- a/src/dawn/tests/unittests/validation/ResourceUsageTrackingTests.cpp
+++ b/src/dawn/tests/unittests/validation/ResourceUsageTrackingTests.cpp
@@ -1690,9 +1690,9 @@
// TODO (yunchao.he@intel.com):
//
- // * Add tests for multiple encoders upon the same resource simultaneously. This situation fits
- // some cases like VR, multi-threading, etc.
+ // * Add tests for multiple encoders upon the same resource simultaneously. This situation fits
+ // some cases like VR, multi-threading, etc.
//
- // * Add tests for bundle
+ // * Add tests for bundle
} // anonymous namespace
diff --git a/src/dawn/tests/unittests/validation/TextureSubresourceTests.cpp b/src/dawn/tests/unittests/validation/TextureSubresourceTests.cpp
index 428777c..5834863 100644
--- a/src/dawn/tests/unittests/validation/TextureSubresourceTests.cpp
+++ b/src/dawn/tests/unittests/validation/TextureSubresourceTests.cpp
@@ -134,11 +134,11 @@
}
// TODO (yunchao.he@intel.com):
- // * Add tests for compute, in which texture subresource is traced per dispatch.
+ // * Add tests for compute, in which texture subresource is traced per dispatch.
//
- // * Add tests for multiple encoders upon the same resource simultaneously. This situation fits
- // some cases like VR, multi-threading, etc.
+ // * Add tests for multiple encoders upon the same resource simultaneously. This situation fits
+ // some cases like VR, multi-threading, etc.
//
- // * Add tests for conflicts between usages in two render bundles used in the same pass.
+ // * Add tests for conflicts between usages in two render bundles used in the same pass.
} // anonymous namespace
diff --git a/src/dawn/tests/white_box/QueryInternalShaderTests.cpp b/src/dawn/tests/white_box/QueryInternalShaderTests.cpp
index 96d3b2f..d888b25 100644
--- a/src/dawn/tests/white_box/QueryInternalShaderTests.cpp
+++ b/src/dawn/tests/white_box/QueryInternalShaderTests.cpp
@@ -181,16 +181,16 @@
}
};
-// Test the accuracy of timestamp compute shader which uses unsigned 32-bit integers to simulate
-// unsigned 64-bit integers (timestamps) multiplied by float (period).
-// The arguments pass to timestamp internal pipeline:
-// - The timestamps buffer contains the original timestamps resolved from query set (created
+// Test the accuracy of timestamp compute shader which uses unsigned 32-bit integers to simulate
+// unsigned 64-bit integers (timestamps) multiplied by float (period).
+// The arguments pass to timestamp internal pipeline:
+// - The timestamps buffer contains the original timestamps resolved from query set (created
// manually here), and will be used to store the results processed by the compute shader.
// Expect 0 for unavailable timestamps and nanoseconds for available timestamps in an expected
// error tolerance ratio.
-// - The availability buffer passes the data of which slot in timestamps buffer is an initialized
+// - The availability buffer passes the data of which slot in timestamps buffer is an initialized
// timestamp.
-// - The params buffer passes the timestamp count, the offset in timestamps buffer and the
+// - The params buffer passes the timestamp count, the offset in timestamps buffer and the
// timestamp period (here use GPU frequency (HZ) on Intel D3D12 to calculate the period in
// ns for testing).
TEST_P(QueryInternalShaderTests, TimestampComputeShader) {