We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 096469c commit 3f2f328Copy full SHA for 3f2f328
1 file changed
swift/extractor/main.cpp
@@ -108,7 +108,8 @@ static void checkWhetherToRunUnderTool(int argc, char* const* argv) {
108
// compilations, diagnostics, etc.
109
codeql::TargetFile invocationTargetFile(codeql::SwiftExtractorConfiguration& configuration) {
110
auto timestamp = std::chrono::system_clock::now().time_since_epoch().count();
111
- auto target = "invocation-"s + std::to_string(timestamp) + '-' + std::to_string(getpid());
+ auto filename = std::to_string(timestamp) + '-' + std::to_string(getpid());
112
+ auto target = std::filesystem::path("invocations") / std::filesystem::path(filename);
113
auto maybeFile = codeql::createTargetTrapFile(configuration, target);
114
if (!maybeFile) {
115
std::cerr << "Cannot create invocation trap file: " << target << "\n";
0 commit comments