Clang Compiler Frontend
Get to grips with the internals of a C/C++ compiler frontend and create your own tools
Seiten
2024
Packt Publishing Limited (Verlag)
978-1-83763-098-1 (ISBN)
Packt Publishing Limited (Verlag)
978-1-83763-098-1 (ISBN)
Boost your productivity with a variety of compiler tools that integrate seamlessly into your IDE
Key Features
Expand your understanding of the C++ programming language by learning about how the C++ compiler works and how to utilize its advanced features
Explore techniques for static code analysis and use them to create lint checks
Enhance your IDE to support advanced compiler tools
Purchase of the print or Kindle book includes a free PDF eBook
Book DescriptionDiscover 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.What you will learn
Get to grips with compiler architecture
Gain an understanding of the inner workings of Clang
Familiarize yourself with features specific to Clang
Investigate various techniques for static code analysis
Acquire knowledge on how to use AST matchers
Create custom code modification and refactoring tools
Explore tools for integrating compiler tools with IDEs
Who this book is forThis book is for experienced C++ software engineers who have no prior experience with compiler design but want to gain the knoweldge they need to get up and running. Engineers who want to learn about how Clang works and familiarize themselves with its specific features will also benefit from this book.
Key Features
Expand your understanding of the C++ programming language by learning about how the C++ compiler works and how to utilize its advanced features
Explore techniques for static code analysis and use them to create lint checks
Enhance your IDE to support advanced compiler tools
Purchase of the print or Kindle book includes a free PDF eBook
Book DescriptionDiscover 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.What you will learn
Get to grips with compiler architecture
Gain an understanding of the inner workings of Clang
Familiarize yourself with features specific to Clang
Investigate various techniques for static code analysis
Acquire knowledge on how to use AST matchers
Create custom code modification and refactoring tools
Explore tools for integrating compiler tools with IDEs
Who this book is forThis book is for experienced C++ software engineers who have no prior experience with compiler design but want to gain the knoweldge they need to get up and running. Engineers who want to learn about how Clang works and familiarize themselves with its specific features will also benefit from this book.
Ivan V. Murashko is a C++ software engineer: He got his PhD from Peter the Great St.Petersburg Polytechnic University and has over 20 years of C++ programming experience; since 2020 he has worked with LLVM compilers. His area of interest includes clang compiler frontend and clang tools (clang-tidy, clangd).
Table of Contents
Environment Setup
Clang Architecture
Clang AST
Basic Libraries and Tools
Clang-Tidy Linter Framework
Advanced Code Analysis
Refactoring Tools
IDE Support and Clangd
Appendix 1: Compilation Database
Appendix 2: Build Speed Optimizations
Erscheinungsdatum | 22.08.2023 |
---|---|
Verlagsort | Birmingham |
Sprache | englisch |
Maße | 191 x 235 mm |
Themenwelt | Mathematik / Informatik ► Informatik ► Programmiersprachen / -werkzeuge |
Informatik ► Software Entwicklung ► Objektorientierung | |
ISBN-10 | 1-83763-098-4 / 1837630984 |
ISBN-13 | 978-1-83763-098-1 / 9781837630981 |
Zustand | Neuware |
Haben Sie eine Frage zum Produkt? |
Mehr entdecken
aus dem Bereich
aus dem Bereich
objektorientierte Entwicklung modularer Maschinen für die digitale …
Buch | Hardcover (2024)
Hanser (Verlag)
44,99 €
Entwicklung von GUIs für verschiedene Betriebssysteme
Buch (2023)
Hanser, Carl (Verlag)
39,99 €
Principles and Practice Using C++
Buch | Softcover (2024)
Addison Wesley (Verlag)
85,95 €