Details zum E-Book

Clang Compiler Frontend. Get to grips with the internals of a C/C++ compiler frontend and create your own tools

Clang Compiler Frontend. Get to grips with the internals of a C/C++ compiler frontend and create your own tools

Ivan Murashko

E-book
Discover the power of Clang, a versatile compiler known for its compilation speed and insightful error and warning messages. This book will get you acquainted with the capabilities of Clang, helping you harness its features for performance improvements and modularity by creating custom compiler tools.
While focused on Clang compiler frontend, this book also covers other parts of LLVM, essential to understanding Clang's functionality, to keep up with the constantly evolving LLVM project.
Starting with LLVM fundamentals, from installation procedures to development tools, this book walks you through Clang's internal architecture and its integral role within LLVM. As you progress, you’ll also tackle optimizing compilation performance through features such as C++ modules and header maps.
The later chapters cover tools developed using the Clang/LLVM, including clang-tidy for linting, refactoring tools, and IDE support, and feature many examples to illustrate the material.
By the end of this book, you’ll have a solid understanding of Clang, different Clang Tools, and how to use them to their fullest potential.
  • 1. Environment Setup
  • 2. Clang Architecture
  • 3. Clang AST
  • 4. Basic Libraries and Tools
  • 5. Clang-Tidy Linter Framework
  • 6. Advanced Code Analysis
  • 7. Refactoring Tools
  • 8. IDE Support and Clangd
  • 9. Appendix 1: Compilation Database
  • 10. Appendix 2: Build Speed Optimizations
  • Titel: Clang Compiler Frontend. Get to grips with the internals of a C/C++ compiler frontend and create your own tools
  • Autor: Ivan Murashko
  • Originaler Titel: Clang Compiler Frontend. Get to grips with the internals of a C/C++ compiler frontend and create your own tools
  • ISBN: 9781837635238, 9781837635238
  • Veröffentlichungsdatum: 2024-03-29
  • Format: E-book
  • Artikelkennung: e_3vch
  • Verleger: Packt Publishing