c++: generate function call tree

I want to parse current c++ files in a project and list out all the methods/functions in it and then generate the function call and caller trees. F.g. you can refer how doxygen generates the call...

Is there a C header parser tool for wrapper generation like gccxml?

I need to write a few c header wrappers for a new programming language and would like something like gccxml but without the full dependency on gcc and the problems it gives on a windows...

Where to get compiled version of gccxml on windows?

Can anyone point to a place where I can get a compiled version of gccxml on windows?

C++: tools to statically analyze code (and/or preprocess it)

Often I could use some tools to statically analyze my code in order to help me making it cleaner. Something like compiler warnings, but those are not enough. Every now and then I dream about...

How to parse a collection of c++ header files?

I am working in a project and I want to do reflection in C++ so after research I found that the best way is to parse header files to get abstract syntax tree in XML format and use it in...

searching for c++ code parser to see all signatures

I'm looking for a c++ parser which is able to extract all the functions and methods with its signatures. Is there something like this? I had a look at gccxml there I have the problem, that it is...

How to wrap a c++ library for python?

I have a library and some head files, no c++ source code, I want to use it with python. I tried py++, but gccxml report error. I tried swig, but some many "undefined symbol" errors. Are there some...

How can I generate metadata output with clang similar to that of gcc-xml?

I found that GCCXML is not being maintained anymore (I think the last version is from 2009 from their CVS repository). People usually suggest to check out clang, but I couldn't find a...

Wrapping and Passing HWND with Boost.Python

I've created a Boost.Python wrapper (using Py++) for a C++ legacy class that takes a HWND window handle in its constructor. However, after exporting the module to python when I try to use it, I...

Rewrite C++ code for use wrapper class pointer instead raw pointers

In a started project, I would to start using my own wrapper class pointer instead of raw pointers. My idea was rewrite the existent code for translate declarations like "Object *a" to...

Parsing Nested Structures/Unions defined in C/C++ header files in XML

I have a structure represented as follows: (Example) struct struct3 { struct structchild4 { float child5; } child6; unsigned int child7; }; I want this to be represented as...

Nested Structures/Unions defined in C/C++ header files in XML by Reflection

I have a structure represented as follows: (Example) struct struct3 { struct structchild4 { float child5; } child6; unsigned int child7; }; I want this to be represented as...

Dumping information from Nested Structures defined in C++ header files into XML

I'm writing a C/C++ Header file parser that converts .h files into a specific XML format. I have a structure defined as follows: struct struct1 { struct structchild1 { float child2; ...

How to unveil typedef in C/C++ sources?

I want to parse C/C++-code with my primitive parser to get ast-tree. But it doesn't support macro and typedefs. It is possible to unveil macro definitions in any C/C++-project with help of gcc...

What is the simplest way of parsing C++ source code (extracting meta-info) in Java?

I need to extract classes, methods and parameters from .c/.cpp files in Java code. I've reviewed: Antlr (can't find any ready c++ grammar for Java target), gccxml (probably works but i can't...

"cmath: No such file or directory" when compiled with GCC

I wrote the simple program in linux ubuntu, when I use g++ there is no error but when I use gcc I see this error: test.c:1:17: fatal error: cmath: No such file or directory #include...

How to use gccxml with incomplete dependency?

I am trying to calculate some code metrics of a set of C++ files. I find that available tools are either expensive or quite old, so I choose to parse the files with gccxml analyze the output...

GCC Xml Alternatives

I am looking into GCCXML, which can parse a given header file and generates XML format of C code meta data. But GCCxml is an open source. Is there any commercial version of c code parser which...

Size of C++ types with different compilers

I would like to avoid to fall into the XY trap so here is the original problem: We have a small program which creates a shared memory segment on the PC. This program creates it by reading its...

calling gccxml from my code (Windows)

I'm writing a tool that makes use of gccxml. Basically I'm parsing the output xml file that has been created by gccxml. This works great on my windows machine in visual studio except for a couple...

parsing c++ in python

I'm looking to parse c++ code files in python. I'm mostly concerned with only the function declarations, not the definitions. The kind of output GCCXML gives seems perfect to me but the thing is I...

ITK build Cmake (Gcc compiler) error

Trying to compile ITK software using Cmake on a Linux system. Build fails after 39% complete with following error: "make[2]: ***...

Apt-Get Hangs on Raspberry Pi in unpacking libboost1.55

I've been attempting to install libboost1.55-dev on my Raspberry Pi, but it continually hangs on Unpacking. After many attempts I've resorted to trying apt-get install -f (considering the package...

Can't pybindgen to work with gccxml

I have a C++ library I would like to bind to Python. I began using Pybindgen, and it is really easy to use, but manually adding functions and namespaces will take a long time considering the size...

Compilation error ActiViz with VTK 7, GCC XML, C++ on Windows

I'm trying to compile ActiViz with VTK 7 on Windows 8.1 using Visual studio 2008 and I'm still getting compilation error 'value' is not a member of...

How to do pattern match in haskell options.applicative for record type?

I use Options.Applicative to handle haskell command line, my record type for option is like: data Options = Options { xml :: String ,eut :: String ...

How to install and build NS-3 using bake

I am trying to download, build and test NS-3 using bake by typing the following commands on Cygwin on windows 7: $ cd $ mkdir workspace $ cd workspace $ hg clone http://code.nsnam.org/bake Then...

ns-3.26 2 module errors while building

I have problem in newest ns-3.26 with nsc-0.5.3 and gccxml-ns3 - system is very up-to-date so that's not the case. Building nsc-0.5.3 - Problem Problem: Optional dependency, module "nsc-0.5.3"...

Typedef with and without struct name

I saw the following oddity in the XCB API header. Most types are defined with a type alias and a struct name in this way: typedef struct xcb_window_iterator_t { xcb_window_t *data; int...

E: Package 'gccxml' has no installation candidate

So, I am unable to find gccxml in ubuntu18,hep me download gccxml in ubuntu18. castxml is easily available. But I need gccxml. Also what is installation candidate? Thanks.

Relevant tags