Changes in src/SynTree/ApplicationExpr.cc [849720f:462a7c7]
- File:
-
- 1 edited
-
src/SynTree/ApplicationExpr.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/ApplicationExpr.cc
r849720f r462a7c7 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Mon Aug 12 14:28:00 201913 // Update Count : 511 // Last Modified By : Rob Schluntz 12 // Last Modified On : Tue Apr 26 12:41:06 2016 13 // Update Count : 4 14 14 // 15 15 … … 25 25 #include "Declaration.h" // for Declaration 26 26 #include "Expression.h" // for ParamEntry, ApplicationExpr, Expression 27 #include "InitTweak/InitTweak.h" // for getFunction28 27 #include "ResolvExpr/typeops.h" // for extractResultType 29 28 #include "Type.h" // for Type, PointerType, FunctionType … … 77 76 } 78 77 79 bool ApplicationExpr::get_lvalue() const {80 // from src/GenPoly/Lvalue.cc: isIntrinsicReference81 static std::set<std::string> lvalueFunctions = { "*?", "?[?]" };82 if ( const DeclarationWithType * func = InitTweak::getFunction( this ) ) {83 return func->linkage == LinkageSpec::Intrinsic && lvalueFunctions.count(func->name);84 }85 return false;86 }87 88 78 void ApplicationExpr::print( std::ostream &os, Indenter indent ) const { 89 79 os << "Application of" << std::endl << indent+1;
Note:
See TracChangeset
for help on using the changeset viewer.