clang-tidy: change filenames to [ch]pp.mako
We have a tendency to name mako files as "foo.type.mako" rather than
"foo.mako.type" because too many tools tend to identify the file as a
"type file" rather than a "mako file". Right now, meson is somehow
picking up these files as part of the `clang-tidy` invocation and
puking on it. Rename the files both to fit convention and to avoid
the issues.
Change-Id: I2ec39f2dcd41ef939ec15702addb0912054ad3fa
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/power-sequencer/gen-ucd90160-defs.py b/power-sequencer/gen-ucd90160-defs.py
index 66bbb9b..1cc2274 100755
--- a/power-sequencer/gen-ucd90160-defs.py
+++ b/power-sequencer/gen-ucd90160-defs.py
@@ -44,7 +44,7 @@
output_file = os.path.join(args.output_dir, "ucd90160_defs.cpp")
mylookup = TemplateLookup(directories=templates_dir.split())
- mytemplate = mylookup.get_template("ucd90160_defs.mako.cpp")
+ mytemplate = mylookup.get_template("ucd90160_defs.cpp.mako")
with open(output_file, "w") as output:
output.write(mytemplate.render(ucd90160s=ucd90160_data))
diff --git a/power-sequencer/meson.build b/power-sequencer/meson.build
index 2129957..dd73b94 100644
--- a/power-sequencer/meson.build
+++ b/power-sequencer/meson.build
@@ -14,7 +14,7 @@
input: [
'gen-ucd90160-defs.py',
get_option('ucd90160-yaml'),
- 'templates/ucd90160_defs.mako.cpp',
+ 'templates/ucd90160_defs.cpp.mako',
],
output: 'ucd90160_defs.cpp',
)
diff --git a/power-sequencer/templates/ucd90160_defs.mako.cpp b/power-sequencer/templates/ucd90160_defs.cpp.mako
similarity index 100%
rename from power-sequencer/templates/ucd90160_defs.mako.cpp
rename to power-sequencer/templates/ucd90160_defs.cpp.mako