Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions swift/extractor/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,11 @@ static auto argDump(int argc, char** argv) {
static auto envDump(char** envp) {
std::string ret;
for (auto env = envp; *env; ++env) {
ret += *env;
ret += '\n';
if (std::string_view envVar{*env};
envVar.starts_with("CODEQL_") || envVar.starts_with("SEMMLE_")) {
ret += *env;
ret += '\n';
}
}
return ret;
}
Expand All @@ -229,7 +232,7 @@ int main(int argc, char** argv, char** envp) {

const auto configuration = configure(argc, argv);
LOG_INFO("calling extractor with arguments \"{}\"", argDump(argc, argv));
LOG_DEBUG("environment:\n{}\n", envDump(envp));
LOG_DEBUG("CodeQL environment:\n{}\n", envDump(envp));

auto openInterception = codeql::setupFileInterception(configuration);

Expand Down