Identification of CPP directives in UMDP3_checker
@r-sharp đang làm issue này rồi.
Từ ngày 31/7/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 9
- Fork
- 19
- Merge trung bình
- 5 ngày 48 phút
- Pull request đã merge (30 ngày)
- 4
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MetOffice/SimSys_Scripts
-
MetOffice/SimSys_Scripts#235 · 9 bình luận · 1 người được giao ·
-
MetOffice/SimSys_Scripts#221 · 1 người được giao ·
-
bug
MetOffice/SimSys_Scripts#220 · 1 người được giao ·
-
enhancement
MetOffice/SimSys_Scripts#217 · 4 bình luận · 1 người được giao ·
-
bug
MetOffice/SimSys_Scripts#208 · 1 bình luận · 1 người được giao ·
Tất cả issue của MetOffice/SimSys_Scripts
Issue tương tự
-
triage/confirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
apache/cloudstack#14222 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100