[clang-tools-extra] [clang-tidy] support parameters file in command line (PR #120547)

Carlos Galvez via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 19 12:10:42 PST 2024


================
@@ -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;
----------------
carlosgalvezp wrote:

Can we add a one-line comment describing what this block of code does/is meant for? Even better, can it be put into its own function?

https://github.com/llvm/llvm-project/pull/120547


More information about the cfe-commits mailing list