Home
last modified time | relevance | path

Searched refs:AST (Results 1 – 25 of 59) sorted by relevance

123

/system/tools/hidl/c2hal/
DAST.cpp36 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 …]
DAST.h37 struct AST { struct
38 AST(const std::string &path,
42 ~AST();
93 DISALLOW_COPY_AND_ASSIGN(AST); argument
DExpression.cpp89 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()
DDeclaration.h28 struct AST;
56 virtual void processContents(AST &ast) = 0;
DDefine.cpp21 extern android::status_t parseExpression(android::AST *ast, std::string str);
47 void Define::processContents(AST &ast) { in processContents()
DExpression.h27 struct AST;
77 virtual Type getType(const AST &scope) = 0;
DInclude.cpp44 void Include::processContents(AST &) { in processContents() argument
DTypeDef.cpp37 void TypeDef::processContents(AST &ast) { in processContents()
DInclude.h37 void processContents(AST &ast) override;
DTypeDef.h36 void processContents(AST &ast) override;
/system/tools/hidl/
DAST.cpp42 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 …]
DgenerateVts.cpp32 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()
DgenerateCppImpl.cpp37 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()
DCoordinator.h32 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;
Dhidl-gen_y-helpers.h28 struct AST;
31 android::Location convertYYLoc(const yy::parser::location_type& loc, const android::AST* ast);
Dmain.cpp160 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 …]
DgenerateCpp.cpp38 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 …]
DAST.h53 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);
DgenerateJavaImpl.cpp22 void AST::generateJavaImpl(Formatter& out) const { in generateJavaImpl()
23 if (!AST::isInterface()) { in generateJavaImpl()
Dhidl-gen_l.h30 status_t parseFile(AST* ast, std::unique_ptr<FILE, std::function<void(FILE*)>> file);
DgenerateDependencies.cpp29 void AST::generateDependencies(Formatter& out) const { in generateDependencies()
DCoordinator.cpp214 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/
DLintRegistry.h23 struct AST;
26 using LintFunction = std::function<void(const AST&, std::vector<Lint>*)>;
40 void runAllLintFunctions(const AST& ast, std::vector<Lint>* errors);
DLintRegistry.cpp26 void LintRegistry::runAllLintFunctions(const AST& ast, std::vector<Lint>* errors) { in runAllLintFunctions()
/system/tools/hidl/lint/lints/
DunhandledComments.cpp26 static void unhandledComments(const AST& ast, std::vector<Lint>* errors) { in unhandledComments()

123