tools/aconfig/src/codegen_cpp.rs
0 → 100644
+216
−0
+15
−1
tools/aconfig/templates/cpp.template
0 → 100644
+25
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
The general idea to reuse java codegen's very neat tiny template idea. For generated cpp code, it is in the form of a collection of classes inside a namespace. The reason we choose a collection of classes rather than a collection of static functions is because gmock test technology only supports mocking virtual method. Bug: b/279483801 Test: atest aconfig.test Change-Id: I9ba00667437ff7c3e147ff2828171fc95528bebf