Configure C++ Google Style in CLion IDE - c++

This is a rather easy matter in IntelliJ (and setting up PEP8 in PyCharm), but I have been googling and I couldn't find a configuration file (I presume in XML or whatever CLion uses) that I could use to configure it to adhere to the Google style guide.
Is this a "future feature" or am I missing something fundamental?
Of course, I can configure it manually, but it's a tedious and time-consuming operation; if someone has already done that, awesome and thanks for sharing!

CLion now supports this natively, as of v1.1. A blog post from JetBrains shows how to use pre-defined code styles here. Download the latest version of CLion here.

Go to Setting/Preferences | Editor | Code Style | C/C++ then click the button "Set from..." in the top right and select "Google."

You can try cpp-lint plugin. Code style support coming soon!

Related

Why can't i search for vs code extensions?

So i have fresh Manjaro installation and only software i have is ws code and some bloatware.
But when i want to search for extesions like C/C++ it find somethink but not what i need.
This is what i get
my output
what i want
I find something like product.json but i cannot find its location or anything.
I tried reinstalling... nothing.
Also I can't find it as .vsix file so i don't know what to do.
Search for solution on internet.
Kamen's answer explains it pretty well. However, there is a workaround. You can go to the browser marketplace and search for the C/C++ Extension Pack. On the right, under "Resources", there is a "Download Extension" link. It will download a vsix file which you can install in Code by searching for Extensions: Install from VSIX... in the command palette (ctrl + shift + p).
What you're using is Code - OSS and not VSCode; they're built from almost the same source except for the telemetry and the part that handles the marketplace (the latter being a proprietary component by Microsoft). As far as I know it's not possible to have VSCode's Marketplace working for another editor. Code - OSS relies on Open VSX Registry.
References:
Differences between Code OSS and Visual Studio Code
https://github.com/microsoft/vscode/wiki/Differences-between-the-repository-and-Visual-Studio-Code

Does Eclipse support C/C++?

Does Eclipse support c/c++? I've been coding with Eclipse (Java) for a while now and i'm starting to learn C++ but i can't get Eclipse to work with C++. I downloaded ""Eclipse IDE for C/C++ Developers"" from Eclipse.org, but it didn't work. I don't want to use visual studio..Please help me out.
Basically, i can't create new project, class, etc.. When i clicked File --> New --> it shows "No Applicable Items"
Thank you.
A "No applicable items" message most likely means you're still using a Java perspective, so it can't open a C project. You need to change to the C/C++ perspective.

Netbeans 7 and XSLT support

Does anyone knows how to enable XSLT support, auto-complete in particular, in Netbeans 7?
Every time I'm opening a new tag within my style, the auto-complete pop-up appears, and shows "downloading...". After few seconds it disappears and that's all.
Regards,
Radek
Answer from here:
https://blogs.oracle.com/geertjan/entry/xml_schema_editor_in_netbeans
Go to Tools | Plugins in NetBeans IDE 7.0.1. In the Settings tab, register this update center:
http://deadlock.netbeans.org/hudson/job/xml/lastSuccessfulBuild/artifact/build/updates/updates.xml
Now go to the Available Plugins tab and search for XML Tools. Install that plugin.
Go to the New File dialog and pick an XML schema file

Just beginning C++ in Xcode

...and I mean LITERALLY just beginning. As in, I just started earlier today.
All I want to do is figure out how to build and run a 'hello_world' code from my textbook, but the 'build and run' button will not light up. I have read through 'Xcode Features Overview' as well as checking out at some help forums, and it's clear that I need files in my template that I just don't have. I think the issue is that I'm starting with a blank template when I should be starting with a 'C++ tool' template. This seems like it should be incredibly simple, but when I hit file/New Project... assistant does not pop up, instead I get a window with very limited options including Application, Framework & Library, Application Plug-in, System Plug-in and Other. I feel like I can pick a lot of this up from help forums and reference documents but I definitely need to figure out how to successfully build and run a program first XD
P.S. I have Xcode 3.2.2 if it makes a difference
In the "New Project" window, select Application > Command Line Tool, and choose "C++ stdc++" from the Type drop down.

Eclipse CDT Custom Compiler Error Parsing Plugin

I'm using an uncommon C compiler with Eclipse CDT. I have a make file setup which is nice, but I'd like IDE integration with the error / warning output of my compiler.
Does anybody know what steps I can take to write a plugin for parsing / supporting my compilers output? I think it should be easy but there is a barrier of entry of figuring out where to start. Would be nice if Eclipse would let me do New -> Compiler Error Parser Plugin, or something like that.
Thanks
It's not quite that simple...
First of all make sure you have the Eclipse PDE (Plug-in Development Environment) and CDT SDK installed. If not then you'll need to tell Eclipse to download them (Help -> Install New Software).
Then, create a new Plug-In project. In its Extensions tab, add a new extension against point org.eclipse.cdt.core.ErrorParser. You will then have to write some java code to actually implement it. Fortunately the PDE makes the meta-work relatively straightforward; you put the name of your class in the appropriate box and click on the "class*" hyperlink and it will offer to create a skeleton class for you.
I suggest you grab the source code to the CDT and have a look at GCCErrorParser.java as an illustration of the sorts of things yours will have to do.
Finally, when you're ready to test it, set up a debug configuration of type Eclipse Application. (This will spawn a second instance of Eclipse; it has to use a different workbench.) Go into the properties of your C project, Settings panel, Error Parsers tab and switch on your shiny new error parser.
In Eclipse CDT 7.0.1 it's pretty simple. Just add a new error parser
under Window -> Preferences -> C/C++ Build -> Settings
and add regular expression with 3 groups: filename, linenumber and error description.
For example, for Visual Studio compiler regexp will be:
(.*?)\((\d*)\)\s:\s(.*error.*)
$1 - filename
$2 - line number
$3 - error description
IBM has published a step-by-step guide to how you can write your own CDT parser, its available here
Relevant google search for future proofing should be:
https://www.google.com/search?q=ibm+eclipse+write+cdt+parser&oq=ibm+eclipse+write+cdt+error+parser
In CDT 7 there is going to be a regular expression error parser included which should make this sort of thing much simpler. There are some details on the faq.
CDT 7.0 won't be released until the end of June, but you could try milestone builds to see if it does what you want. These can be downloaded here. You'll need to have a matching milestone version of the eclipse platform too.
I am using this plugin:
http://www.isystem.com/downloads/downloads/204-Eclipse-Downloads.html
is this working ?
(.*)\((\d+)\)\s:\sError(.*)
file: $1
line: $2
desc: $3
.
srkos
In CDT 8 this functionality does not require a plugin. I have support for several compilers and build systems using simple regular expressions. See screenshot here. You can test the regexes directly in the console output before copying them to this dialog. If you need to move them between machines, the resulting parsers are stored in your workspace under .metadata/.plugins/org.eclipse.cdt.core