]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/debug.h
Don't return references from apply functions
[libs/gl.git] / source / glsl / debug.h
index a5dae0905c3dec3b5d0b01f644a4da8a18eac4fc..da888198414f8a7d891a7884a5ddbedd45d7b4cd 100644 (file)
@@ -37,15 +37,16 @@ private:
        std::vector<TreeChars> tree;
 
 public:
-       const std::string &apply(Stage &);
+       std::string apply(Stage &);
 
 private:
        void append(const std::string &);
+       void append(const Node &, const std::string &);
        void append_subtree(const std::vector<Branch> &);
+       void append_subtree(Node &);
        void begin_sub();
        void last_branch();
        void end_sub();
-       void annotated_branch(const std::string &, Node &);
        unsigned get_label(const Node &);
        std::string format_type(TypeDeclaration *);
 
@@ -54,7 +55,6 @@ private:
 
        virtual void visit(Block &);
        virtual void visit(Literal &);
-       virtual void visit(ParenthesizedExpression &);
        virtual void visit(VariableReference &);
        virtual void visit(InterfaceBlockReference &);
        virtual void visit(MemberAccess &);