mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2025-01-22 21:35:29 +00:00
Fix compiler warning about unnecessary ";"
... on clang-3.7
This commit is contained in:
parent
c3c6037241
commit
86f903b65e
6
peglib.h
6
peglib.h
@ -134,7 +134,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
struct placeholder {
|
struct placeholder {
|
||||||
virtual ~placeholder() {};
|
virtual ~placeholder() {}
|
||||||
virtual placeholder* clone() const = 0;
|
virtual placeholder* clone() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -571,7 +571,7 @@ class Ope
|
|||||||
public:
|
public:
|
||||||
struct Visitor;
|
struct Visitor;
|
||||||
|
|
||||||
virtual ~Ope() {};
|
virtual ~Ope() {}
|
||||||
virtual size_t parse(const char* s, size_t n, SemanticValues& sv, Context& c, any& dt) const = 0;
|
virtual size_t parse(const char* s, size_t n, SemanticValues& sv, Context& c, any& dt) const = 0;
|
||||||
virtual void accept(Visitor& v) = 0;
|
virtual void accept(Visitor& v) = 0;
|
||||||
};
|
};
|
||||||
@ -1492,7 +1492,7 @@ inline std::shared_ptr<Ope> DefinitionReference::get_rule() const {
|
|||||||
}
|
}
|
||||||
assert(rule_);
|
assert(rule_);
|
||||||
return rule_;
|
return rule_;
|
||||||
};
|
}
|
||||||
|
|
||||||
inline void Sequence::accept(Visitor& v) { v.visit(*this); }
|
inline void Sequence::accept(Visitor& v) { v.visit(*this); }
|
||||||
inline void PrioritizedChoice::accept(Visitor& v) { v.visit(*this); }
|
inline void PrioritizedChoice::accept(Visitor& v) { v.visit(*this); }
|
||||||
|
Loading…
Reference in New Issue
Block a user