solidity/test/tools/ossfuzz/antlr4-runtime/SolidityMutator.h
Bhargava Shastry e2f978c4c3 Draft
2020-08-26 10:13:18 +02:00

34 lines
1.0 KiB
C++

/*
This file is part of solidity.
solidity is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
solidity is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with solidity. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <test/tools/ossfuzz/antlr4-runtime/SolidityBaseVisitor.h>
class SolidityMutator: public SolidityBaseVisitor
{
public:
std::string toString()
{
return Out.str();
}
antlrcpp::Any visitPragmaDirective(SolidityParser::PragmaDirectiveContext* _ctx) override;
antlrcpp::Any visitImportDirective(SolidityParser::ImportDirectiveContext* _ctx) override;
private:
std::ostringstream Out;
};