]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
parser: use 'override' keyword in subclasses
authorJustin Viiret <justin.viiret@intel.com>
Tue, 3 Nov 2015 05:11:56 +0000 (16:11 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Tue, 10 Nov 2015 03:36:38 +0000 (14:36 +1100)
src/parser/check_refs.cpp
src/parser/prefilter.cpp
src/parser/shortcut_literal.cpp
src/parser/unsupported.cpp

index 6307a06ad5d92641faa5dbe3a516fc2e6037c9ed..ad81ae7601cf14031f83fc1fe95c93d0636c6a48 100644 (file)
@@ -57,7 +57,7 @@ public:
     ReferenceVisitor(size_t num_groups, const flat_set<string> &targets)
         : num_ids(num_groups), names(targets) {}
 
-    ~ReferenceVisitor();
+    ~ReferenceVisitor() override;
 
     void invalid_index(const char *component, unsigned id) {
         assert(component);
index de99d9f1de88651602f995ee2a32954b3f6fbfb5..f5a0c66c88ae24bf8ac98f84bacd277f62e07ca3 100644 (file)
@@ -201,7 +201,7 @@ const ComponentSequence *findCapturingGroup(const Component *root,
 class PrefilterVisitor : public DefaultComponentVisitor {
 public:
     PrefilterVisitor(Component *c, const ParseMode &m) : root(c), mode(m) {}
-    ~PrefilterVisitor();
+    ~PrefilterVisitor() override;
 
     /** \brief Calls the visitor (recursively) on a new replacement component
      * we've just created. Takes care of freeing it if the sequence is itself
index d2b77dc539d9ad3469b815b93ffb39d31906b7c7..f6f5d3837e3209cb28e887f9372e88d567408688 100644 (file)
@@ -64,7 +64,7 @@ namespace ue2 {
  */
 class ConstructLiteralVisitor : public ConstComponentVisitor {
 public:
-    ~ConstructLiteralVisitor();
+    ~ConstructLiteralVisitor() override;
 
     /** \brief Thrown if this component does not represent a literal. */
     struct NotLiteral {};
index b0b15d8d69832dcc160a46dbcf573b1b99306147..c97a5750393e79f86a7095792bc7717325c29e80 100644 (file)
@@ -44,7 +44,7 @@ namespace ue2 {
  * an unsupported component. */
 class UnsupportedVisitor : public DefaultConstComponentVisitor {
 public:
-    ~UnsupportedVisitor();
+    ~UnsupportedVisitor() override;
     void pre(const ComponentAssertion &) override {
         throw ParseError("Zero-width assertions are not supported.");
     }