Skip to content
  • Iustin Pop's avatar
    Improve TH local variables naming · d8cb8e13
    Iustin Pop authored
    
    
    This patch addresses two issues with our TH code:
    
    - using non-unique names (e.g. "std" for a local name, instead of
      "std_XXXX" random names), which can leads to conflicts; on the other
      hand, this makes the generated code a bit harder to parse
    - since only a few Python/JSON names have dashes in them, we didn't
      handle those, resulting in variables named like "disk-templates",
      which is not good; we now handle it the same as '_', i.e. we use it
      as a breaker for camel-casing
    
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarAgata Murawska <agatamurawska@google.com>
    d8cb8e13