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/compound_assignment_statement.h b/src/tint/ast/compound_assignment_statement.h
index 030efea..ba9a558 100644
--- a/src/tint/ast/compound_assignment_statement.h
+++ b/src/tint/ast/compound_assignment_statement.h
@@ -22,38 +22,37 @@
namespace tint::ast {
/// A compound assignment statement
-class CompoundAssignmentStatement final
- : public Castable<CompoundAssignmentStatement, Statement> {
- public:
- /// Constructor
- /// @param program_id the identifier of the program that owns this node
- /// @param source the compound assignment statement source
- /// @param lhs the left side of the expression
- /// @param rhs the right side of the expression
- /// @param op the binary operator
- CompoundAssignmentStatement(ProgramID program_id,
- const Source& source,
- const Expression* lhs,
- const Expression* rhs,
- BinaryOp op);
- /// Move constructor
- CompoundAssignmentStatement(CompoundAssignmentStatement&&);
- ~CompoundAssignmentStatement() override;
+class CompoundAssignmentStatement final : public Castable<CompoundAssignmentStatement, Statement> {
+ public:
+ /// Constructor
+ /// @param program_id the identifier of the program that owns this node
+ /// @param source the compound assignment statement source
+ /// @param lhs the left side of the expression
+ /// @param rhs the right side of the expression
+ /// @param op the binary operator
+ CompoundAssignmentStatement(ProgramID program_id,
+ const Source& source,
+ const Expression* lhs,
+ const Expression* rhs,
+ BinaryOp op);
+ /// Move constructor
+ CompoundAssignmentStatement(CompoundAssignmentStatement&&);
+ ~CompoundAssignmentStatement() override;
- /// Clones this node and all transitive child nodes using the `CloneContext`
- /// `ctx`.
- /// @param ctx the clone context
- /// @return the newly cloned node
- const CompoundAssignmentStatement* 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 CompoundAssignmentStatement* Clone(CloneContext* ctx) const override;
- /// left side expression
- const Expression* const lhs;
+ /// left side expression
+ const Expression* const lhs;
- /// right side expression
- const Expression* const rhs;
+ /// right side expression
+ const Expression* const rhs;
- /// the binary operator
- const BinaryOp op;
+ /// the binary operator
+ const BinaryOp op;
};
} // namespace tint::ast