- Timestamp:
- Jan 18, 2025, 3:46:06 PM (10 months ago)
- Branches:
- master
- Children:
- d0b6712
- Parents:
- fa59c40 (diff), df56e25 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- src/AST
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
rfa59c40 r8e90fd6 122 122 123 123 bool VariableExpr::get_lvalue() const { 124 // It isn't always an lvalue, but it is never an rvalue.124 // Special case for enumeration labels (more literals than variables): 125 125 if(dynamic_cast<const ast::EnumInstType *>(var->get_type())) return !var->isMember; 126 // The remaining uses are either actual variables (lvalues) or function 127 // names which are a special value catagory that can be treated as 128 // lvalues in the places we are worried about. 126 129 return true; 127 130 } -
src/AST/Stmt.hpp
rfa59c40 r8e90fd6 9 9 // Author : Aaron B. Moss 10 10 // Created On : Wed May 8 13:00:00 2019 11 // Last Modified By : Andrew Beach12 // Last Modified On : Wed Apr 5 10:34:00 202313 // Update Count : 3 711 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jan 17 14:18:56 2025 13 // Update Count : 38 14 14 // 15 15 … … 280 280 }; 281 281 282 // Branch control flow statement: goto ... or break or continue or fallthr u282 // Branch control flow statement: goto ... or break or continue or fallthrough 283 283 class BranchStmt final : public Stmt { 284 284 public:
Note:
See TracChangeset
for help on using the changeset viewer.