Skip to content

Commit 0732580

Browse files
author
thk123
committed
Adding missing overrides
Clang warns for files that inconsistently use the override keyword so added the missing ones to jsil_language.
1 parent 71dec3d commit 0732580

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/jsil/jsil_language.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,49 +25,49 @@ class jsil_languaget:public languaget
2525
virtual bool preprocess(
2626
std::istream &instream,
2727
const std::string &path,
28-
std::ostream &outstream);
28+
std::ostream &outstream) override;
2929

3030
virtual bool parse(
3131
std::istream &instream,
32-
const std::string &path);
32+
const std::string &path) override;
3333

3434
virtual bool typecheck(
3535
symbol_tablet &context,
36-
const std::string &module);
36+
const std::string &module) override;
3737

38-
virtual bool final(symbol_tablet &context);
38+
virtual bool final(symbol_tablet &context) override;
3939

40-
virtual void show_parse(std::ostream &out);
40+
virtual void show_parse(std::ostream &out) override;
4141

4242
virtual ~jsil_languaget();
4343
jsil_languaget() { }
4444

4545
virtual bool from_expr(
4646
const exprt &expr,
4747
std::string &code,
48-
const namespacet &ns);
48+
const namespacet &ns) override;
4949

5050
virtual bool from_type(
5151
const typet &type,
5252
std::string &code,
53-
const namespacet &ns);
53+
const namespacet &ns) override;
5454

5555
virtual bool to_expr(
5656
const std::string &code,
5757
const std::string &module,
5858
exprt &expr,
59-
const namespacet &ns);
59+
const namespacet &ns) override;
6060

61-
virtual std::unique_ptr<languaget> new_language()
61+
virtual std::unique_ptr<languaget> new_language() override
6262
{ return util_make_unique<jsil_languaget>(); }
6363

64-
virtual std::string id() const { return "jsil"; }
65-
virtual std::string description() const
64+
virtual std::string id() const override { return "jsil"; }
65+
virtual std::string description() const override
6666
{ return "Javascript Intermediate Language"; }
67-
virtual std::set<std::string> extensions() const;
67+
virtual std::set<std::string> extensions() const override;
6868

69-
virtual void modules_provided(std::set<std::string> &modules);
70-
virtual bool interfaces(symbol_tablet &symbol_table);
69+
virtual void modules_provided(std::set<std::string> &modules) override;
70+
virtual bool interfaces(symbol_tablet &symbol_table) override;
7171

7272
virtual bool generate_start_function(
7373
const class symbolt &entry_function_symbol,

0 commit comments

Comments
 (0)