mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Use using directives to silence hiding warning
This commit is contained in:
parent
60dcd0c160
commit
4e80d22d79
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Intel Corporation
|
||||
* Copyright (c) 2015-2016, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@ -73,6 +73,8 @@ public:
|
||||
throw ParseError(str.str());
|
||||
}
|
||||
|
||||
using DefaultConstComponentVisitor::pre;
|
||||
|
||||
void pre(const ComponentBackReference &c) override {
|
||||
if (c.ref_id) {
|
||||
if (c.ref_id >= num_ids) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Intel Corporation
|
||||
* Copyright (c) 2015-2016, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@ -80,6 +80,9 @@ public:
|
||||
return numPositions <= MAX_REFERENT_POSITIONS;
|
||||
}
|
||||
|
||||
using DefaultConstComponentVisitor::pre;
|
||||
using DefaultConstComponentVisitor::post;
|
||||
|
||||
void pre(const AsciiComponentClass &) override {
|
||||
numPositions++;
|
||||
}
|
||||
@ -164,6 +167,8 @@ public:
|
||||
explicit FindSequenceVisitor(unsigned ref_id) : id(ref_id) {}
|
||||
explicit FindSequenceVisitor(const std::string &s) : name(s) {}
|
||||
|
||||
using DefaultConstComponentVisitor::pre;
|
||||
|
||||
void pre(const ComponentSequence &c) override {
|
||||
if (!name.empty()) {
|
||||
if (c.getCaptureName() == name) {
|
||||
@ -203,6 +208,8 @@ public:
|
||||
PrefilterVisitor(Component *c, const ParseMode &m) : root(c), mode(m) {}
|
||||
~PrefilterVisitor() override;
|
||||
|
||||
using DefaultComponentVisitor::visit;
|
||||
|
||||
/** \brief Calls the visitor (recursively) on a new replacement component
|
||||
* we've just created. Takes care of freeing it if the sequence is itself
|
||||
* replaced. */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Intel Corporation
|
||||
* Copyright (c) 2015-2016, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@ -45,6 +45,7 @@ namespace ue2 {
|
||||
class UnsupportedVisitor : public DefaultConstComponentVisitor {
|
||||
public:
|
||||
~UnsupportedVisitor() override;
|
||||
using DefaultConstComponentVisitor::pre;
|
||||
void pre(const ComponentAssertion &) override {
|
||||
throw ParseError("Zero-width assertions are not supported.");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user