A tool to tell you what source files are needed in a C++ project? [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am porting a large, messy, 10 year old cold base in C++ from Metrowerks on OS X to XCode. There are so many files and all the other people that touched this over the years are gone. Nobody know what files are actually needed and which are just cruft.
Is there any tool that I could run and have it produce a list of what files are ACTUALLY needed?

You could run doxygen on your project and have it generate inheritance diagrams for your classes. It can also generate caller graphs to help you find dead code.

You can try searching this static code analyzer list in Wikipedia. The ones that I've seen in actions would be cppdep and Include Hierarchy Viewer, although the first one is a little rough and the latter is a Windows analyzer only for the include tree. Also that still might not give you all the info if the dependencies are not explicit.
Edit: Also, the following StackOverflow search query seems to have results that might interest you:
https://stackoverflow.com/search?q=c%2B%2B+dependency

Related

quickJS documentation and/or well commented projects [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I am porting an in-house system from Duktape to quickJS to take advantage of the support for ES6 features and good module support (including dynamic imports).
Have ported some simple class libraries to be imported as shared object modules. But getting stumped with more advanced inter-operation issues. quickjs.h contains approximately 400 entries, but there are less than 2 pages of documentation for the C-API.
Any suggestions as to where more detailed documentation could be found?
Failing that pointers to any well documented project using quickJS might help. Yes, I have Googled and haven't found anything useful.
I am also in the same boat,QuickJS docs & examples are hard to find here are the best ones I found so far :
https://github.com/sntg-p/QuickJS-raylib : very nice as it wraps a good portion of the relatively large RayLib API
https://github.com/saghul/txiki.js might also have some nice things (as it wraps libuv amomngs other things
a more simple example https://github.com/calbertts/async-quickjs
hope the above examples help !

How to identify executable lines in C++ code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
How would one go about automatically identifying lines of C++ source files that contain (potentially) executable code? By potentially excecutable code, I mean code that might have been executable had its template been instantiated.
I expect it would be a purely syntactic determination. I'm not even completely sure this is even possible in all circumstances, but I guess it is.
Note that this is not the primary function of a dynamic coverage checker (although some may in fact perform this...)
(The goal is to enable a coverage checker to distinguish executable lines from comments, empty lines, type declarations, and the like.)
If you work with CLion IDE, you can use the pluging C/C++ Coverage.

Parse c++ and extract all used types and functions [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to write a program that runs before Visual Studio compiles my project.
It needs to extract only the types, names and parameters of all functions, classes, structs, enums my project is using from files in a specific folder (/sdk) and copy those into a new folder (/sdkmin)
So I basically want to have a program that minifies the sdk my project is using.
Is there any decent library that allows me to do that without having to write my own parser/lexer/whatever?
I think what you should do is look at some clang tools like "clang-format", "include-what-you-use", etc., which build on the clang AST front-end stuff to do various interesting things. This will provide the lexer and parser for you, which would indeed take a very long time if you started from scratch.
Github mirror here: https://github.com/llvm-mirror/clang

What do I actually need in a C++ project? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have been programming a lot in college and have a basic understanding on how to program. All the time the programming environment was configured and all necessary files were provided. Even the source files were pre-filled, where I had to only add essential lines of code. Thus, I learned the programming language and how to code, but I have no idea what is necessary besides the code to make a working application.
Now, when I want to make my own application, what is necessary to have except the functional programming code? What files are created automatically for me (such as in MS Visual Studio 2008 C++), what other files/libraries should be included by me? What are the essential project settings i should pay attention to? etc.
Most of the tutorials I found cover programming essentials and rarely mention the questions above. If someone could name the topics that cover these questions, I would greatly appreciate. The links to educational sources would be welcome.

Images as a part of source code documentation / comments? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
My question is similar to Adding images into source code, but my environment is Visual C++. Is there some way how to add images as a part of comments and make the IDE to display them (either inline, or by clicking on them or performing some action on them)?
What I was doing until now was either to provide an URL to an external .PNG or .SVG file placed in the SVN using its URL, or by creating an ASCII art, but it somehow feels strange to me in the age of GUIs and rich documents everywhere be still limited to this. If there is no better solution, are there at least some pluings to make this more streamlined (e.g. by creating the SVN document for me and placing a link to it in the comment, or by helping me in the ASCII art drawing)?
There is a sample add in that appears to be doing this. I haven't run it.
Here's the link. Source code is available.