Added -Lmakefile-impl.

This generates a makefile for the code that is generated using
-Lc++-impl. (example, makes the shared library
android.hardware.tests.foo@1.0.impl)

make hidl-gen -j64
hidl-gen -o system/tools/hidl/fooimpl/ -Lc++-impl -randroid.hardware:hardware/interfaces android.hardware.tests.foo@1.0
hidl-gen -o system/tools/hidl/fooimpl/ -Lmakefile-impl -randroid.hardware:hardware/interfaces android.hardware.tests.foo@1.0
make android.hardware.tests.foo@1.0.impl -j64

b/31055568

Change-Id: I57fccf3da07d6b22b9ca4a9f1783294d1848ca7e
diff --git a/FQName.cpp b/FQName.cpp
index 2504ef5..08ceccb 100644
--- a/FQName.cpp
+++ b/FQName.cpp
@@ -160,6 +160,14 @@
     return string() == other.string();
 }
 
+std::string FQName::getInterfaceBaseName() const {
+    CHECK(names().size() == 1) << "Must be a top level type";
+    CHECK(!mName.empty() && mName[0] == 'I') << mName;
+
+    // cut off the leading 'I'.
+    return mName.substr(1);
+}
+
 const FQName FQName::getTopLevelType() const {
     auto idx = mName.find('.');