Quante, JochenHerrmann, Andrea2024-04-082024-04-0820220720-8928https://dl.gi.de/handle/20.500.12116/43827clang is in widespread use for development of C/C++ source code analysis tools. Many professional tools like Astrée use clang as a C++ frontend, specially because the continuously evolving C++ standard causes a lot of effort on the tool side, and clang provides an adequate infrastructure. At the same time, many hardware-specific compilers use gcc as a basis. Although gcc and clang are compatible to a certain degree, analyzing gcc-based code with clang always runs into problems. In this paper, we propose a lightweight approach to address recurring problems in clang-based software analysis tool usage.enC++source codeanalysistoolClang Preprocessor Tricks for Setting up Source Code Analysis ToolsText/Conference Paper