Skip to content
Commit 7738977a authored by Martí Bolívar's avatar Martí Bolívar Committed by Anas Nashif
Browse files

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: default avatarMartí Bolívar <marti.bolivar@nordicsemi.no>
parent 4e783a36
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment