导论 This document describes coding standards that are used in the LLVM project. Although no coding standards should be regarded as absolute requirements to be followed in all instances, coding standards are particularly important for large-scale code bases that follow a library-based design (like L...
LLVM支持库(例如,ADT)实现了标准库中缺少的专业数据结构或功能。此类库通常在llvm命名空间中实现,并遵循预期的标准接口(如果有)。 当C++和LLVM支持库提供类似功能且没有特别原因偏向C++实现时,通常更倾向于使用LLVM库。例如,llvm::DenseMap几乎总是应该使用,而不是std::map或std::unordered_map,llvm::SmallVector通...
从LLVM 3.5开始,这个类已被弃用,而被std::unique_ptr()替代,这是在C++ 11标准中引入的。 如果你对LLVM项目中采用的C++最佳惯例的完整列表感兴趣,请访问http://llvm.org/docs/CodingStandards.html。每位C++程序员都应该读一下。 3.5.2.4 在LLVM中使用轻量级字符串引用 LLVM项目有一个支持常见算法的数据结构扩展...
How to get started with the LLVM C API · Paul Smith LLVM Coding Standards — LLVM 10 documentation Getting Started with the LLVM System — LLVM 10 Frequently Asked Questions (FAQ) — LLVM 10 documentation The Architecture of Open Source Applications(编译器,LLVM与IR) Ocaml: 简易教程: OCaml学...
Security Checkers:检查不安全API的使用和基于CERT Secure Coding Standards的检查。 Unix Checkers:检查Unix和POSIX API的使用情况。 主要流程 CheckerManager CheckerContext上下文 addTransition方法,改变状态 generateSink ProgramPoint程序关键点(等同checker类成员函数、回调函数) ...
All LLVM-MOS code should observe the LLVM coding standards. clang-format and clang-tidy are aids for this; this repo contains appropriate configuration files for them. Code should be appropriately documented and well tested. We're not quite as picky as the upstream LLVM project, but a compiler...
As noted elsewhere, please redo all your variable and function names to conform with the coding standards. It's surprisingly distracting having them wrong! Also, please reflow your comments to properly use the 80 character width, as it makes it a little harder to read when they are broken at...
Terminology and Notation Unpacking the LLVM Archives Checkout LLVM from Git Local LLVM Configuration Compiling the LLVM Suite Source Code Cross-Compiling LLVM The Location of LLVM Object Files Optional Configuration Items Directory Layout llvm/cmake ...
2.3 简要阅读LLVM Programmer's Manual和LLVM Coding Standards 2.4 阅读clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp 2.5 Checker的编译 3 扩展要求 3.1 分析现有 checker 的缺陷 在本实训项目中,你将学习使用Clang静态分析器,理解现有的Checker并进行思考,尝试编写自己的Checker。
CodingStandards.html 提交文档 5年前 CommandLine.html 提交文档 5年前 CompileCudaWithLLVM.html 提交文档 5年前 CompilerWriterInfo.html 提交文档 5年前 Contributing.html 提交文档 5年前 Coroutines.html 提交文档 5年前 CoverageMappingFormat.html 提交文档 5年前 DebuggingJIT...