]> git.tdb.fi Git - libs/gl.git/commit
Refactor the GLSL compiler to use unique pointers
authorMikko Rasa <tdb@tdb.fi>
Sun, 17 Dec 2023 08:43:03 +0000 (10:43 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 17 Dec 2023 09:23:37 +0000 (11:23 +0200)
commitaac16a1dd54d78972c5b20c6f78e035299187d55
tree232b07ee82c2e298a4c17c961535b9eb6aa76415
parentd3fde4ac374b4047aff2b15efa7acd12a268e4f3
Refactor the GLSL compiler to use unique pointers

Both clone and move assignments are now explicit, although NodePtr still
has an implicitly cloning copy constructor to facilitate automatically
generated copy constructors in the node classes.  Node containers wrap
the std container instead of inheriting and only allow adding elements
by move.
21 files changed:
source/glsl/builtin.cpp
source/glsl/compiler.cpp
source/glsl/debug.cpp
source/glsl/finalize.cpp
source/glsl/finalize.h
source/glsl/generate.cpp
source/glsl/generate.h
source/glsl/optimize.cpp
source/glsl/optimize.h
source/glsl/output.cpp
source/glsl/parser.cpp
source/glsl/parser.h
source/glsl/reflect.cpp
source/glsl/resolve.cpp
source/glsl/resolve.h
source/glsl/spirv.cpp
source/glsl/syntax.cpp
source/glsl/syntax.h
source/glsl/validate.cpp
source/glsl/visitor.cpp
source/glsl/visitor.h