Consistent formatting for Dawn/Tint.
This CL updates the clang format files to have a single shared format
between Dawn and Tint. The major changes are tabs are 4 spaces, lines
are 100 columns and namespaces are not indented.
Bug: dawn:1339
Change-Id: I4208742c95643998d9fd14e77a9cc558071ded39
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/87603
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
diff --git a/src/tint/sem/bool.h b/src/tint/sem/bool.h
index 4084595..aae48d8 100644
--- a/src/tint/sem/bool.h
+++ b/src/tint/sem/bool.h
@@ -29,38 +29,38 @@
/// A boolean type
class Bool final : public Castable<Bool, Type> {
- public:
- /// Constructor
- Bool();
- /// Move constructor
- Bool(Bool&&);
- ~Bool() override;
+ public:
+ /// Constructor
+ Bool();
+ /// Move constructor
+ Bool(Bool&&);
+ ~Bool() override;
- /// @returns a hash of the type.
- size_t Hash() const override;
+ /// @returns a hash of the type.
+ size_t Hash() const override;
- /// @param other the other type to compare against
- /// @returns true if the this type is equal to the given type
- bool Equals(const Type& other) const override;
+ /// @param other the other type to compare against
+ /// @returns true if the this type is equal to the given type
+ bool Equals(const Type& other) const override;
- /// @param symbols the program's symbol table
- /// @returns the name for this type that closely resembles how it would be
- /// declared in WGSL.
- std::string FriendlyName(const SymbolTable& symbols) const override;
+ /// @param symbols the program's symbol table
+ /// @returns the name for this type that closely resembles how it would be
+ /// declared in WGSL.
+ std::string FriendlyName(const SymbolTable& symbols) const override;
- /// @returns true if constructible as per
- /// https://gpuweb.github.io/gpuweb/wgsl/#constructible-types
- bool IsConstructible() const override;
+ /// @returns true if constructible as per
+ /// https://gpuweb.github.io/gpuweb/wgsl/#constructible-types
+ bool IsConstructible() const override;
- /// @returns the size in bytes of the type.
- /// @note: booleans are not host-sharable, but still may exist in workgroup
- /// storage.
- uint32_t Size() const override;
+ /// @returns the size in bytes of the type.
+ /// @note: booleans are not host-sharable, but still may exist in workgroup
+ /// storage.
+ uint32_t Size() const override;
- /// @returns the alignment in bytes of the type.
- /// @note: booleans are not host-sharable, but still may exist in workgroup
- /// storage.
- uint32_t Align() const override;
+ /// @returns the alignment in bytes of the type.
+ /// @note: booleans are not host-sharable, but still may exist in workgroup
+ /// storage.
+ uint32_t Align() const override;
};
} // namespace tint::sem