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()
DFunctionDeclaration.cpp27 std::vector<Declaration *> *params) in FunctionDeclaration()
28 : Declaration(""), in FunctionDeclaration()
47 Declaration::setName(name); in setName()
DAST.h35 struct Declaration;
51 void setDeclarations(std::vector<Declaration *> *declarations);
74 std::vector<Declaration *> *mDeclarations = nullptr;
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.h43 class Declaration : public AstNode {
45 Declaration() = default;
46 virtual ~Declaration() = default;
49 DISALLOW_COPY_AND_ASSIGN(Declaration);
52 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);
[all …]
Dast_cpp_unittest.cpp116 vector<unique_ptr<Declaration>> test_methods; in TEST_F()
120 vector<unique_ptr<Declaration>> test_sub_methods; in TEST_F()
123 unique_ptr<Declaration> test{new ClassDecl { "TestClass", "", in TEST_F()
126 unique_ptr<Declaration> test_sub{new ClassDecl { "TestSubClass", in TEST_F()
129 vector<unique_ptr<Declaration>> classes; in TEST_F()
136 vector<unique_ptr<Declaration>> test_ns_vec; in TEST_F()
142 vector<unique_ptr<Declaration>> test_ns_globals; in TEST_F()
Dgenerate_cpp.cpp143 unique_ptr<Declaration> BuildMethodDecl(const AidlMethod& method, in BuildMethodDecl()
154 return unique_ptr<Declaration>{ in BuildMethodDecl()
161 unique_ptr<Declaration> BuildMetaMethodDecl(const AidlMethod& method, const TypeNamespace&, in BuildMetaMethodDecl()
175 return unique_ptr<Declaration>(new LiteralDecl(code.str())); in BuildMetaMethodDecl()
180 std::vector<unique_ptr<Declaration>> NestInNamespaces(vector<unique_ptr<Declaration>> decls, in NestInNamespaces()
184 vector<unique_ptr<Declaration>> inner; in NestInNamespaces()
185 inner.emplace_back(unique_ptr<Declaration>{new CppNamespace{*it, std::move(decls)}}); in NestInNamespaces()
192 std::vector<unique_ptr<Declaration>> NestInNamespaces(unique_ptr<Declaration> decl, in NestInNamespaces()
194 vector<unique_ptr<Declaration>> decls; in NestInNamespaces()
228 unique_ptr<Declaration> DefineClientTransaction(const TypeNamespace& types, in DefineClientTransaction()
[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()
416 std::vector<unique_ptr<Declaration>> declarations) in CppNamespace()
421 unique_ptr<Declaration> declaration) in CppNamespace()
440 std::vector<unique_ptr<Declaration>> declarations) in Document()
455 std::vector<std::unique_ptr<Declaration>> declarations) in CppHeader()
469 std::vector<std::unique_ptr<Declaration>> declarations) in CppSource()

12