================ @@ -553,6 +555,20 @@ static llvm::IntrusiveRefCntPtr<vfs::OverlayFileSystem> createBaseFS() { int clangTidyMain(int argc, const char **argv) { llvm::InitLLVM X(argc, argv); + SmallVector<const char *> Args{argv, argv + argc}; + + llvm::BumpPtrAllocator Alloc; ---------------- HerrCai0907 wrote:
extract to another function is impossible because variable lifetime issue. The allocator must have same lifetime with argc and argv. https://github.com/llvm/llvm-project/pull/120547 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits