Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Recently I got a grasp of Microsoft's Standard Annotation Language (SAL) for annotating C/C++ source codes. This feature can be very helpful for debugging and during development but unfortunately it is not a portable cross-platform library. Is there any standard or open-source tool for annotating C/C++ codes? Is there a similar feature available in gcc?
The closest that I'm aware is GCC's attributes, but other compilers don't support the syntax. GCC attribute syntax does not support as many annotations as SAL, but you may find some of the annotations useful.
Alternatively, if you're using templates, you may want to check out Boost Static Assert, which most compilers support.
Also note that CLANG supports more annotations than GCC, and using CLANG's static analyzer may be closer to what you're wanting.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Is there a smaller download for GCC if the only language you need to be compiled is C? TCC is a fantastic option for windows, however I need it to compile on several platforms. I also like the fact that GCC is very commonly used.
If there is not a specific download that is smaller, would I be able to weed out the data in the downloaded package that is not needed to compile C? Would there be issues to this approach?
When you build GCC, you must first configure it.
Specifying --enable-languages=c will constrain your build to only the C language.
There are many other options that allow you to tailor GCC to your needs.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Are there any open-source 100% C++11 compatible(*) implementations of standard C++ library?
(*) An implementation which is proven to match the standard completely or an implementation which has no known defects.
There is no certification process, and C++11 is a moving target as defect reports continue to be processed, so I'm not sure your question is entirely meaningful. Or if it is, the answer is and always will be "No".
But (amongst others) the libstdc++ crew are doing a pretty good job of tracking the best known approximation of what the standard library should be.
You can look at libc++ of llvm, http://libcxx.llvm.org/, you can access the SVN repos from their Website and one of their main feature is "Correctness as defined by the C++11 standard"
The libc++ standard library team that is part of the LLVM project claim that they have a full C++1y compliant implementation.
Here you can see the status of the library .
There is one big cons with libc++ and it's the fact that libc++ it's not even nearly as popular as libstdc++v3 for now, for example no GNU/Linux distribution is adopting this standard library yet. It's not a secret the fact that the main focus of this library is on MAC OS X/FreeBSD, at least for now.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
The biggest pain of using libraries like boost::serialization is that a method needs to be supplied to each class that enumerates its fields. It's easy to make a mistake or forget to keep this method updated.
It seems that object serialization could easily be automated if there was extra support from the compiler. I guess it would be a language extension, but not visible directly to the user, only through a library. Is there a project that does this for gcc or perhaps clang?
Not really
Serialization isn't standardized in C++ (i.e. it's not in a standard library nor in a compiler). You'll need a special library.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Could you suggest some open source tools that analyze C++ code and checks the following rules:
naming conventions,
file inclusions,
function design,
data types,
flow control,
memory allocation,
file handling,
portable code,
runs under Solaris or SUSE
http://www.google.com/search?q=misra+checker
Of course, if the rules you're trying to enforce don't exactly match someone else's idea of a coding standard, no existing tool is going to work.
It is still in early development (especially for C++) but its improving rapidly and is a really interesting open source project in a vibrant community. So see if the CLang Static Analyzer does what you need.
I have used coverity (http://coverity.com/)in my organization. It does static bug check analysis and I found it to be very useful. It is highly customization and provides a number of checks. I am not entirely sure if it works on solaris or not but I would recommend checking it out.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am looking for a free (for commercial use) library for syntax coloring written in c/c++. Are there any out there?
I am not sure if you are looking for something to color an existing control or a control with text coloring built in. If you are looking for the later you could check out Scintilla.
Scintilla is a free source code
editing component. It comes with
complete source code and a license
that permits use in any free project
or commercial product.
GtkSourceView is a nice library for syntax highlighting and source code editing. It's used in several Gnome editors like gedit and Anjuta and is in active development; it also has a very permissive LGPL license which permits its use in commercial products.
There is also a C++ wrapper called gtksourceviewmm.
http://projects.gnome.org/gtksourceview/
another project to note is the GNU source-highlite
found this:
http://colorer.sourceforge.net/