RFC: فصل التحذيرات عن الأخطاء في بانِي SIR#31
Open
SalehKadah wants to merge 1 commit into
Open
Conversation
…ت خطأً) يعالج ثغرة د-١ الأعمق المكتشَفة أثناء P0: SIRBuilder يخلط التحذيرات والأخطاء في errors_ واحد، وbuildModule يُرجع وحدةً غير فارغة رغم امتلائه، فيفحص السائق !sir_module_ فقط ⇒ أخطاء بناء SIR (مثل اطبع(طول())) تُهمَل صمتًا والبناء ينجح خطأً (exit 0)، بينما الإصلاح الساذج (فشل على hasErrors) يحوّل تحذير المطابقة غير الشاملة إلى فشل = انحدار. المقترح: قناة تشخيص موسومة بالخطورة (Error/Warning)؛ hasErrors أخطاء فقط؛ السائق يفشل على الأخطاء ويطبع التحذيرات دون إفشال؛ تصنيف مواقع push فرادى؛ ربط اختياريّ بكتالوج الأخطاء. مؤكَّد بمراجع مصدر dev الدقيقة (statement_match.cpp :546-560، sir_builder_module.cpp:1689، compiler_driver_analysis.cpp:541). الحالة: مقترَح. المدقّق أخضر (15/15). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
الملخّص
RFC يعالج ثغرة د-١ الأعمق المكتشَفة أثناء تنفيذ P0 لتجربة محراب: بانِي SIR يخلط التحذيرات والأخطاء في
errors_واحد، وbuildModuleيُرجع وحدةً غير فارغة رغم امتلائه، فيفحص السائق!sir_module_فقط ⇒ أخطاء بناء SIR (مثلاطبع(طول())) تُهمَل صمتًا والبناء ينجح خطأً (exit 0) — تباعد صامت عن المفسّر الذي يرفضها.لماذا RFC (لا إصلاح مباشر)
الإصلاح الساذج (فشل البناء على
hasErrors()) انحدار: يحوّل تحذير «المطابقة غير الشاملة» (المدفوع فيerrors_نفسه) إلى فشل بناء. الجذر بنيويّ (خلط القناتين) فيتطلّب تغييرًا سلوكيًّا موثّقًا.المقترح
Error/Warning) بدلerrors_الخالط.hasErrors()تعيد الأخطاء فقط؛ السائق يفشل على الأخطاء ويطبع التحذيرات دون إفشال.push_backفرادى (لا تحويل أعمى)؛ ربط اختياريّ بكتالوج الأخطاء.التحقّق
devالدقيقة:statement_match.cpp:546-560(التحذير فيerrors_)،sir_builder_module.cpp:1689(return module_رغم الأخطاء)،compiler_driver_analysis.cpp:541(فحص!sir_module_فقط).الحالة: مقترَح.
🤖 Generated with Claude Code