Has anybody used CLion IDE?

1,019 views
Skip to first unread message

Shirleen Lou

unread,
Oct 5, 2017, 11:48:47 AM10/5/17
to chromi...@chromium.org
Hi, All,

I am looking for a better IDE to do C++ code development.  Has anybody used CLion?  Andriod Studio?  Any recommendation?

Thanks,
Shirleen

James Cayo

unread,
Oct 5, 2017, 12:49:48 PM10/5/17
to xl...@google.com, Chromium-dev
Some IDEs I've used include Visual Studios for c++ 11 and up along with Xcode for gaming and Eclipse for more enterprise development. I think it depends on the type of development you are doing.

J.C

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CA%2BjVFUrjesuck7LxsRgGTkfB9OHpeuzwYEhDFrBXmyXW_mcvmg%40mail.gmail.com.

David Grogan

unread,
Oct 5, 2017, 1:22:52 PM10/5/17
to xl...@google.com, Chromium-dev
I don't think it's practical to use CLion for chromium because it doesn't support gn/ninja, only cmake.

I use eclipse but don't recommend it (setup is too error-prone, debugger is finicky, error messages not that helpful) though I still prefer it over vim/ycm.

Thinking about switching to VS code or Visual Studio.

--

vlad...@yandex-team.ru

unread,
Oct 5, 2017, 1:26:55 PM10/5/17
to Chromium-dev, xl...@google.com
I've used CLion - good enough, but slow index.

Also I wrote a CMake writer for GN. Probably, I'll make a patch soon, it'd be good if someone needs it.


On Thursday, October 5, 2017 at 8:22:52 PM UTC+3, David Grogan wrote:
I don't think it's practical to use CLion for chromium because it doesn't support gn/ninja, only cmake.

I use eclipse but don't recommend it (setup is too error-prone, debugger is finicky, error messages not that helpful) though I still prefer it over vim/ycm.

Thinking about switching to VS code or Visual Studio.
On Thu, Oct 5, 2017 at 8:47 AM, 'Shirleen Lou' via Chromium-dev <chromi...@chromium.org> wrote:
Hi, All,

I am looking for a better IDE to do C++ code development.  Has anybody used CLion?  Andriod Studio?  Any recommendation?

Thanks,
Shirleen

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
Message has been deleted

Jacob Dufault

unread,
Oct 5, 2017, 1:41:32 PM10/5/17
to Chromium-dev, xl...@google.com
I've done extensive evaluation of on most of the C++ IDEs (excluding Visual Studio). In short, most can't handle Chrome's size.

- Eclipse has a great semantic index but tends to be slow. If you can deal with the slowness/jank it seems to work fine.
- Qt Creator is very fast at code completion and goto declaration but lacks a full semantic graph of the code so things like cross references do not work well / are very slow.
- Vim/Emacs work reasonably well with YouCompleteMe but lack a real semantic graph, so no cross refs/etc.
- KDevelop crashes too much. Most other IDEs don't generate an accurate semantic graph and are not useful.
- CLion cannot index Chrome within a reasonable amount of time. If you restrict it to a very small subset of code it works fine.

I got a bit tired with this situation and wrote a C++ language server for Visual Studio Code (eventually any editor that implements language server spec) that is extremely fast (20-30 minutes to index the entire code-base, under 20ms latency for semantic operations) and has all the normal semantic operations, ie, code lens, cross refs, type hierarchy, code completion, call graph, etc. It is not ready for general usage but is being dogfooded by a number of engineers - ping me off list if you're interested.

Nico Weber

unread,
Oct 5, 2017, 1:50:18 PM10/5/17
to Jacob Dufault, Chromium-dev, xl...@google.com
On Thu, Oct 5, 2017 at 1:41 PM, 'Jacob Dufault' via Chromium-dev <chromi...@chromium.org> wrote:
I've done extensive evaluation of on most of the C++ IDEs (excluding Visual Studio). In short, most can't handle Chrome's size.

- Eclipse has a great semantic index but tends to be slow. If you can deal with the slowness/jank it seems to work fine.
- Qt Creator is very fast at code completion and goto declaration but lacks a full semantic graph of the code so things like cross references do not work well / are very slow.
- Vim/Emacs work reasonably well with YouCompleteMe but lack a real semantic graph, so no cross refs/etc.

For vim, you can get great cross-refs with https://github.com/chromium/vim-codesearch (which works by talking to cs.chromium.org -- so Linux-only cross-refs for now, but still very useful).
 

Shawn Doskocil

