commit | 7738977af46af592a133d5e300255e1adbe7cda6 | [log] [tgz] |
---|---|---|
author | Martí Bolívar <marti.bolivar@nordicsemi.no> | Fri Dec 03 15:10:07 2021 -0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Dec 07 13:39:37 2021 -0500 |
tree | d0e01cbe116a27017a897b3a399ba69e27eae5ce | |
parent | 4e783a363adb6f54a7be4ff893f470efb2fcf2bd [diff] |
dtlib: handle GCC linemarkers A GCC linemarker of the form: # 1 "filename" 2 3 4 or so is not currently being handled, because the current regular expression assumes the "flags" values (the numbers after "filename") are limited to a single value. Tweak the regular expression to allow for up to 4 flags, which is what GCC documents it may emit: https://gcc.gnu.org/onlinedocs/gcc-10.2.0/cpp/Preprocessor-Output.html Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>