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

Testing the static analyzer

In this section, we will explore how to use the Clang Static Analyzer in practice.

Using the driver versus using the compiler

Before testing the static analyzer, you should always keep in mind that the command line clang -cc1 refers directly to the compiler, while using the command line clang will trigger the compiler driver. The driver is responsible for orchestrating the execution of all other LLVM programs involved in a compilation, but it is also responsible for providing adequate parameters about your system.

While using the compiler directly is preferred among some developers, sometimes it may fail to locate system header files or other configuration parameters that only the Clang driver knows. On the other hand, ...

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