Condense namespaces in tint/.
This PR condenses the namespaces in the tint/ folder. Change-Id: Ia8d712f8c356b2714ebfa36443a4d78750293ce6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86039 Reviewed-by: Ben Clayton <bclayton@google.com> Auto-Submit: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
parent
612a59be41
commit
8155b9dada
|
@ -28,16 +28,18 @@
|
||||||
#include "src/tint/symbol.h"
|
#include "src/tint/symbol.h"
|
||||||
#include "src/tint/traits.h"
|
#include "src/tint/traits.h"
|
||||||
|
|
||||||
|
// Forward declarations
|
||||||
|
namespace tint::ast {
|
||||||
|
class FunctionList;
|
||||||
|
class Node;
|
||||||
|
} // namespace tint::ast
|
||||||
|
|
||||||
namespace tint {
|
namespace tint {
|
||||||
|
|
||||||
// Forward declarations
|
// Forward Declarations
|
||||||
class CloneContext;
|
class CloneContext;
|
||||||
class Program;
|
class Program;
|
||||||
class ProgramBuilder;
|
class ProgramBuilder;
|
||||||
namespace ast {
|
|
||||||
class FunctionList;
|
|
||||||
class Node;
|
|
||||||
} // namespace ast
|
|
||||||
|
|
||||||
ProgramID ProgramIDOf(const Program*);
|
ProgramID ProgramIDOf(const Program*);
|
||||||
ProgramID ProgramIDOf(const ProgramBuilder*);
|
ProgramID ProgramIDOf(const ProgramBuilder*);
|
||||||
|
|
|
@ -24,17 +24,16 @@
|
||||||
#include "src/tint/sem/type_manager.h"
|
#include "src/tint/sem/type_manager.h"
|
||||||
#include "src/tint/symbol_table.h"
|
#include "src/tint/symbol_table.h"
|
||||||
|
|
||||||
|
// Forward Declarations
|
||||||
|
namespace tint::ast {
|
||||||
|
class Module;
|
||||||
|
} // namespace tint::ast
|
||||||
|
|
||||||
namespace tint {
|
namespace tint {
|
||||||
|
|
||||||
// Forward declarations
|
// Forward declarations
|
||||||
class CloneContext;
|
class CloneContext;
|
||||||
|
|
||||||
namespace ast {
|
|
||||||
|
|
||||||
class Module;
|
|
||||||
|
|
||||||
} // namespace ast
|
|
||||||
|
|
||||||
/// Program holds the AST, Type information and SymbolTable for a tint program.
|
/// Program holds the AST, Type information and SymbolTable for a tint program.
|
||||||
class Program {
|
class Program {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -99,11 +99,9 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Forward declarations
|
// Forward declarations
|
||||||
namespace tint {
|
namespace tint::ast {
|
||||||
namespace ast {
|
|
||||||
class VariableDeclStatement;
|
class VariableDeclStatement;
|
||||||
} // namespace ast
|
} // namespace tint::ast
|
||||||
} // namespace tint
|
|
||||||
|
|
||||||
namespace tint {
|
namespace tint {
|
||||||
class CloneContext;
|
class CloneContext;
|
||||||
|
|
|
@ -16,8 +16,7 @@
|
||||||
|
|
||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
|
|
||||||
namespace tint {
|
namespace tint::traits {
|
||||||
namespace traits {
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
struct S {};
|
struct S {};
|
||||||
|
@ -231,5 +230,4 @@ TEST(SliceTuple, MixedTupleSliceHighPart) {
|
||||||
static_assert(std::is_same_v<std::tuple_element_t<1, sliced>, float>);
|
static_assert(std::is_same_v<std::tuple_element_t<1, sliced>, float>);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace traits
|
} // namespace tint::traits
|
||||||
} // namespace tint
|
|
||||||
|
|
Loading…
Reference in New Issue