unread,
Oct 5, 2017, 1:59:23 PM10/5/17
to Chromium-dev, jduf...@google.com, xl...@google.com
Yeah I’m thinking 🤔 about it now if I I had more opportunity to work on my life and you we can get it done 。 新密码 再次输入新密码   n QuickGifts. I’m finishing up ed shun and imde deed deeds. I’m trying to balance my phone 📱 with life time with sd cards books movies 🎥 network s routes r’s and 3 phones 📞 2 sounds/iso&droids. It’s hard to do my job and project so I’m getting resume together first then will help her and go back to normal mindset s. (I just play game s era) tell people what they how does play the game I tell people what they want to hear a manipulate systems and I’ll do it for the right reason and I’m very careful with my strategy but right now my parents are on my back because they think I’m fucking crazy and they have no idea 💡.  I’m obsessed and compulsive with finishing this project to be successful and to make myself more meaningful feeling 

Shirleen Lou

unread,
Oct 5, 2017, 4:41:45 PM10/5/17
to Jacob Dufault, Chromium-dev
Thank you, everyone.  I got many amazing answers.  I will definitely look into your suggestions and reach out to you if needed.

Thanks again!
Shirleen

David Grogan

unread,
Oct 5, 2017, 5:13:43 PM10/5/17
to jduf...@google.com, Chromium-dev, Shirleen Lou
On Thu, Oct 5, 2017 at 10:41 AM, 'Jacob Dufault' via Chromium-dev <chromi...@chromium.org> wrote:
I've done extensive evaluation of on most of the C++ IDEs (excluding Visual Studio). In short, most can't handle Chrome's size.

- Eclipse has a great semantic index but tends to be slow. If you can deal with the slowness/jank it seems to work fine.
- Qt Creator is very fast at code completion and goto declaration but lacks a full semantic graph of the code so things like cross references do not work well / are very slow.
- Vim/Emacs work reasonably well with YouCompleteMe but lack a real semantic graph, so no cross refs/etc.
- KDevelop crashes too much. Most other IDEs don't generate an accurate semantic graph and are not useful.
 
- CLion cannot index Chrome within a reasonable amount of time. If you restrict it to a very small subset of code it works fine.

Does this mean you also wrote a cmake generator for gn, like vladbelov did? Or am I wrong in thinking that CLion requires cmake?

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/60787051-08d0-4c0f-b95a-4e2ed7d50802%40chromium.org.

Jacob Dufault

unread,
Oct 5, 2017, 5:27:46 PM10/5/17
to David Grogan, Chromium-dev, Shirleen Lou
> Does this mean you also wrote a cmake generator for gn, like vladbelov did? Or am I wrong in thinking that CLion requires cmake?

A co-worker had one which he wrote by hand that I reused. iirc you only need to setup include paths and defines, similar to eclipse.

Ben Wagner

unread,
Oct 5, 2017, 5:30:31 PM10/5/17
to jduf...@google.com, David Grogan, Chromium-dev, Shirleen Lou
On Thu, Oct 5, 2017 at 5:26 PM, 'Jacob Dufault' via Chromium-dev <chromi...@chromium.org> wrote:
> Does this mean you also wrote a cmake generator for gn, like vladbelov did? Or am I wrong in thinking that CLion requires cmake?

A co-worker had one which he wrote by hand that I reused. iirc you only need to setup include paths and defines, similar to eclipse.

Note that there's one in the Chromium tree at build/android/gradle/gn_to_cmake.py (works as a gn json script, see comments at top for usage). Though not sure how well CLion works with that.
 

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.

vlad...@yandex-team.ru

unread,
Oct 5, 2017, 5:39:30 PM10/5/17
to Chromium-dev, jduf...@google.com, dgr...@google.com, xl...@google.com
Yeah, I've used this script before. But it's not full for my usages, because GN knows more information about a build than JSON contains. Also it's simpler for me to support command like gn gen out/Release --ide=cmake than a script.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.

Shirleen Lou

unread,
Oct 17, 2017, 1:53:07 PM10/17/17
to Jacob Dufault, Chromium-dev
Thanks for your input about different IDEs.

for the past two weeks, I have been using combinations of editors, vim for simple edit, Sublime for directory and file search, cs.chromium.org for indexed code search.  And I found an article about using Sublime for chrome development: https://chromium.googlesource.com/chromium/src/+/master/docs/sublime_ide.md

I have colleagues using CLion, since he knows what source code he wants to include in his project, indexing is not a problem for him.  I am new to chromium development and would like to be able to include all the source code, so I am settled with combined vim, sublime, and code search solution.

Thanks again,
Shirleen

baile...@google.com

unread,
Oct 25, 2017, 9:48:22 PM10/25/17
to Chromium-dev, jduf...@google.com
I am going through a similar process to you Shirleen. Is there somewhere you could point me that would help me setup CLion for a designated portion of the chromium tree? Thanks!
Reply all
Reply to author
Forward
0 new messages