Lines Matching defs:std
52 std::string fixPathForLLVM(std::string input) {
62 const std::unordered_map<std::string, std::string>& sources,
63 const std::string& outdirPath, bool overwrite) {
64 std::filesystem::path outdir(fixPathForLLVM(outdirPath));
65 if (!std::filesystem::is_directory(outdir)) {
66 if (!std::filesystem::create_directories(outdir)) {
67 std::cerr << "error: could not create output directory " << outdir
68 << std::endl;
75 std::cout << "Ignoring source for " << filepath
76 << ": no code source in debug infos." << std::endl;
80 std::filesystem::path old_path(filepath);
81 std::filesystem::path new_path = outdir / old_path.filename();
83 if (!overwrite && std::filesystem::exists(new_path)) {
84 std::cerr << "file " << filepath
86 << std::endl;
90 std::cout << "Exporting " << new_path << std::endl;
128 std::cerr << "Expected exactly one input file." << std::endl;
132 std::cerr << "Unimplemented flags." << std::endl;
136 std::vector<uint32_t> binary;
142 std::unordered_map<std::string, std::string> sourceCode;
158 std::cout << filename << ":" << std::endl
159 << source << std::endl
160 << std::endl;
165 const std::filesystem::path outdirPath(flags::outdir.value());