[cfe-dev] Intercepting environment variables set by xcodebuild and passing them to static analyzer
kremenek at apple.com
Wed Nov 5 19:04:50 CST 2008
On Nov 5, 2008, at 7:37 AM, Nikita Zhuk wrote:
> I'm using scan-build to run xcodebuild and static analyses on the code
> being compiled. Some of my custom analyses need the information which
> is set by xcodebuild in environment variables before the source code
> is compiled. Is there any way to intercept those env variables set by
> xcodebuild and pass them to static analyzer?
> - Nikita
All environment variables that xcodebuild sets should be observable by
the clang process. Using getenv() within your analysis code should be
a portable solution for accessing those values. Does that not work?
More information about the cfe-dev