/system/tools/hidl/c2hal/ |
D | AST.cpp | 36 AST::AST(const std::string &path, in AST() function in android::AST 47 AST::~AST() { in ~AST() 72 void *AST::scanner() { in scanner() 76 void AST::setScanner(void *scanner) { in setScanner() 80 bool AST::isOpenGl() const { in isOpenGl() 84 const std::string& AST::getFilename() const { in getFilename() 88 void AST::setDeclarations(std::vector<Declaration *> *declarations) { in setDeclarations() 99 void AST::setIncludes(std::vector<Include *> *includes) { in setIncludes() 103 Expression *AST::getExpression() const { in getExpression() 106 void AST::setExpression(Expression *expression) { in setExpression() [all …]
|
D | AST.h | 37 struct AST { struct 38 AST(const std::string &path, 42 ~AST(); 93 DISALLOW_COPY_AND_ASSIGN(AST); argument
|
D | Expression.cpp | 89 Type getType(const AST &ast) override { in getType() 107 Type getType(const AST &ast) override { in getType() 141 Type getType(const AST &ast) override { in getType() 164 Type getType(const AST &ast) override { in getType() 189 Type getType(const AST &ast) override { in getType() 212 Type getType(const AST &) override { in getType() 239 Type getType(const AST &) override { in getType()
|
D | Declaration.h | 28 struct AST; 56 virtual void processContents(AST &ast) = 0;
|
D | Define.cpp | 21 extern android::status_t parseExpression(android::AST *ast, std::string str); 47 void Define::processContents(AST &ast) { in processContents()
|
D | Expression.h | 27 struct AST; 77 virtual Type getType(const AST &scope) = 0;
|
D | Include.cpp | 44 void Include::processContents(AST &) { in processContents() argument
|
D | TypeDef.cpp | 37 void TypeDef::processContents(AST &ast) { in processContents()
|
D | Include.h | 37 void processContents(AST &ast) override;
|
D | TypeDef.h | 36 void processContents(AST &ast) override;
|
/system/tools/hidl/ |
D | AST.cpp | 42 AST::AST(const Coordinator* coordinator, const Hash* fileHash) in AST() function in android::AST 49 Scope* AST::getMutableRootScope() { in getMutableRootScope() 53 const Scope& AST::getRootScope() const { in getRootScope() 58 void AST::addSyntaxError() { in addSyntaxError() 62 size_t AST::syntaxErrors() const { in syntaxErrors() 66 const std::string& AST::getFilename() const { in getFilename() 69 const Hash* AST::getFileHash() const { in getFileHash() 73 const Coordinator& AST::getCoordinator() const { in getCoordinator() 77 bool AST::setPackage(const char *package) { in setPackage() 91 FQName AST::package() const { in package() [all …]
|
D | generateVts.cpp | 32 void AST::emitVtsTypeDeclarations(Formatter& out) const { in emitVtsTypeDeclarations() 33 if (AST::isInterface()) { in emitVtsTypeDeclarations() 51 void AST::generateVts(Formatter& out) const { in generateVts() 52 std::string baseName = AST::getBaseName(); in generateVts() 53 const Interface *iface = AST::getInterface(); in generateVts()
|
D | generateCppImpl.cpp | 37 void AST::generateFetchSymbol(Formatter &out, const std::string& ifaceName) const { in generateFetchSymbol() 41 void AST::generateStubImplMethod(Formatter& out, const std::string& className, in generateStubImplMethod() 78 void AST::generateCppImplHeader(Formatter& out) const { in generateCppImplHeader() 79 if (!AST::isInterface()) { in generateCppImplHeader() 135 void AST::generateCppImplSource(Formatter& out) const { in generateCppImplSource() 136 if (!AST::isInterface()) { in generateCppImplSource()
|
D | Coordinator.h | 32 struct AST; 88 AST* parse(const FQName& fqName, std::set<AST*>* parsedASTs = nullptr, 97 status_t parseOptional(const FQName& fqName, AST** ast, std::set<AST*>* parsedASTs = nullptr, 198 mutable std::map<FQName, AST *> mCache;
|
D | hidl-gen_y-helpers.h | 28 struct AST; 31 android::Location convertYYLoc(const yy::parser::location_type& loc, const android::AST* ast);
|
D | main.cpp | 160 AST* typesAST = coordinator->parse(fqName); in appendPerTypeTargets() 261 static FileGenerator::GenerationFunction astGenerationFunction(void (AST::*generate)(Formatter&) in astGenerationFunction() 265 AST* ast = coordinator->parse(fqName); in astGenerationFunction() 295 AST* ast; in generateJavaForPackage() 391 AST *ast = coordinator->parse(fqName); in isPackageJavaCompatible() 430 const std::vector<FQName> &packageInterfaces, AST *typesAST) { in packageNeedsJavaCode() 571 AST* typesAST = nullptr; in generateAndroidBpForPackage() 574 AST* ast = coordinator->parse(fqName); in generateAndroidBpForPackage() 686 AST *ast = coordinator->parse(fqName); in generateAndroidBpImplForPackage() 824 AST* ast = coordinator->parse(fqName); in validateForFormat() [all …]
|
D | generateCpp.cpp | 38 std::string AST::makeHeaderGuard(const std::string &baseName, in makeHeaderGuard() 54 void AST::generateCppPackageInclude( in generateCppPackageInclude() 72 void AST::enterLeaveNamespace(Formatter &out, bool enter) const { in enterLeaveNamespace() 218 void AST::generateInterfaceHeader(Formatter& out) const { in generateInterfaceHeader() 392 void AST::generateHwBinderHeader(Formatter& out) const { in generateHwBinderHeader() 458 void AST::generatePassthroughMethod(Formatter& out, const Method* method, const Interface* superInt… in generatePassthroughMethod() 599 void AST::generateMethods(Formatter& out, const MethodGenerator& gen, bool includeParent) const { in generateMethods() 626 void AST::generateTemplatizationLink(Formatter& out) const { in generateTemplatizationLink() 631 void AST::generateCppTag(Formatter& out, const std::string& tag) const { in generateCppTag() 635 void AST::generateStubHeader(Formatter& out) const { in generateStubHeader() [all …]
|
D | AST.h | 53 struct AST { struct 54 AST(const Coordinator* coordinator, const Hash* fileHash); 88 void addImportedAST(AST *ast); 260 std::set<AST *> mImportedASTs; argument 266 std::map<AST *, std::set<Type *>> mImportedTypes; argument 367 DISALLOW_COPY_AND_ASSIGN(AST);
|
D | generateJavaImpl.cpp | 22 void AST::generateJavaImpl(Formatter& out) const { in generateJavaImpl() 23 if (!AST::isInterface()) { in generateJavaImpl()
|
D | hidl-gen_l.h | 30 status_t parseFile(AST* ast, std::unique_ptr<FILE, std::function<void(FILE*)>> file);
|
D | generateDependencies.cpp | 29 void AST::generateDependencies(Formatter& out) const { in generateDependencies()
|
D | Coordinator.cpp | 214 AST* Coordinator::parse(const FQName& fqName, std::set<AST*>* parsedASTs, in parse() 216 AST* ret; in parse() 226 status_t Coordinator::parseOptional(const FQName& fqName, AST** ast, std::set<AST*>* parsedASTs, in parseOptional() 256 *ast = new AST(this, &Hash::getHash(path)); in parseOptional() 566 AST* ast = parse(fqName, nullptr /*imported*/, Coordinator::Enforce::NONE); in addUnreferencedTypes() 736 AST* currentAST = parse(currentFQName, nullptr /* parsedASTs */, enforcement); in enforceMinorVersionUprevs() 762 AST *lastAST = parse(lastFQName); in enforceMinorVersionUprevs() 813 AST* ast = parse(fqName); in checkHash() 869 AST* ast = parse(fqName); in getUnfrozenDependencies()
|
/system/tools/hidl/lint/ |
D | LintRegistry.h | 23 struct AST; 26 using LintFunction = std::function<void(const AST&, std::vector<Lint>*)>; 40 void runAllLintFunctions(const AST& ast, std::vector<Lint>* errors);
|
D | LintRegistry.cpp | 26 void LintRegistry::runAllLintFunctions(const AST& ast, std::vector<Lint>* errors) { in runAllLintFunctions()
|
/system/tools/hidl/lint/lints/ |
D | unhandledComments.cpp | 26 static void unhandledComments(const AST& ast, std::vector<Lint>* errors) { in unhandledComments()
|