Analysis of entities in C and C++ programs and relations between them for program understanding
Andrey Andreevich Belevantsev, E. A. Veselevich, В. П. Иванников · Programming and Computer Software · 2016
A tool for the static analysis of programs that can detect entities in C and C++ programs, their metrics, and relations between them is considered. The program entities are files, functions, classes, methods, etc., and relations are calls, inheritance, read/write operations of global variables, file inclusion, and aggregation. Methods for the development of such a tool based on the open compiler infrastructure LLVM [1], including the necessary modifications in the Clang compiler [2], and the developed analyzer are described. Results of the tool testing on the Android code are presented.