Home
last modified time | relevance | path

Searched refs:Declaration (Results 1 – 25 of 28) sorted by relevance

12

/system/tools/hidl/c2hal/
DDeclaration.cpp26 Declaration::Declaration(const std::string &name) in Declaration() function in android::Declaration
30 Declaration::~Declaration() {} in ~Declaration()
32 const std::string& Declaration::getName() const { in getName()
35 void Declaration::setName(const std::string &name) { in setName()
39 void Declaration::forceCamelCase() { in forceCamelCase()
44 void Declaration::forcePascalCase() { in forcePascalCase()
49 void Declaration::forceUpperSnakeCase() { in forceUpperSnakeCase()
54 const std::string& Declaration::getComment() const { in getComment()
57 void Declaration::setComment(const std::string &comment) { in setComment()
62 void Declaration::generateCommentText(Formatter &out) const { in generateCommentText()
[all …]
DFunctionDeclaration.h26 struct Declaration;
29 struct FunctionDeclaration : Declaration {
32 std::vector<Declaration *> *params);
48 std::vector<Declaration *> *mParams;
DDeclaration.h30 struct Declaration { struct
31 Declaration(const std::string &name);
32 virtual ~Declaration();
62 DISALLOW_COPY_AND_ASSIGN(Declaration); argument
DCompositeDeclaration.h25 struct CompositeDeclaration : Declaration {
29 std::vector<android::Declaration *> *fieldDeclarations);
35 const std::vector<android::Declaration *>* getFieldDeclarations() const;
51 std::vector<android::Declaration *> *mFieldDeclarations;
DTypeDef.h28 struct TypeDef : Declaration {
29 TypeDef(const std::string &name, Declaration* declaration);
39 Declaration* mDeclaration;
DNote.h31 struct Note : Declaration {
34 Note(Declaration *decl);
44 Declaration *mDecl = nullptr;
DNote.cpp22 : Declaration(name) in Note()
25 Note::Note(Declaration *decl) in Note()
26 : Declaration(""), in Note()
DCompositeDeclaration.cpp31 std::vector<android::Declaration *> *fieldDeclarations) in CompositeDeclaration()
32 : Declaration(""), in CompositeDeclaration()
49 Declaration::setName(name); in setName()
56 const std::vector<android::Declaration *>*
115 auto nonFpDecs = new std::vector<Declaration*>; in processContents()
DAST.h35 struct Declaration;
51 void setDeclarations(std::vector<Declaration *> *declarations);
74 std::vector<Declaration *> *mDeclarations = nullptr;
DFunctionDeclaration.cpp27 std::vector<Declaration *> *params) in FunctionDeclaration()
28 : Declaration(""), in FunctionDeclaration()
47 Declaration::setName(name); in setName()
DTypeDef.cpp21 TypeDef::TypeDef(const std::string &name, Declaration* declaration) in TypeDef()
22 : Declaration(name), mDeclaration(declaration) in TypeDef()
DEnumVarDeclaration.cpp25 : Declaration(""), mExpression(expression) in EnumVarDeclaration()
35 Declaration::setName(name); in setName()
DVarDeclaration.cpp22 : Declaration(""), in VarDeclaration()
33 Declaration::setName(name); in setName()
Dc2hal_y.yy20 #include "Declaration.h"
154 android::Declaration *declaration;
156 std::vector<android::Declaration *> *declarations;
158 android::Declaration *param;
159 std::vector<android::Declaration *> *params;
194 $$ = new std::vector<Declaration *>;
343 $$ = new std::vector<Declaration *>;
354 $$ = new std::vector<Declaration *>;
397 $$ = new std::vector<Declaration *>;
401 $$ = new std::vector<Declaration *>;
DInclude.cpp22 : Declaration(name), mIsLibrary(isLibrary) in Include()
DInclude.h29 struct Include : Declaration {
DEnumVarDeclaration.h30 struct EnumVarDeclaration : Declaration {
DVarDeclaration.h25 struct VarDeclaration : Declaration{
DDefine.h29 struct Define : Declaration {
DAST.cpp88 void AST::setDeclarations(std::vector<Declaration *> *declarations) { in setDeclarations()
158 auto globalFuns = new std::vector<Declaration*>; in isolateGlobalInterface()
200 auto constants = new std::vector<Declaration*>; in isolateConstants()
DDefine.cpp26 : Declaration(name), mSlurp(slurp) in Define()
/system/tools/aidl/
Dast_cpp.h48 class Declaration : public AstNode {
50 Declaration() = default;
51 virtual ~Declaration() = default;
54 class LiteralDecl : public Declaration {
64 class ClassDecl : public Declaration {
70 std::vector<std::unique_ptr<Declaration>> public_members,
71 std::vector<std::unique_ptr<Declaration>> private_members);
76 void AddPublic(std::unique_ptr<Declaration> member);
77 void AddPrivate(std::unique_ptr<Declaration> member);
82 std::vector<std::unique_ptr<Declaration>> public_members_;
[all …]
Dast_cpp_unittest.cpp109 vector<unique_ptr<Declaration>> test_methods; in TEST_F()
113 vector<unique_ptr<Declaration>> test_sub_methods; in TEST_F()
116 unique_ptr<Declaration> test{new ClassDecl { "TestClass", "", in TEST_F()
119 unique_ptr<Declaration> test_sub{new ClassDecl { "TestSubClass", in TEST_F()
122 vector<unique_ptr<Declaration>> classes; in TEST_F()
129 vector<unique_ptr<Declaration>> test_ns_vec; in TEST_F()
135 vector<unique_ptr<Declaration>> test_ns_globals; in TEST_F()
Dgenerate_cpp.cpp158 unique_ptr<Declaration> BuildMethodDecl(const AidlMethod& method, const AidlTypenames& typenames, in BuildMethodDecl()
168 return unique_ptr<Declaration>{ in BuildMethodDecl()
173 unique_ptr<Declaration> BuildMetaMethodDecl(const AidlMethod& method, const AidlTypenames&, in BuildMetaMethodDecl()
187 return unique_ptr<Declaration>(new LiteralDecl(code.str())); in BuildMetaMethodDecl()
200 return unique_ptr<Declaration>(new LiteralDecl(code.str())); in BuildMetaMethodDecl()
205 std::vector<unique_ptr<Declaration>> NestInNamespaces(vector<unique_ptr<Declaration>> decls, in NestInNamespaces()
209 vector<unique_ptr<Declaration>> inner; in NestInNamespaces()
210 inner.emplace_back(unique_ptr<Declaration>{new CppNamespace{*it, std::move(decls)}}); in NestInNamespaces()
217 std::vector<unique_ptr<Declaration>> NestInNamespaces(unique_ptr<Declaration> decl, in NestInNamespaces()
219 vector<unique_ptr<Declaration>> decls; in NestInNamespaces()
[all …]
Dast_cpp.cpp49 std::vector<unique_ptr<Declaration>> public_members, in ClassDecl()
50 std::vector<unique_ptr<Declaration>> private_members) in ClassDecl()
83 void ClassDecl::AddPublic(std::unique_ptr<Declaration> member) { in AddPublic()
87 void ClassDecl::AddPrivate(std::unique_ptr<Declaration> member) { in AddPrivate()
422 std::vector<unique_ptr<Declaration>> declarations) in CppNamespace()
427 unique_ptr<Declaration> declaration) in CppNamespace()
446 std::vector<unique_ptr<Declaration>> declarations) in Document()
461 std::vector<std::unique_ptr<Declaration>> declarations) in CppHeader()
475 std::vector<std::unique_ptr<Declaration>> declarations) in CppSource()

12