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/int_literal_expression.h b/src/tint/ast/int_literal_expression.h
index 9ca3105..1900aa7 100644
--- a/src/tint/ast/int_literal_expression.h
+++ b/src/tint/ast/int_literal_expression.h
@@ -20,22 +20,21 @@
namespace tint::ast {
/// An integer literal. This could be either signed or unsigned.
-class IntLiteralExpression
- : public Castable<IntLiteralExpression, LiteralExpression> {
- public:
- ~IntLiteralExpression() override;
+class IntLiteralExpression : public Castable<IntLiteralExpression, LiteralExpression> {
+ public:
+ ~IntLiteralExpression() override;
- /// @returns the literal value as a u32
- virtual uint32_t ValueAsU32() const = 0;
+ /// @returns the literal value as a u32
+ virtual uint32_t ValueAsU32() const = 0;
- /// @returns the literal value as an i32
- int32_t ValueAsI32() const { return static_cast<int32_t>(ValueAsU32()); }
+ /// @returns the literal value as an i32
+ int32_t ValueAsI32() const { return static_cast<int32_t>(ValueAsU32()); }
- protected:
- /// Constructor
- /// @param pid the identifier of the program that owns this node
- /// @param src the source of this node
- IntLiteralExpression(ProgramID pid, const Source& src);
+ protected:
+ /// Constructor
+ /// @param pid the identifier of the program that owns this node
+ /// @param src the source of this node
+ IntLiteralExpression(ProgramID pid, const Source& src);
}; // namespace ast
} // namespace tint::ast