Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit d4a569e

Browse files
committed
Sema: put a member variable after functions
Our coding guidelines stipulate that member variables must come after the member functions in a class definition.
1 parent fb45cf6 commit d4a569e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tc/lang/sema.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ static inline TreeRef match_types(TreeRef a, TreeRef b) {
170170
/// variable objects.
171171
/// - checks that input variables are readonly.
172172
struct Sema {
173-
std::unordered_map<TreeRef, TreeRef> expr_to_type;
174-
175173
TreeRef typeOfExpr(TreeRef ref) {
176174
if (expr_to_type.count(ref) == 0) {
177175
throw ErrorReport(ref)
@@ -707,6 +705,8 @@ struct Sema {
707705
// allowed
708706
std::unordered_set<std::string> live_input_names;
709707

708+
std::unordered_map<TreeRef, TreeRef> expr_to_type;
709+
710710
std::unordered_set<std::string> inputParameters;
711711
std::unordered_set<std::string> nonTemporaries;
712712
};

0 commit comments

Comments
 (0)