From 473f6df1a1974db52f33f5c7f7cc211f049f694d Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Wed, 20 Nov 2024 22:43:40 +0000 Subject: [PATCH] clang format --- llvm/utils/TableGen/DXILEmitter.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/llvm/utils/TableGen/DXILEmitter.cpp b/llvm/utils/TableGen/DXILEmitter.cpp index 7ed5475d4f9b29..46f9f66abb46d1 100644 --- a/llvm/utils/TableGen/DXILEmitter.cpp +++ b/llvm/utils/TableGen/DXILEmitter.cpp @@ -390,15 +390,16 @@ static void emitDXILAttributes(const RecordKeeper &Records, raw_ostream &OS) { static void emitDXILProperties(const RecordKeeper &Records, raw_ostream &OS) { // Generate their definitions OS << "#ifdef DXIL_PROPERTY\n"; - for (const Record *Prop: Records.getAllDerivedDefinitions("DXILProperty")) + for (const Record *Prop : Records.getAllDerivedDefinitions("DXILProperty")) OS << "DXIL_PROPERTY(" << Prop->getName() << ")\n"; OS << "#undef DXIL_PROPERTY\n"; OS << "#endif\n\n"; } -static void emitDXILPropertyHelpers(const RecordKeeper &Records, raw_ostream &OS) { +static void emitDXILPropertyHelpers(const RecordKeeper &Records, + raw_ostream &OS) { // Generate their helper functions - for (const Record *Prop: Records.getAllDerivedDefinitions("DXILProperty")) { + for (const Record *Prop : Records.getAllDerivedDefinitions("DXILProperty")) { OS << "[[maybe_unused]]\n"; OS << "static bool has" << Prop->getName() << "(dxil::OpCode Op) {\n"; OS << " auto *OpCodeProp = getOpCodeProperty(Op);\n";