From d1656bfaa236ca8bb0ce36693aa283a568c62bd8 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 25 Nov 2024 11:55:38 +0100 Subject: tools/syz-declextract: prefix flags with auto_ They can clash with our manual flags names. --- tools/syz-declextract/syz-declextract.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/syz-declextract/syz-declextract.cpp b/tools/syz-declextract/syz-declextract.cpp index 8ab77f0d3..c348eb16d 100644 --- a/tools/syz-declextract/syz-declextract.cpp +++ b/tools/syz-declextract/syz-declextract.cpp @@ -444,7 +444,7 @@ public: isSyscallParam); // NOTE: The fieldType contains information we need, don't use field instead. case clang::Type::Enum: { const auto &enumDecl = llvm::dyn_cast(field)->getDecl(); - auto name = enumDecl->getNameAsString(); + auto name = "auto_" + enumDecl->getNameAsString(); flags.push_back(name); includes.push_back(std::filesystem::relative(SM->getFilename(enumDecl->getSourceRange().getBegin()).str())); const char *sep = " = "; -- cgit mrf-deployment