Changeset f238fcc2 for src/SynTree
- Timestamp:
- Mar 21, 2022, 3:17:37 PM (2 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- 4390fb6
- Parents:
- 3e54399
- Location:
- src/SynTree
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/BasicType.cc
r3e54399 rf238fcc2 29 29 } 30 30 31 bool BasicType::isWholeNumber() const { 32 return kind == Bool || 33 kind ==Char || 34 kind == SignedChar || 35 kind == UnsignedChar || 36 kind == ShortSignedInt || 37 kind == ShortUnsignedInt || 38 kind == SignedInt || 39 kind == UnsignedInt || 40 kind == LongSignedInt || 41 kind == LongUnsignedInt || 42 kind == LongLongSignedInt || 43 kind ==LongLongUnsignedInt || 44 kind == SignedInt128 || 45 kind == UnsignedInt128; 46 } 47 31 48 bool BasicType::isInteger() const { 32 49 return kind <= UnsignedInt128; -
src/SynTree/Type.h
r3e54399 rf238fcc2 268 268 virtual Type *acceptMutator( Mutator & m ) override { return m.mutate( this ); } 269 269 virtual void print( std::ostream & os, Indenter indent = {} ) const override; 270 270 bool isWholeNumber() const; 271 271 bool isInteger() const; 272 272 };
Note: See TracChangeset
for help on using the changeset viewer.