Ignore:
Timestamp:
Nov 7, 2017, 7:32:13 PM (2 years ago)
Author:
cameron
Message:

The re::Any type now maps to a CC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_any.h

    r5267 r5728  
    11/*
    2  *  Copyright (c) 2014 International Characters.
     2 *  Copyright (c) 2017 International Characters.
    33 *  This software is licensed to the public under the Open Software License 3.0.
    44 *  icgrep is a trademark of International Characters.
     
    99
    1010#include "re_re.h"
     11#include "re_cc.h"
     12#include <UCD/unicode_set.h>
     13#include <llvm/Support/Casting.h>
    1114
    1215namespace re {
     
    1518public:
    1619    static inline bool classof(const RE * re) {
    17         return re->getClassTypeId() == ClassTypeId::Any;
     20        return (re->getClassTypeId() == ClassTypeId::CC) && llvm::cast<CC>(re)->full();
    1821    }
    1922    static inline bool classof(const void *) {
     
    2124    }
    2225protected:
    23     friend Any * makeAny();
    2426    Any() : RE(ClassTypeId::Any) {}
    2527    virtual ~Any() {}
    2628};
    2729
    28 inline Any * makeAny() {
    29     return new Any();
     30inline CC * makeAny() {
     31    return makeCC(0, UCD::UNICODE_MAX);
    3032}
    3133
Note: See TracChangeset for help on using the changeset viewer.