Fixup all doxygen warnings
No idea why the operator<<() functions have started moaning now. Change-Id: I338b96c53888f4ddb8e42283a6dcda7708e567f0 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/47431 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
parent
1d618b1664
commit
962d46ec56
1
Doxyfile
1
Doxyfile
|
@ -787,7 +787,6 @@ WARN_LOGFILE =
|
||||||
|
|
||||||
INPUT = README.md \
|
INPUT = README.md \
|
||||||
CODE_OF_CONDUCT.md \
|
CODE_OF_CONDUCT.md \
|
||||||
CONTRIBUTING.md \
|
|
||||||
src
|
src
|
||||||
|
|
||||||
# This tag can be used to specify the character encoding of the source files
|
# This tag can be used to specify the character encoding of the source files
|
||||||
|
|
|
@ -30,6 +30,9 @@ enum class AccessControl {
|
||||||
kReadWrite
|
kReadWrite
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// @param out the std::ostream to write to
|
||||||
|
/// @param access the AccessControl
|
||||||
|
/// @return the std::ostream so calls can be chained
|
||||||
std::ostream& operator<<(std::ostream& out, AccessControl access);
|
std::ostream& operator<<(std::ostream& out, AccessControl access);
|
||||||
|
|
||||||
} // namespace ast
|
} // namespace ast
|
||||||
|
|
|
@ -182,6 +182,8 @@ inline bool BinaryExpression::IsBitshift() const {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// @returns the human readable name of the given BinaryOp
|
||||||
|
/// @param op the BinaryOp
|
||||||
constexpr const char* FriendlyName(BinaryOp op) {
|
constexpr const char* FriendlyName(BinaryOp op) {
|
||||||
switch (op) {
|
switch (op) {
|
||||||
case BinaryOp::kNone:
|
case BinaryOp::kNone:
|
||||||
|
@ -226,6 +228,9 @@ constexpr const char* FriendlyName(BinaryOp op) {
|
||||||
return "INVALID";
|
return "INVALID";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// @param out the std::ostream to write to
|
||||||
|
/// @param op the BinaryOp
|
||||||
|
/// @return the std::ostream so calls can be chained
|
||||||
inline std::ostream& operator<<(std::ostream& out, BinaryOp op) {
|
inline std::ostream& operator<<(std::ostream& out, BinaryOp op) {
|
||||||
out << FriendlyName(op);
|
out << FriendlyName(op);
|
||||||
return out;
|
return out;
|
||||||
|
|
|
@ -41,6 +41,9 @@ enum class Builtin {
|
||||||
kPointSize,
|
kPointSize,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// @param out the std::ostream to write to
|
||||||
|
/// @param builtin the Builtin
|
||||||
|
/// @return the std::ostream so calls can be chained
|
||||||
std::ostream& operator<<(std::ostream& out, Builtin builtin);
|
std::ostream& operator<<(std::ostream& out, Builtin builtin);
|
||||||
|
|
||||||
} // namespace ast
|
} // namespace ast
|
||||||
|
|
|
@ -23,6 +23,9 @@ namespace ast {
|
||||||
/// The pipeline stage
|
/// The pipeline stage
|
||||||
enum class PipelineStage { kNone = -1, kVertex, kFragment, kCompute };
|
enum class PipelineStage { kNone = -1, kVertex, kFragment, kCompute };
|
||||||
|
|
||||||
|
/// @param out the std::ostream to write to
|
||||||
|
/// @param stage the PipelineStage
|
||||||
|
/// @return the std::ostream so calls can be chained
|
||||||
std::ostream& operator<<(std::ostream& out, PipelineStage stage);
|
std::ostream& operator<<(std::ostream& out, PipelineStage stage);
|
||||||
|
|
||||||
} // namespace ast
|
} // namespace ast
|
||||||
|
|
|
@ -35,11 +35,15 @@ enum class StorageClass {
|
||||||
};
|
};
|
||||||
|
|
||||||
/// @returns true if the StorageClass is host-shareable
|
/// @returns true if the StorageClass is host-shareable
|
||||||
|
/// @param sc the StorageClass
|
||||||
/// @see https://gpuweb.github.io/gpuweb/wgsl.html#host-shareable
|
/// @see https://gpuweb.github.io/gpuweb/wgsl.html#host-shareable
|
||||||
inline bool IsHostShareable(StorageClass sc) {
|
inline bool IsHostShareable(StorageClass sc) {
|
||||||
return sc == ast::StorageClass::kUniform || sc == ast::StorageClass::kStorage;
|
return sc == ast::StorageClass::kUniform || sc == ast::StorageClass::kStorage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// @param out the std::ostream to write to
|
||||||
|
/// @param sc the StorageClass
|
||||||
|
/// @return the std::ostream so calls can be chained
|
||||||
std::ostream& operator<<(std::ostream& out, StorageClass sc);
|
std::ostream& operator<<(std::ostream& out, StorageClass sc);
|
||||||
|
|
||||||
} // namespace ast
|
} // namespace ast
|
||||||
|
|
|
@ -21,11 +21,14 @@
|
||||||
namespace tint {
|
namespace tint {
|
||||||
namespace ast {
|
namespace ast {
|
||||||
|
|
||||||
/// Helper class for testing
|
/// Helper base class for testing
|
||||||
template <typename BASE>
|
template <typename BASE>
|
||||||
class TestHelperBase : public BASE, public ProgramBuilder {};
|
class TestHelperBase : public BASE, public ProgramBuilder {};
|
||||||
|
|
||||||
|
/// Helper class for testing that derives from testing::Test.
|
||||||
using TestHelper = TestHelperBase<testing::Test>;
|
using TestHelper = TestHelperBase<testing::Test>;
|
||||||
|
|
||||||
|
/// Helper class for testing that derives from `T`.
|
||||||
template <typename T>
|
template <typename T>
|
||||||
using TestParamHelper = TestHelperBase<testing::TestWithParam<T>>;
|
using TestParamHelper = TestHelperBase<testing::TestWithParam<T>>;
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,9 @@ namespace ast {
|
||||||
/// The unary op
|
/// The unary op
|
||||||
enum class UnaryOp { kNegation = 0, kNot };
|
enum class UnaryOp { kNegation = 0, kNot };
|
||||||
|
|
||||||
|
/// @param out the std::ostream to write to
|
||||||
|
/// @param mod the UnaryOp
|
||||||
|
/// @return the std::ostream so calls can be chained
|
||||||
std::ostream& operator<<(std::ostream& out, UnaryOp mod);
|
std::ostream& operator<<(std::ostream& out, UnaryOp mod);
|
||||||
|
|
||||||
} // namespace ast
|
} // namespace ast
|
||||||
|
|
|
@ -58,6 +58,7 @@ class StructMemberAccess
|
||||||
/// Constructor
|
/// Constructor
|
||||||
/// @param declaration the AST node
|
/// @param declaration the AST node
|
||||||
/// @param type the resolved type of the expression
|
/// @param type the resolved type of the expression
|
||||||
|
/// @param statement the statement that owns this expression
|
||||||
/// @param member the structure member
|
/// @param member the structure member
|
||||||
StructMemberAccess(ast::MemberAccessorExpression* declaration,
|
StructMemberAccess(ast::MemberAccessorExpression* declaration,
|
||||||
type::Type* type,
|
type::Type* type,
|
||||||
|
@ -81,6 +82,7 @@ class Swizzle : public Castable<Swizzle, MemberAccessorExpression> {
|
||||||
/// Constructor
|
/// Constructor
|
||||||
/// @param declaration the AST node
|
/// @param declaration the AST node
|
||||||
/// @param type the resolved type of the expression
|
/// @param type the resolved type of the expression
|
||||||
|
/// @param statement the statement that
|
||||||
/// @param indices the swizzle indices
|
/// @param indices the swizzle indices
|
||||||
Swizzle(ast::MemberAccessorExpression* declaration,
|
Swizzle(ast::MemberAccessorExpression* declaration,
|
||||||
type::Type* type,
|
type::Type* type,
|
||||||
|
|
Loading…
Reference in New Issue