Closed samanpa closed 1 year ago
Describe your changes This PR addresses a limitation where the usage of variable in a macro is not always attributed to the right file.
Given the example below foo.h
#define PASTE(x, y ) x ## y
foo.cpp
#include "foo.h" #include <cerrno> int zee() { return PASTE(err, no); }
clangmetatool should detect that foo.cpp uses cerrno.
cerrno
Signed-off-by: Kojo Adams kadams85@bloomberg.net
Describe your changes This PR addresses a limitation where the usage of variable in a macro is not always attributed to the right file.
Given the example below foo.h
foo.cpp
clangmetatool should detect that
foo.cpp
usescerrno
.Signed-off-by: Kojo Adams kadams85@bloomberg.net