Update hidl-gen for vts backend.
* Generate the type definition from all imported interface/types.
* Update the logic to generate a single profiler package for a hal
package.
Test: make hidl-gen
Change-Id: I634c435af9913f74fa0e2495908a1805097649c4
diff --git a/AST.h b/AST.h
index d89f681..b9bd854 100644
--- a/AST.h
+++ b/AST.h
@@ -100,11 +100,13 @@
// Return the set of FQNames for those interfaces and types that are
// actually referenced in the AST, not merely imported.
-
const std::set<FQName>& getImportedNames() const {
return mImportedNames;
}
+ // Get transitive closure of imported interface/types.
+ void getAllImportedNames(std::set<FQName> *allImportSet) const;
+
void appendToExportedTypesVector(
std::vector<const Type *> *exportedTypes) const;
@@ -277,8 +279,8 @@
// Helper function that generates vts type declaration from the current
// AST and the transitive closure of imported ASTs.
status_t emitVtsTypeDeclarationsHelper(
- Formatter &out,
- std::set<AST*> *allImportSet) const;
+ Formatter &out,
+ std::set<AST*> *allImportSet) const;
DISALLOW_COPY_AND_ASSIGN(AST);
};