- Timestamp:
- Jul 5, 2024, 11:43:23 AM (6 months ago)
- Branches:
- master
- Children:
- 550afde2
- Parents:
- 8c55d34
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
r8c55d34 rc2cf2d0 261 261 262 262 ConstantExpr * ConstantExpr::from_string( const CodeLocation & loc, const std::string & str ) { 263 const Type * charType = new BasicType( BasicKind::Char );263 const Type * charType = new BasicType( BasicKind::Char, ast::CV::Const ); 264 264 // Adjust the length of the string for the terminator. 265 265 const Expr * strSize = from_ulong( loc, str.size() + 1 );
Note: See TracChangeset
for help on using the changeset viewer.