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/group_attribute.h b/src/tint/ast/group_attribute.h
index de7015b..a559461 100644
--- a/src/tint/ast/group_attribute.h
+++ b/src/tint/ast/group_attribute.h
@@ -23,25 +23,25 @@
/// A group attribute
class GroupAttribute final : public Castable<GroupAttribute, Attribute> {
- public:
- /// constructor
- /// @param pid the identifier of the program that owns this node
- /// @param src the source of this node
- /// @param value the group value
- GroupAttribute(ProgramID pid, const Source& src, uint32_t value);
- ~GroupAttribute() override;
+ public:
+ /// constructor
+ /// @param pid the identifier of the program that owns this node
+ /// @param src the source of this node
+ /// @param value the group value
+ GroupAttribute(ProgramID pid, const Source& src, uint32_t value);
+ ~GroupAttribute() 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 GroupAttribute* 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 GroupAttribute* Clone(CloneContext* ctx) const override;
- /// The group value
- const uint32_t value;
+ /// The group value
+ const uint32_t value;
};
} // namespace tint::ast