Open davidmalcolm opened 4 months ago
I wonder if this could be expressed by adding a new "kind" within locationRelationship
's 3.34.3 kinds property, similar to how that can capture a chain of #include
?
I suggest to discuss this proposal in TC meeting 2024-08-08
Addressing one specific point:
...when I spoke of macro expansion, I was referring to languages with a preprocessor, such as C/C++, where the question of "where in the source-code-under-analysis are we?" can involve a nested series of macro expansions, potentially involving multiple files (e.g. use of a macro declared in one header, which refers to a macro in another header, etc).
Consider e.g.:
GCC output: https://godbolt.org/z/87vf1cGKK
where GCC's textual output can emit the chain of macro expansions:
There didn't seem to be a way to express this within SARIF. Is there one, or did I miss it? Thanks!
Originally posted by @davidmalcolm in https://github.com/oasis-tcs/sarif-spec/issues/531#issuecomment-1401007567