[flang-commits] [lld] [libunwind] [compiler-rt] [libcxxabi] [flang] [lldb] [clang] [llvm] [clang-tools-extra] [libc] [libcxx] [mlir] PR#72453 : Exceeding maximum file name length (PR #72654)
Shahid Iqbal via flang-commits
flang-commits at lists.llvm.org
Sun Nov 19 23:34:29 PST 2023
================
@@ -83,10 +85,29 @@ struct DOTGraphTraitsViewer
StringRef Name;
};
+static void shortenFileName(std::string &FN, unsigned char len = 250) {
+
+ FN = FN.substr(0, len);
+ if (nameObj.empty())
+ nameObj.push_back(FN);
+
+ else {
+ for (auto it = nameObj.begin(); it != nameObj.end(); it++) {
+ if (*it == FN) {
+ FN = FN.substr(0, --len);
----------------
shahidiqbal13 wrote:
@DrTodd13 ,
Yes I do agree with the 3 filenames example but the chances would be highly rare that's what y I didn't go for keep searching mechanism
https://github.com/llvm/llvm-project/pull/72654
More information about the flang-commits
mailing list