virtual ~Command() {}
protected:
- explicit Command(class Parser &ctx, Kind k) : _ctx(ctx), _kind(k) {}
+ Command(class Parser &ctx, Kind k) : _ctx(ctx), _kind(k) {}
private:
Parser &_ctx;
class Output : public Command {
public:
- explicit Output(Parser &ctx, StringRef outputFileName)
+ Output(Parser &ctx, StringRef outputFileName)
: Command(ctx, Kind::Output), _outputFileName(outputFileName) {}
static bool classof(const Command *c) { return c->getKind() == Kind::Output; }
class OutputFormat : public Command {
public:
- explicit OutputFormat(Parser &ctx, const SmallVectorImpl<StringRef> &formats)
+ OutputFormat(Parser &ctx, const SmallVectorImpl<StringRef> &formats)
: Command(ctx, Kind::OutputFormat) {
size_t numFormats = formats.size();
StringRef *formatsStart = getAllocator().Allocate<StringRef>(numFormats);
class OutputArch : public Command {
public:
- explicit OutputArch(Parser &ctx, StringRef arch)
+ OutputArch(Parser &ctx, StringRef arch)
: Command(ctx, Kind::OutputArch), _arch(arch) {}
static bool classof(const Command *c) {
bool _isDashlPrefix;
Path() : _asNeeded(false), _isDashlPrefix(false) {}
- explicit Path(StringRef path, bool asNeeded = false, bool isLib = false)
+ Path(StringRef path, bool asNeeded = false, bool isLib = false)
: _path(path), _asNeeded(asNeeded), _isDashlPrefix(isLib) {}
};
class Entry : public Command {
public:
- explicit Entry(Parser &ctx, StringRef entryName)
+ Entry(Parser &ctx, StringRef entryName)
: Command(ctx, Kind::Entry), _entryName(entryName) {}
static bool classof(const Command *c) { return c->getKind() == Kind::Entry; }
class SearchDir : public Command {
public:
- explicit SearchDir(Parser &ctx, StringRef searchPath)
+ SearchDir(Parser &ctx, StringRef searchPath)
: Command(ctx, Kind::SearchDir), _searchPath(searchPath) {}
static bool classof(const Command *c) {
virtual ~Expression() {}
protected:
- explicit Expression(class Parser &ctx, Kind k) : _ctx(ctx), _kind(k) {}
+ Expression(class Parser &ctx, Kind k) : _ctx(ctx), _kind(k) {}
private:
Parser &_ctx;
/// with a constant.
class Constant : public Expression {
public:
- explicit Constant(Parser &ctx, uint64_t num)
+ Constant(Parser &ctx, uint64_t num)
: Expression(ctx, Kind::Constant), _num(num) {}
void dump(raw_ostream &os) const override;
virtual ~InputSection() {}
protected:
- explicit InputSection(Parser &ctx, Kind k) : _ctx(ctx), _kind(k) {}
+ InputSection(Parser &ctx, Kind k) : _ctx(ctx), _kind(k) {}
private:
Parser &_ctx;