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/ast/struct_member_align_attribute.h b/src/tint/ast/struct_member_align_attribute.h
index d8e629e..10a6507 100644
--- a/src/tint/ast/struct_member_align_attribute.h
+++ b/src/tint/ast/struct_member_align_attribute.h
@@ -23,27 +23,26 @@
namespace tint::ast {
/// A struct member align attribute
-class StructMemberAlignAttribute final
- : public Castable<StructMemberAlignAttribute, Attribute> {
- public:
- /// constructor
- /// @param pid the identifier of the program that owns this node
- /// @param src the source of this node
- /// @param align the align value
- StructMemberAlignAttribute(ProgramID pid, const Source& src, uint32_t align);
- ~StructMemberAlignAttribute() override;
+class StructMemberAlignAttribute final : public Castable<StructMemberAlignAttribute, Attribute> {
+ public:
+ /// constructor
+ /// @param pid the identifier of the program that owns this node
+ /// @param src the source of this node
+ /// @param align the align value
+ StructMemberAlignAttribute(ProgramID pid, const Source& src, uint32_t align);
+ ~StructMemberAlignAttribute() override;
- /// @returns the WGSL name for the attribute
- std::string Name() const override;
+ /// @returns the WGSL name for the attribute
+ std::string Name() const override;
- /// Clones this node and all transitive child nodes using the `CloneContext`
- /// `ctx`.
- /// @param ctx the clone context
- /// @return the newly cloned node
- const StructMemberAlignAttribute* Clone(CloneContext* ctx) const override;
+ /// Clones this node and all transitive child nodes using the `CloneContext`
+ /// `ctx`.
+ /// @param ctx the clone context
+ /// @return the newly cloned node
+ const StructMemberAlignAttribute* Clone(CloneContext* ctx) const override;
- /// The align value
- const uint32_t align;
+ /// The align value
+ const uint32_t align;
};
} // namespace tint::ast