summaryrefslogtreecommitdiff
path: root/source/diagnostic.h
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2018-07-07 09:38:00 -0400
committerGitHub <noreply@github.com>2018-07-07 09:38:00 -0400
commit3dad1cda1168b56e5326305b395c25afa06feff2 (patch)
tree5b51a44170f0a4a1992de292ed5afea9b4bb4a3b /source/diagnostic.h
parent76e0bde19633fc8c45f7de52029e3d517b2e1561 (diff)
Change libspirv to spvtools namespace (#1678)
This CL changes all of the libspirv namespace code to spvtools to match the rest of the code base.
Diffstat (limited to 'source/diagnostic.h')
-rw-r--r--source/diagnostic.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/diagnostic.h b/source/diagnostic.h
index a36eb436..2b52bbc2 100644
--- a/source/diagnostic.h
+++ b/source/diagnostic.h
@@ -20,7 +20,7 @@
#include "spirv-tools/libspirv.hpp"
-namespace libspirv {
+namespace spvtools {
// A DiagnosticStream remembers the current position of the input and an error
// code, and captures diagnostic messages via the left-shift operator.
@@ -28,8 +28,7 @@ namespace libspirv {
// emitted during the destructor.
class DiagnosticStream {
public:
- DiagnosticStream(spv_position_t position,
- const spvtools::MessageConsumer& consumer,
+ DiagnosticStream(spv_position_t position, const MessageConsumer& consumer,
const std::string& disassembled_instruction,
spv_result_t error)
: position_(position),
@@ -60,7 +59,7 @@ class DiagnosticStream {
private:
std::ostringstream stream_;
spv_position_t position_;
- spvtools::MessageConsumer consumer_; // Message consumer callback.
+ MessageConsumer consumer_; // Message consumer callback.
std::string disassembled_instruction_;
spv_result_t error_;
};
@@ -75,6 +74,6 @@ void UseDiagnosticAsMessageConsumer(spv_context context,
std::string spvResultToString(spv_result_t res);
-} // namespace libspirv
+} // namespace spvtools
#endif // LIBSPIRV_DIAGNOSTIC_H_