views:

1890

answers:

4

Hello

Is there some C/C++ IDE for windows, which is integrated with LLVM compiler (and clang C/C++ analyzer), just like modern Xcode do.

I have Dev-Cpp (it uses outdated gcc) and Code::Blocks (with some gcc). But Gcc gives me very cryptic error messages. I want to get some more user-friendly error messages from clang frontend.

Yes, clang was not able to be used with complex C++ code, but trunk clang already can compile LLVM itself. So I wonder if is there any of llvm IDEs in development or in beta versions.

Thanks.

update: Yes, I can use clang as other compiler with gcc-compatible IDEs. But is there any IDE, that are Integrated with clang? Clang have different output format, so ide must parse it. Clang can provide IDE parsing of sources. Clang has analyze option, which must be supported in IDE. Take a look, e.g http://iphonedevelopertips.com/xcode/static-code-analysis-clang-and-xcode-3-2.html

update1: And the most wanted feature of clang - is smart auto-completion, so IDE can suggest only syntaxilly-correct variants, e.g. list only fields of this struct, class.

+4  A: 

As far as I know, Code::Blocks offers the possibility to be configured with different compilers. It should not be too difficult to use LLVM with Code::Blocks.

QTCreator (http://qt.gitorious.org/qt-creator) or maybe Monodevelop (http://monodevelop.com/) could also work.

Another IDE might be Eclipse with CDT (C++ Development Tooling), but I did not find anything (useful) in conjunction with LLVM.

I think most IDEs offer a way to configure a custom compiler, even if it may take a while until it is configured properly.

phimuemue
+2  A: 

Clang has a driver that's (at least supposed to be) a direct substitute for gcc, so essentially any IDE that can use gcc as its compiler should be able to use clang as its compiler as well (though I haven't tested it personally, so I can't really vouch for how well it works).

Jerry Coffin
+3  A: 

No.

Only xcode has minimal clang support currently. If you want to use clang static analysis on windows you'll have to do it through the CLI.

Arelius
+2  A: 

LLVM contributor Dan Gohman recently added Clang code completion to vim.

http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/vim/vimrc is intended for use in developing LLVM itself and helps with the LLVM coding style, but the code completion portion should be easy enough to extract.

Yeah, yeah, vim isn't an IDE, but it may be useful to know about.

ohmantics
VIM is a more then just IDE. Thank you for good news!
osgx