retdec
return_validator.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_LLVMIR2HLL_VALIDATOR_VALIDATORS_RETURN_VALIDATOR_H
8 #define RETDEC_LLVMIR2HLL_VALIDATOR_VALIDATORS_RETURN_VALIDATOR_H
9 
10 #include <string>
11 
14 
15 namespace retdec {
16 namespace llvmir2hll {
17 
28 class ReturnValidator: public Validator {
29 public:
30  virtual std::string getId() const override;
31 
32  static ShPtr<Validator> create();
33 
34 private:
36 
40  virtual void visit(ShPtr<ReturnStmt> stmt) override;
42 };
43 
44 } // namespace llvmir2hll
45 } // namespace retdec
46 
47 #endif
virtual void visit(ShPtr< GlobalVarDef > varDef) override
Definition: ordered_all_visitor.cpp:95
A validator which checks returns from functions.
Definition: return_validator.h:28
virtual std::string getId() const override
Definition: return_validator.cpp:33
ReturnValidator()
Constructs a new validator.
Definition: return_validator.cpp:24
virtual void visit(ShPtr< GlobalVarDef > varDef) override
Definition: ordered_all_visitor.cpp:95
static ShPtr< Validator > create()
Creates a new validator.
Definition: return_validator.cpp:29
A base class for all validators.
Definition: validator.h:35
A library providing API for working with back-end IR.
std::shared_ptr< T > ShPtr
An alias for a shared pointer.
Definition: smart_ptr.h:18
Definition: archive_wrapper.h:19
Declarations, aliases, macros, etc. for the use of smart pointers.
A base class for all validators.