2 रिपॉजिटरी
Tooling that utilizes compilation databases to extract compiler flags and source paths for translation or analysis.
Distinct from C# Compilers: No candidate covers the use of compilation databases specifically for source-to-source translation metadata.
Explore 2 awesome GitHub repositories matching programming languages & runtimes · Compilation Database Integrations. Refine with filters or upvote what's useful.
Include What You Use एक C++ इंक्लूड ऑप्टिमाइज़र और हेडर डिपेंडेंसी एनालाइज़र है। यह प्रोजेक्ट ब्लोट को कम करने और संकलन (compilation) प्रदर्शन में सुधार करने के लिए सोर्स फाइलों में अप्रयुक्त या गायब हेडर इंक्लूड्स की पहचान करता है। यह टूल सिंबल उपयोग को मैप करने और अलग-अलग बिल्ड कॉन्फ़िगरेशन में प्रीप्रोसेसर प्रभावों को ट्रैक करने के लिए Clang-आधारित एब्सट्रैक्ट सिंटैक्स ट्री का उपयोग करके स्टेटिक विश्लेषण करता है। यह गणना की गई डिपेंडेंसी ग्राफ के आधार पर प्रीप्रोसेसर डायरेक्टिव्स को डालकर या हटाकर स्वचालित रूप से सोर्स फाइलों को फिर से लिख सकता है। यह सिस्टम प्रत्येक सोर्स फाइल के लिए उपयोग किए गए सटीक कंपाइलर फ्लैग्स को निर्धारित करने के लिए संकलन डेटाबेस के साथ एकीकृत होता है, जिससे पूरे प्रोजेक्ट में डिपेंडेंसी का विश्लेषण और छंटाई (pruning) संभव हो जाती है।
Integrates with JSON compilation databases to determine the exact compiler flags used for every source file.
c2rust is a source-to-source translation suite and C-to-Rust transpiler designed to convert C source code and libraries into functionally equivalent unsafe Rust code. It operates as a pipeline that preserves original behavior and data structures, producing translated code that compiles as compatible shared libraries or Rust crates. The system includes an automated Rust refactoring framework that uses pattern-based AST rewriting to transform unsafe Rust into safe, idiomatic constructs. It utilizes an ownership inference engine to determine when raw pointers can be converted into safe reference
Reads a compilation database to capture compiler flags and source paths for accurate C-to-Rust conversion.