envoyproxy / envoy-openssl

Envoy OpenSSL extensions
Apache License 2.0
47 stars 45 forks source link

prefixer now prefixes functions declared via nested macros #81

Closed tedjpoole closed 1 year ago

tedjpoole commented 1 year ago

The problem was a misunderstanding of clang::SourceLocation objects and how they work for macro expansions. Introduced an extra getFileLoc() function which 'unwraps' source locations until it reaches a real file location.