From: harada <har...@jp...> - 2006-06-23 03:43:42
|
Hello, I've made a tool treating a SrcML data like below. At the first time, I aimed at outputting the AspectX data. But it is difficult for me to generate a XSLT source, so I use scripting and the tool doesn't output AspectX files. It directly transforms C++ sources to C++ sources (or SrcML files to C++ sources), not using XWeaver but using only src2srcml. It is too big to be written as a sample code in this mail. (2.2 kstep) So if you are interested in it and tell me so, I may mail appending the source as a free soft of our company after my superior officer's approval. P.S. I succeeded to avoid the below header transformation trouble by using type 'comment'. Good bye, Kazuyuki ----- Original Message ----- From: "harada" <har...@jp...> To: "Iwan Birrer P&P" <bi...@pn...> Cc: "XWeaver Mailing List" <xwe...@li...> Sent: Tuesday, June 13, 2006 8:36 PM Subject: Re: [xweaver-users] How to add interrupting function declaration? > Hello, > >> What about the following aspect. It should add a method declaration >> for each method that is annotated with a macro starting with 'Ocl_'. >> Isnt't it that what you want? > > I tried it, but the result is the same. > class xxx { > private: int data; > aspect_func > private: Ocl_xx("xxx") void function1(); > aspect_func > public: void function2(); > private: void function3(); > aspect_func > }; > > Now I am willing to try in another way to make a tool as such : > > src2srcml the tool > source.ax --> source.xml --> Aspect.xml > ^ > target sources SrcML directory > > I think this tool makes it possible to make pointcut > for function and function_decl (and includes) at the same time. |