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/increment_decrement_statement.h b/src/tint/ast/increment_decrement_statement.h
index f7882da..05b8478 100644
--- a/src/tint/ast/increment_decrement_statement.h
+++ b/src/tint/ast/increment_decrement_statement.h
@@ -21,33 +21,29 @@
namespace tint::ast {
/// An increment or decrement statement
-class IncrementDecrementStatement final
- : public Castable<IncrementDecrementStatement, Statement> {
- public:
- /// Constructor
- /// @param pid the identifier of the program that owns this node
- /// @param src the source of this node
- /// @param lhs the LHS expression
- /// @param inc `true` for increment, `false` for decrement
- IncrementDecrementStatement(ProgramID pid,
- const Source& src,
- const Expression* lhs,
- bool inc);
- /// Move constructor
- IncrementDecrementStatement(IncrementDecrementStatement&&);
- ~IncrementDecrementStatement() override;
+class IncrementDecrementStatement final : public Castable<IncrementDecrementStatement, Statement> {
+ public:
+ /// Constructor
+ /// @param pid the identifier of the program that owns this node
+ /// @param src the source of this node
+ /// @param lhs the LHS expression
+ /// @param inc `true` for increment, `false` for decrement
+ IncrementDecrementStatement(ProgramID pid, const Source& src, const Expression* lhs, bool inc);
+ /// Move constructor
+ IncrementDecrementStatement(IncrementDecrementStatement&&);
+ ~IncrementDecrementStatement() override;
- /// Clones this node and all transitive child nodes using the `CloneContext`
- /// `ctx`.
- /// @param ctx the clone context
- /// @return the newly cloned node
- const IncrementDecrementStatement* 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 IncrementDecrementStatement* Clone(CloneContext* ctx) const override;
- /// The LHS expression.
- const Expression* const lhs;
+ /// The LHS expression.
+ const Expression* const lhs;
- /// `true` for increment, `false` for decrement.
- bool increment;
+ /// `true` for increment, `false` for decrement.
+ bool increment;
};
} // namespace tint::ast