This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debuginfod/25548] also support canonicalized source-file name lookups in webapi


https://sourceware.org/bugzilla/show_bug.cgi?id=25548

--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
// g++ -o x x.cpp -Wall $(llvm-config --cxxflags --libs)
#include <llvm/ADT/SmallString.h>
#include <llvm/Support/Path.h>
#include <stdio.h>
int main(int argc, char **argv) {
  while (*++argv) {
    llvm::SmallString<128> path(*argv);
    if (llvm::sys::path::remove_dots(path, true /*remove_dot_dot*/,
                                     llvm::sys::path::Style::posix))
      puts(path.c_str());
  }
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]