Skip to content

Commit 3f2f328

Browse files
committed
Swift: put invocation files into a separate folder
1 parent 096469c commit 3f2f328

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

swift/extractor/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ static void checkWhetherToRunUnderTool(int argc, char* const* argv) {
108108
// compilations, diagnostics, etc.
109109
codeql::TargetFile invocationTargetFile(codeql::SwiftExtractorConfiguration& configuration) {
110110
auto timestamp = std::chrono::system_clock::now().time_since_epoch().count();
111-
auto target = "invocation-"s + std::to_string(timestamp) + '-' + std::to_string(getpid());
111+
auto filename = std::to_string(timestamp) + '-' + std::to_string(getpid());
112+
auto target = std::filesystem::path("invocations") / std::filesystem::path(filename);
112113
auto maybeFile = codeql::createTargetTrapFile(configuration, target);
113114
if (!maybeFile) {
114115
std::cerr << "Cannot create invocation trap file: " << target << "\n";

0 commit comments

Comments
 (0)