Commit Graph

3556 Commits

Author SHA1 Message Date
kevstone 462683ef9e Fixed issue calling functions with address of vars 2024-01-25 00:03:42 +00:00
kevstone 86b20d68c2 Fixed issue with GribStatus ret values 2024-01-24 22:28:26 +00:00
kevstone b5f030abda Added literal mapping and conversion assistant 2024-01-24 21:50:11 +00:00
kevstone 337e983570 Improved function call conversion 2024-01-24 20:05:18 +00:00
kevstone e7da886ff0 Implemented NoneValue across hierarchy; invalid funcsig args no longer converted 2024-01-24 18:08:46 +00:00
kevstone 70a069533c Proper conversion of funcsig and funcbody args 2024-01-24 16:38:38 +00:00
kevstone 64b24dee6c Identify and remove (or comment out as appropriate) invalid types 2024-01-23 12:43:48 +00:00
kevstone 58f88b4b0e Fixed func pointer parse issue. Added Value decl ref and converter. 2024-01-23 10:09:39 +00:00
kevstone ab92b6114c Added logic for arg conversions, and a NONE arg for C vars that don't have a C++ equivalent 2024-01-22 22:28:20 +00:00
kevstone 31315e4cb5 Clang version of C++ code now generating 2024-01-21 21:12:50 +00:00
kevstone 36b9500011 Fixed rendering of function pointer 2024-01-20 23:27:28 +00:00
kevstone 5912873c04 Further debug info 2024-01-20 23:13:38 +00:00
kevstone f599a6ad4e Added extra debugging to help identify AST conversion errors 2024-01-20 20:16:53 +00:00
kevstone 4d208f0da6 Added new converters 2024-01-20 16:18:28 +00:00
Shahram Najm 67be77071b Merge branch 'develop' into convertion-inherit 2024-01-20 13:18:56 +00:00
kevstone 03db6927eb Fixed issue with member functions being forwartd declared 2024-01-19 22:03:43 +00:00
kevstone 21f62d27f3 Added objects/converters for other member function types 2024-01-19 19:48:44 +00:00
kevstone 3f459cf299 Refactor to allow consistent function object parsing 2024-01-19 19:04:52 +00:00
Shahram Najm 6776116c11 ECC-1749: grib_dump: No gap between offsets and key name 2024-01-19 17:18:29 +00:00
Shahram Najm 3c29611066 Cleanup 2024-01-19 14:57:17 +00:00
shahramn b2a6ef824f
Merge pull request #187 from ecmwf/feature/test_dynamic_step_native_type
Default native step type is string. It's long if unit is not shown.
2024-01-19 14:30:55 +00:00
Shahram Najm 501fa84cad Testing: Increase coverage 2024-01-19 12:44:37 +00:00
Shahram Najm 39571269c0 Dead code removal 2024-01-19 12:29:21 +00:00
Eugen Betke b8830c337b Default native step type is string. It's long if unit is not shown. 2024-01-19 09:29:16 +00:00
kevstone 3971f225fc Added function call converter 2024-01-19 07:49:21 +00:00
kevstone 6286735388 Added several converters 2024-01-18 19:33:52 +00:00
Shahram Najm 305f636ece Sub hourly: Dynamic native type for step, startStep and endStep for backward compatibility 2024-01-18 17:13:42 +00:00
kevstone 6c76e12ed4 Added classes for parsing literals, macros and return statements 2024-01-18 16:00:44 +00:00
Shahram Najm 92d3ec50eb Testing: GRIB2 local definitions 2024-01-18 15:52:10 +00:00
kevstone ce73909da6 Better for() generation 2024-01-18 14:53:47 +00:00
kevstone 42ad179867 Added compound statement and variable declaration converters 2024-01-18 14:41:38 +00:00
Shahram Najm d35419ec21 Accessors: Dead code removal (METAR message sizing) 2024-01-18 13:38:40 +00:00
kevstone 75dac9fab0 Added compound statement and parser 2024-01-18 10:25:49 +00:00
kevstone 6b8a687d48 Fix parsing bug; set extra debug control for AST parser (as it's noisy) 2024-01-18 08:55:09 +00:00
kevstone abb810a24c Added member function mapping 2024-01-17 17:43:04 +00:00
kevstone 1b71be9191 Added Clang versions of class member functions 2024-01-17 15:07:17 +00:00
Shahram Najm 0f3e710d33 Sub hourly: Native type of step and endStep for backward compatibility (Experimental idea) 2024-01-17 13:50:39 +00:00
Shahram Najm 77a71acf11 ECC-1748: Tools: grib_dump on index file should print the key types 2024-01-17 13:49:36 +00:00
kevstone 4ea4992bb3 Updates to c function object to represent any function (constructor etc) 2024-01-16 18:22:16 +00:00
kevstone 0fe3bb7f1f Tidy up 2024-01-16 16:20:35 +00:00
kevstone 97dd3bbc72 Added grib accessor CPP writer using Jinja 2024-01-16 15:55:46 +00:00
Shahram Najm 3b6e2de6fe Accessors: Evaluate grib_handle_of_accessor once 2024-01-16 13:40:57 +00:00
Shahram Najm 74048199a6 Cleanup 2024-01-15 16:24:11 +00:00
Eugen Betke fb4aeedeb5 Add pack_expression(), is_missing() and get_native_type() 2024-01-15 15:18:35 +00:00
kevstone cb7d4a30fc Added default member converters for AST 2024-01-15 14:39:33 +00:00
kevstone a6b515ed62 Cleaned up class member funcs in default converter 2024-01-15 14:15:14 +00:00
Eugen Betke fb8cd565ac Set correct unit 2024-01-15 12:37:21 +00:00
Shahram Najm 91b5c19105 Remove cerr 2024-01-15 11:36:21 +00:00
kevstone 9f4b5e1c31 Updated funcsig converter to support AST nodes 2024-01-15 11:15:08 +00:00
Shahram Najm bd2b261155 Merge branch 'feature/ECC-1620_sub-hourly' of github.com:ecmwf/eccodes into feature/ECC-1620_sub-hourly 2024-01-15 11:01:44 +00:00
Shahram Najm 7d27cc45cc Compiler warnings: unreferenced local variable e 2024-01-15 11:01:36 +00:00
Eugen Betke b1fd3ec9c1 Merge branch 'feature/ECC-1620_sub-hourly' of github.com:ecmwf/eccodes into feature/ECC-1620_sub-hourly 2024-01-15 10:59:52 +00:00
Eugen Betke d54b83ae14 Fix time interval setting for instantenous fields 2024-01-15 10:57:50 +00:00
kevstone 9c8297a519 Added ccode_objects_converter 2024-01-13 22:11:57 +00:00
kevstone 34bdc97ba7 Added code_interface_converter 2024-01-13 21:34:11 +00:00
Shahram Najm 87f34c24b8 Testing: Sub-hourly with grib_filter (needs fixing - see src/grib_accessor_class_optimal_step_units.cc) 2024-01-13 14:52:25 +00:00
kevstone 35ab5ff4f0 Removed incorrect import 2024-01-12 20:12:52 +00:00
kevstone ead8c99192 Cleanly separated default conversion from GribAccessor conversion 2024-01-12 20:08:46 +00:00
Shahram Najm b60198320d Merge branch 'develop' into feature/ECC-1620_sub-hourly 2024-01-12 17:24:37 +00:00
kevstone e36b4b9939 Removed premature C++ conversion 2024-01-12 17:08:16 +00:00
kevstone 09a038aecb Added explicit C AST Parser 2024-01-12 14:51:47 +00:00
Shahram Najm 27ef7b9062 Debugging: Output list of key/value pairs being set 2024-01-12 13:38:57 +00:00
kevstone 40b3a7ca5f Added ternary operator support 2024-01-12 12:26:39 +00:00
kevstone 65b05aa62a Added macro definitions to global declaration 2024-01-12 10:12:12 +00:00
kevstone dfd287999e Added if() and array subscript support 2024-01-12 08:13:26 +00:00
Shahram Najm eb4bf8dea7 Compiler warnings: Unused variables 2024-01-11 17:59:58 +00:00
Shahram Najm c35fdc2471 Unused variables 2024-01-11 16:56:33 +00:00
Shahram Najm e65ca5f98c Expressions/Actions: Unused functions 2024-01-11 16:16:37 +00:00
kevstone 81ac4c1cfe Added support for for() 2024-01-11 15:18:46 +00:00
kevstone 6ae5c4db01 Added if() support 2024-01-11 09:56:44 +00:00
kevstone ef0a88b1dc Added initial support for macros 2024-01-11 08:01:10 +00:00
Shahram Najm 45f47d1b90 Indexing: Make functions local 2024-01-10 17:57:20 +00:00
Shahram Najm 78aa519961 Testing: GRIB1 data_dummy_field packing 2024-01-10 16:20:19 +00:00
Shahram Najm 2ad5dd29e9 Action write: check for -ve value 2024-01-10 15:50:30 +00:00
Shahram Najm ea84ba6381 Testing: is_in_list expression 2024-01-10 14:43:23 +00:00
Shahram Najm 21a76256ce Testing: Unused accessors 2024-01-10 13:26:23 +00:00
Shahram Najm 2ae9638663 Testing: Deprecated statements 2024-01-10 13:18:20 +00:00
Shahram Najm b5f86e688a Actions: Dead code removal 2024-01-10 12:43:12 +00:00
Shahram Najm 9f565bed85 Const correctness 2024-01-09 15:42:16 +00:00
Shahram Najm 81f40a3735 Check return value of grib_buffer_replace 2024-01-09 10:23:13 +00:00
Shahram Najm ee51e30d10 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2024-01-08 20:26:08 +00:00
Shahram Najm 42d45cee1e ECC-1741: Assertion failure: Encoding a large field in GRIB1 2024-01-08 17:39:10 +00:00
Shahram Najm ada0309905 Error messages: GRIB1 large messages 2024-01-08 15:14:08 +00:00
Shahram Najm 560702839d Merge branch 'develop' into feature/ECC-1620_sub-hourly 2024-01-07 19:02:40 +00:00
Shahram Najm 28b7d13eea Testing: grib_repair/grib_read_any_from_memory 2024-01-07 15:26:58 +00:00
Shahram Najm b5470b2297 Dead code removal: TAF and METAR 2024-01-07 14:07:23 +00:00
Shahram Najm 1016c2e0f1 Dead code removal 2024-01-05 17:22:03 +00:00
Shahram Najm 90ed7d1e67 Dead code removal 2024-01-05 17:02:12 +00:00
Shahram Najm aca931a801 Dead code removal 2024-01-05 16:53:52 +00:00
Shahram Najm 720fa8b03f Merge branch 'develop' into convertion-inherit 2024-01-01 23:19:16 +00:00
Shahram Najm f7ea824c6c Merge branch 'develop' into feature/ECC-1620_sub-hourly 2024-01-01 23:14:59 +00:00
Shahram Najm efcef18676 Dead code removal 2024-01-01 23:14:45 +00:00
Shahram Najm 02e4b71ec7 Dead code removal 2024-01-01 21:14:44 +00:00
Shahram Najm 62e9830bcf Dead code removal 2024-01-01 13:35:14 +00:00
Shahram Najm 8cb098cd95 Error messages 2023-12-31 18:19:42 +00:00
Shahram Najm 40f7a0007d Error messages 2023-12-31 18:07:47 +00:00
Shahram Najm 64d69f1395 Error messages 2023-12-31 18:00:27 +00:00
Shahram Najm dd3be148d3 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-28 13:30:58 +00:00
Shahram Najm 03de571851 Dead code removal 2023-12-27 16:47:45 +00:00
Shahram Najm b442065995 Testing: Secondary bitmaps (GRIB2) 2023-12-27 16:07:01 +00:00
Shahram Najm 075760afc8 Testing: transient darray 2023-12-27 15:09:34 +00:00
Shahram Najm 152248eb82 Merge branch 'develop' into convertion-inherit 2023-12-27 13:14:31 +00:00
Shahram Najm 3826d72024 Dead code removal 2023-12-26 18:53:07 +00:00
Shahram Najm 84d8265b9a Dead code removal 2023-12-26 18:45:00 +00:00
Shahram Najm 5cbc79fd36 Testing: Increase coverage: JPEG decoding 2023-12-26 17:54:09 +00:00
Shahram Najm 2308878ef2 Non-alpha: no need for pack_xxx functions if read-only 2023-12-26 17:52:08 +00:00
Shahram Najm e54a4660fa GRIB1: Calculation of number of points when Nj=missing or 0 2023-12-26 17:00:37 +00:00
Shahram Najm c2668153ef Testing: 'close' action and filepool 2023-12-26 14:52:23 +00:00
Shahram Najm c3d13d35ae Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-23 17:25:51 +00:00
Shahram Najm 72365c5bb3 Initialise buffers 2023-12-23 15:12:24 +00:00
Shahram Najm ace2a0a8c1 ECC-1739: BUFR: Assertion failure decoding with invalid masterTablesVersionNumber 2023-12-22 19:41:06 +00:00
Shahram Najm c077fa5dc5 ECC-1738: BUFR: Better error message for invalid sequence 2023-12-21 12:47:26 +00:00
Shahram Najm f7bccb5537 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-21 11:47:12 +00:00
Shahram Najm 818192c2a4 Cleanup 2023-12-20 12:07:26 +00:00
Shahram Najm 23ae3e8bba GRIB lightweight clone: Rename 2023-12-19 15:16:37 +00:00
Shahram Najm 7be67dc31b Merge branch 'develop' into feature/GRIB_lightweight_clone 2023-12-19 15:04:36 +00:00
Shahram Najm ba8df5afa6 SUP-3892: Eccodes 2.32 onwards compile with Intel problems 2023-12-19 15:00:14 +00:00
Shahram Najm 2666565b7f Reformatting 2023-12-19 14:59:38 +00:00
Shahram Najm cfab5e7b1f Reformatting 2023-12-19 14:49:40 +00:00
Shahram Najm 7bcdcdf40c SUP-3892: Eccodes 2.32 onwards compile with Intel problems 2023-12-19 14:47:35 +00:00
Shahram Najm dc58a160c0 Fix key comparisons 2023-12-17 17:08:32 +00:00
Shahram Najm 42be7969f2 g1end_of_interval_monthly: Check month is valid 2023-12-17 16:38:45 +00:00
Shahram Najm 42fe75054a Testing: Increase coverage 2023-12-16 13:07:36 +00:00
Shahram Najm 5c135b6b30 Refactoring 2023-12-15 18:29:55 +00:00
Shahram Najm 483316197a Refactoring 2023-12-15 15:16:40 +00:00
Shahram Najm 560e10f6d9 Error messages 2023-12-15 13:44:12 +00:00
kevstone c7bdff8d45 Latest libclang code 2023-12-13 19:10:54 +00:00
Shahram Najm c852227c6c GRIB lightweight clone: Rename 2023-12-13 10:55:24 +00:00
Shahram Najm 3e7210df2f Merge branch 'develop' into feature/GRIB_lightweight_clone 2023-12-13 10:43:13 +00:00
Shahram Najm 5fc5f0aa76 Merge branch 'develop' into convertion-inherit 2023-12-13 10:16:40 +00:00
Shahram Najm 3d6d684123 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-11 12:11:49 +00:00
Shahram Najm 0c614bc926 Dead code removal 2023-12-10 14:04:56 +00:00
Shahram Najm f297de4278 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-09 17:43:51 +00:00
Shahram Najm a2adea7b81 API: Allow setting code table keys as missing via codes_set_string 2023-12-09 17:13:02 +00:00
Shahram Najm fdc57f8c26 Header files: Fix broken Windows build 2023-12-09 15:52:01 +00:00
Shahram Najm 1bb1579ae2 Header files: Cleanup 2023-12-09 15:14:57 +00:00
Shahram Najm c728c0d7a9 Const correctness 2023-12-07 17:13:45 +00:00
Shahram Najm 591f335cdb ECC-1733: GRIB2: codes_set_missing doesn't work for timeIncrement and indicatorOfUnitOfTimeIncrement keys 2023-12-07 15:46:03 +00:00
Shahram Najm 8b2d4c45f5 Dumper: add default value info (Debug mode) 2023-12-06 17:11:33 +00:00
Eugen Betke 5bd9d62642 ECC-1620: Introduction of the "eccodes" namespace 2023-12-06 15:58:51 +00:00
Shahram Najm 937d2fa737 Tools: Improved error messages 2023-12-06 12:57:07 +00:00
Eugen Betke 394ba554c4 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-06 10:41:43 +00:00
Shahram Najm 161a048488 ECC-1699: Dump 2023-12-05 13:02:27 +00:00
Shahram Najm 131235c06d Codetable API functions 2023-12-02 18:51:39 +00:00
Shahram Najm 20d36eb58f Merge branch 'feature/GetAllCodeTableEntries' into feature/ECC-1620_sub-hourly 2023-12-02 18:37:50 +00:00
Shahram Najm 66209c060e Functions codes_codetable_check_code_figure and codes_codetable_check_abbreviation 2023-12-02 18:35:01 +00:00
Shahram Najm 443d467ae6 Merge branch 'feature/GetAllCodeTableEntries' into feature/ECC-1620_sub-hourly 2023-12-02 17:51:59 +00:00
Shahram Najm ecf8dc993b codes_codetable_check_entry and further tests 2023-12-02 17:45:44 +00:00
Shahram Najm dca34cfc2d codes_get_codetable_contents_malloc: Renamed and added test 2023-12-02 16:34:56 +00:00
Eugen Betke e84ebfa238 Merge branch 'develop' into feature/ECC-1620_sub-hourly 2023-12-01 16:37:01 +00:00