cppparser icon indicating copy to clipboard operation
cppparser copied to clipboard

A library to parse C/C++ source as AST

Results 14 cppparser issues
Sort by recently updated
recently updated
newest added

This is an example of code that generates the error struct S { bool a; bool b; }; int main() { S s { false, //error here false }; return...

I get a segfault when trying to analyze this file: https://github.com/mmomtchev/node-magickwand/raw/84e1cdff82aae838233202e76b9ca01815e9ebec/Magick%2B%2B.cxx I am using a very basic walking of the outermost members: ```cpp #include "cppparser/pub/cppparser.h" #include #include namespace fs =...

Say I have two source code file1.cpp and file2.cpp written in C++, I want to know the difference code between them and locate this difference code to the function. I...

Changes: 1. Removes `common`. 2. Uses the systemwide-installed `boost`. 3. Adds some missing inclusions regarding `fstream` (I think `#include` is not needed, idk how it ended up there, please handle...

Reforms the library target definitions in the main CMakeLists to: * Allow the project to be used without any hassle of including the published header files, utilizing the modern CMake...

Implements: * Adds a new directory called `examples` with its CMakeLists to the root. * Adds a single CPP file to demonstrate how to create various AST node types from...

Implements: * Doxygen target. - `Graphwiz-dot` support. - `plantuml` support. - CMake modules to search for `dot` and `plantuml`. - Nice-to-have class-hierarchy diagrams like [the ones on my fork](https://salehjg.github.io/cppparser/inherits.html). -...

Could you add the code below in order to support the `using namespace` directive? ```diff diff --git a/pub/cppwriter.h b/pub/cppwriter.h index 5b9e3a81..e2541d48 100644 --- a/pub/cppwriter.h +++ b/pub/cppwriter.h @@ -66,6 +66,9 @@...

Ubuntu 22.04 supplies Boost 1.74. I would like to link the cppparser with it. Can we have this supported? The code below does this. ```diff diff --git a/CMakeLists.txt b/CMakeLists.txt index...

After building in Linux using the steps https://github.com/satya-das/cppparser#building-cppparser. cppparsertest binary is generated. How to Parse a single file?