Skip to Main Content
Getting started with LLVM core libraries
book

Getting started with LLVM core libraries

by Bruno Lopes, Rafael Auler
August 2014
Beginner to intermediate content levelBeginner to intermediate
314 pages
7h 57m
English
Packt Publishing
Content preview from Getting started with LLVM core libraries

Writing your own tool

The Clang project provides three interfaces that a user can rely on to utilize Clang features and its parsing capabilities, including syntactic and semantic analyses. First, there is libclang, the primary way of interfacing with Clang, which provides a stable C API and allows an external project to plug it in and have a high-level access to the entire framework. This stable interface seeks to preserve backwards compatibility with older versions, avoiding breaking your software when a newer libclang is released. It is also possible to use libclang from other languages, for example, using the Clang Python Bindings. Apple Xcode, for instance, interacts with Clang via libclang.

Secondly, there are Clang Plugins that allow you ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries

LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries

Min-Yih Hsu
LLVM Cookbook

LLVM Cookbook

Mayur Pandey, Suyog Sarda
LLVM Essentials

LLVM Essentials

Suyog Sarda, Mayur Pandey
CMake Cookbook

CMake Cookbook

Radovan Bast, Roberto Di Remigio

Publisher Resources

ISBN: 9781782166924Supplemental Content