[llvm] [llvm-strings] Style updates primarily for --radix (PR #222454)
Harald van Dijk via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 00:31:47 PDT 2026
================
@@ -71,8 +70,9 @@ static cl::list<std::string> InputFileNames(cl::Positional,
static int MinLength = 4;
static bool PrintFileName;
-enum radix { none, octal, hexadecimal, decimal };
-static radix Radix;
+enum class Radix { None, Octal, Hexadecimal, Decimal };
+static Radix Radix;
+} // namespace
----------------
hvdijk wrote:
Yes, it's the enum itself that needs to be in an anonymous namespace. Whether the variables are in there makes no difference, that's just to make it a smaller change and allow the enum and variable to remain together.
https://github.com/llvm/llvm-project/pull/222454
More information about the llvm-commits
mailing list