Chapter 11: Debugging Using LLVM Tools
LLVM comes with a set of tools that helps you to identify certain errors in your application. All of these tools make use of the LLVM and Clang libraries.
In this chapter, you will learn how to instrument an application with sanitizers, how to use the most common sanitizer to identify a wide range of bugs, and how to implement fuzz testing for your application. This will help you to identify bugs that are usually not found with unit testing. You will also learn how to identify performance bottlenecks in your application, running the static analyzer to identify problems normally not found by the compiler, and creating your own Clang-based tool with which you can extend Clang with new functionality.
This chapter will cover the following topics:
- Instrumenting an application with sanitizers
- Finding bugs with libFuzzer
- Performance profiling with XRay
- Checking the source with the Clang Static Analyzer
- Creating your own...