Problems with synopsis from trunk

Michael Lehn <[email protected]> Tue, 8 Mar 2011 18:16:23 +0100
Newsgroups gmane.comp.documentation.synopsis
Message-ID <[email protected]>
--===============1963717910==
Content-Type: multipart/alternative; boundary=Apple-Mail-5--825163820


--Apple-Mail-5--825163820
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hello,

I just tried out the new synopsis from trunk.  Following the =
instructions from

	 =
http://lists.fresco.org/pipermail/synopsis-devel/2011-February/001086.html=


I could compile and install LLVM and synopsis without problems.

However, I have two problems (and I guess I am doing some really stupid =
mistake):

1) It seams that I cannot pass a include path to synopsis.  For =
instance, I want to pass
the include "$HOME/blas++" and want to define two macros like this:

	synopsis -p Cxx -I $HOME/blas++ -D HAVE_CBLAS -D WITH_ATLAS -f =
Dump -o dump blas++/examples/test_gematrix.cc

With synopsis 0.13 this works without problems. =20

In case it helps reproducing the problem, I uploaded a tar-ball of this =
C++ project:

	http://www.mathematik.uni-ulm.de/~lehn/synopsis-test/blas++.tgz

2) I tried using the Dump formatter on a small C++ code with different =
options, e.g.

	synopsis -p Cxx -f Dump -o dump main.cc
	synopsis -p Cxx -f Dump -Wf,--show_declarations -o dump main.cc
	synopsis -p Cxx -f Dump -Wf,--show_declarations,--show_types -o =
dump main.cc

(Here the sample code: =
http://www.mathematik.uni-ulm.de/~lehn/synopsis-test/main.cc)

However, in all cases the dumped file merely contains some tags about =
some builtin types, eg.

	 ....
	 <instance class=3D"Synopsis.ASG.BuiltinTypeId" id=3D"15969104" =
language=3D"C++" name=3D"bool"/>
	 <instance class=3D"Synopsis.ASG.BuiltinTypeId" id=3D"15969168" =
language=3D"C++" name=3D"char"/>
 	 <instance class=3D"Synopsis.ASG.BuiltinTypeId" id=3D"15970064" =
language=3D"C++" name=3D"double"/>
	....

Is there something wrong with my installation?  Or am I doing something =
wrong in using the new synopsis?

Cheers,

Michael=

--Apple-Mail-5--825163820
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; ">Hello,<div><br></div><div>I =
just tried out the new synopsis from trunk. &nbsp;Following the =
instructions from</div><div><br></div><div><span =
class=3D"Apple-style-span" style=3D"white-space: pre;"><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>&nbsp;</span><a =
href=3D"http://lists.fresco.org/pipermail/synopsis-devel/2011-February/001=
086.html">http://lists.fresco.org/pipermail/synopsis-devel/2011-February/0=
01086.html</a><br></div><div><br></div><div>I could compile and install =
LLVM and synopsis without problems.</div><div><br></div><div>However, I =
have two problems (and I guess I am doing some really stupid =
mistake):</div><div><br></div><div>1) It seams that I cannot pass a =
include path to synopsis. &nbsp;For instance, I want to =
pass</div><div>the include "$HOME/blas++" and want to define two macros =
like this:</div><div><br></div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>synopsis -p Cxx -I $HOME/blas++ =
-D HAVE_CBLAS -D WITH_ATLAS -f Dump -o dump =
blas++/examples/test_gematrix.cc</div><div><br></div><div>With synopsis =
0.13 this works without problems. &nbsp;</div><div><br></div><div>In =
case it helps reproducing the problem, I uploaded a tar-ball of this C++ =
project:</div><div><br></div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span><a =
href=3D"http://www.mathematik.uni-ulm.de/~lehn/synopsis-test/blas++.tgz">h=
ttp://www.mathematik.uni-ulm.de/~lehn/synopsis-test/blas++.tgz</a></div><d=
iv><br></div><div>2) I tried using the Dump formatter on a small C++ =
code with different options, e.g.</div><div><br></div><div><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	synopsis -p Cxx =
-f Dump -o dump main.cc</span></div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>synopsis -p Cxx -f Dump =
-Wf,--show_declarations -o dump main.cc</div><div><span =
class=3D"Apple-tab-span" style=3D"white-space: pre; ">	</span>synopsis =
-p Cxx -f Dump -Wf,--show_declarations,--show_types -o dump =
main.cc</div><div><br></div><div>(Here the sample code:&nbsp;<a =
href=3D"http://www.mathematik.uni-ulm.de/~lehn/synopsis-test/main.cc">http=
://www.mathematik.uni-ulm.de/~lehn/synopsis-test/main.cc</a>)</div><div><b=
r></div><div>However, in all cases the dumped =
file&nbsp;merely&nbsp;contains some tags about some builtin types, =
eg.</div><div><br></div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>&nbsp;....</div><div><div><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>&nbsp;&lt;instance class=3D"Synopsis.ASG.BuiltinTypeId" =
id=3D"15969104" language=3D"C++" name=3D"bool"/&gt;</div><div><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>&nbsp;&lt;instance class=3D"Synopsis.ASG.BuiltinTypeId" =
id=3D"15969168" language=3D"C++" name=3D"char"/&gt;</div><div>&nbsp;<span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>&nbsp;&lt;instance class=3D"Synopsis.ASG.BuiltinTypeId" =
id=3D"15970064" language=3D"C++" =
name=3D"double"/&gt;</div></div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>....</div><div><br></div><div>Is =
there something wrong with my installation? &nbsp;Or am I doing =
something wrong in using the new =
synopsis?</div><div><br></div><div>Cheers,</div><div><br></div><div>Michae=
l</div></body></html>=

--Apple-Mail-5--825163820--

--===============1963717910==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Synopsis-devel mailing list
[email protected]
http://lists.fresco.org/cgi-bin/listinfo/synopsis-devel

--===============1963717910==--