Changeset ef05cf0
- Timestamp:
- May 1, 2025, 11:29:29 AM (5 months ago)
- Branches:
- master
- Children:
- 57c7e6c4
- Parents:
- b1f225e5
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/prelude/prelude-gen.cc
rb1f225e5 ref05cf0 149 149 } 150 150 151 template <typename... T> 152 constexpr auto make_array(T&&... values) -> 153 std::array< 154 typename std::decay<typename std::common_type<T...>::type>::type, 155 sizeof...(T)> 156 { 157 return std::array< 158 typename std::decay< 159 typename std::common_type<T...>::type>::type, 160 sizeof...(T)>{{std::forward<T>(values)...}}; 151 template<typename... T> 152 using make_array_t = std::array<std::decay_t<std::common_type_t<T...>>, sizeof...(T)>; 153 154 template<typename... T> 155 constexpr make_array_t<T...> make_array(T&&... values) { 156 return make_array_t<T...>{{std::forward<T>(values)...}}; 161 157 } 162 158 -
src/InitTweak/InitTweak.cpp
rb1f225e5 ref05cf0 68 68 }; 69 69 70 struct InitDepthChecker {70 struct InitDepthChecker : public ast::WithShortCircuiting { 71 71 bool result = true; 72 72 const ast::Type * type; … … 86 86 void postvisit( ast::ListInit const * ) { 87 87 curDepth--; 88 } 89 void previsit( ast::SingleInit const * ) { 90 // We don't want to visit the value field. 91 visit_children = false; 88 92 } 89 93 }; -
src/Parser/TypeData.cpp
rb1f225e5 ref05cf0 737 737 location, 738 738 "?=?", 739 {}, // forall740 {}, // assertions741 739 { 742 740 new ast::ObjectDecl( … … 779 777 location, 780 778 "?{}", 781 {}, // forall782 {}, // assertions783 779 { 784 780 new ast::ObjectDecl( … … 802 798 location, 803 799 "?{}", 804 {}, // forall805 {}, // assertions806 800 { 807 801 new ast::ObjectDecl( … … 834 828 location, 835 829 "^?{}", 836 {}, // forall837 {}, // assertions838 830 { 839 831 new ast::ObjectDecl( … … 882 874 location, 883 875 "?=?", 884 {}, // forall885 {}, // assertions886 876 { 887 877 new ast::ObjectDecl( … … 924 914 location, 925 915 "?{}", 926 {}, // forall927 {}, // assertions928 916 { 929 917 new ast::ObjectDecl( … … 948 936 location, 949 937 "?{}", 950 {}, // forall951 {}, // assertions952 938 { 953 939 new ast::ObjectDecl( … … 981 967 location, 982 968 "^?{}", 983 {}, // forall984 {}, // assertions985 969 { 986 970 new ast::ObjectDecl(
Note:
See TracChangeset
for help on using the changeset viewer.