Previously, loading one from a file meant allowing the library to do the IO.
Clangd would prefer to do such IO itself (e.g. to allow caching).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang/include/clang/Tooling/CompilationDatabase.h | ||
|---|---|---|
| 194 | Path is not meaningful for load from buffer. May be change name to Directory and call loadFromBuffer(llvm::sys::path::parent_path(Path), (*File)->getBuffer(), ErrorMsg); instead. | |
| 194 | Do you intend to use it apart from testing ? | |
| clang/unittests/Tooling/CompilationDatabaseTest.cpp | ||
| 555 | nit: change to something like /path/to/cdb/dir | |
Path is not meaningful for load from buffer. May be change name to Directory and call loadFromBuffer(llvm::sys::path::parent_path(Path), (*File)->getBuffer(), ErrorMsg); instead.