aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-declextract
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-11-25 11:55:38 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-11-26 09:00:29 +0000
commitd1656bfaa236ca8bb0ce36693aa283a568c62bd8 (patch)
treedeef539931e10410aae4e86da360a33a93e0e287 /tools/syz-declextract
parent46f8273da3a8f68e273107356256b5e693a34b7f (diff)
tools/syz-declextract: prefix flags with auto_
They can clash with our manual flags names.
Diffstat (limited to 'tools/syz-declextract')
-rw-r--r--tools/syz-declextract/syz-declextract.cpp2
1 files changed, 1 insertions, 1 deletions
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<EnumType>(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 = " = ";