bloomberg / clangmetatool

A framework for reusing code in Clang tools
https://bloomberg.github.io/clangmetatool/
Apache License 2.0
119 stars 25 forks source link

Partial macro detection for macro as argument to macro #61

Closed pmartin210 closed 3 years ago

pmartin210 commented 3 years ago

If there is a macro of the form

#define ARRAY_MACRO(x) (x[0] + x[1])

and it is passed another macro as an argument, it is not detected as a partial macro for that case.

This change detects that. The unit tests have been updated so that this case is no longer ignored.

pmartin210 commented 3 years ago

@dbeer1 @ruoso Please can you review.