Identification of CPP directives in UMDP3_checker
@r-sharp ci sta già lavorando.
Dal 31/7/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
The current C pre-processor pattern assumes that there are no spaces between the start of a line and the # symbol:
comment_line = re.compile(r"!.*$")
cpp_command_line = re.compile(r"^#.*$")
word_splitter = re.compile(r"\b\w+\b")
However, the GNU C pre-processor manual explicitly says that spaces before the hash symbol are allowed:
Preprocessing directives are lines in your program that start with ‘#’. Whitespace is allowed before and after the ‘#’. The ‘#’ is followed by an identifier, the directive name. It specifies the operation to perform.
The pattern should probably allow leading whitespace. This doesn't seem to cause problems for the UM, but it may result in unexpected failures in other code bases.
- Lingua principale
- Python
- Stelle
- 9
- Fork
- 19
- Merge medio
- 5g 48m
- PR unite (30g)
- 4
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MetOffice/SimSys_Scripts
-
MetOffice/SimSys_Scripts#235 · 9 commenti · 1 assegnatario ·
-
MetOffice/SimSys_Scripts#221 · 1 assegnatario ·
-
bug
MetOffice/SimSys_Scripts#220 · 1 assegnatario ·
-
enhancement
MetOffice/SimSys_Scripts#217 · 4 commenti · 1 assegnatario ·
-
bug
MetOffice/SimSys_Scripts#208 · 1 commento · 1 assegnatario ·
Tutte le issue di MetOffice/SimSys_Scripts
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
stephrobert/dsoxlab#238 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
sublimehq/package_control#1780 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
nwg-piotr/nwg-displays#145 ·