[PATCH] D60389: FileCheck [9/12]: Add support for matching formats
    Alexander Richardson via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jun 20 03:13:25 PDT 2019
    
    
  
arichardson added inline comments.
================
Comment at: llvm/include/llvm/Support/FileCheck.h:51
+  /// numbers.
+  unsigned Cap : 1;
+
----------------
I would call this `UpperCase` or `Capitalize`. If it is only ever used for hex values (I'm not sure if there are plans for e.g. uppercasing string values later on) storing an enumeration with `HexUpper` and `HexLower`, `Unsigned` values could also make sense.
I you use the enum approach, it should also be possible to omit the Valid bitfield and use an enum value of `Implicit` or `NoFormat` instead.
I haven't managed to review the full patch yet, but maybe it is enough to store just a single enumeration value in this class that also contains the conflict value since that seems mutually exclusive with all other boolean flags.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60389/new/
https://reviews.llvm.org/D60389
    
    
More information about the llvm-commits
mailing list