用于Windows的LLVM C ++ IDE [英] LLVM C++ IDE for windows

查看:369
本文介绍了用于Windows的LLVM C ++ IDE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一些用于Windows的C / C ++ IDE,它与LLVM编译器(和clang C / C ++分析器)集成,就像现代Xcode一样。

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

我有Dev-Cpp(它使用过时的gcc)和Code :: Blocks(有一些gcc)。
但是Gcc给了我很隐蔽的错误信息。我想从clang前端得到一些更加用户友好的错误消息。

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.

是的,clang不能与复杂的C ++代码一起使用,但是树干ang已经可以编译LLVM本身。所以我想知道是否有任何开发或测试版的llvm IDE。

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.

谢谢。

更新:
是的,我可以使用clang作为其他编译器与gcc兼容的IDE。但是有没有任何IDE,与>集成? Clang有不同的输出格式,所以ide必须解析它。 Clang可以提供IDE的IDE解析。 Clang有分析选项,它必须在IDE中支持。查看,例如 http://iphonedevelopertips.com/xcode/static -code-analysis-clang-and-xcode-3-2.html

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:​​
最盼望的特点是cl - 是智能自动完成,所以IDE可以建议只有语法正确的变体,例如仅列出此结构,类的字段。

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.

结果(从答案合并):

  • Eclipse with CDT>=8 and with http://code.google.com/p/llvm4eclipsecdt/ plugin, from Petri Tuononen (no smart auto-completion)
  • Vim with vimrc from llvm project (smart completion only?) http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/vim/
  • Emacs with (smart completion only?) https://llvm.org/svn/llvm-project/cfe/trunk/utils/clang-completion-mode.el
  • QtCreator: http://labs.qt.nokia.com/2011/10/19/qt-creator-and-clang/
  • CodeLite: http://www.codelite.org/LiteEditor/ClangIntegration35

推荐答案

llvm4eclipsecdt )。据我所知,只支持Windows的支持LLVM的IDE 。我是插件的主要作者,因此您可以询问任何与此相关的问题。

LLVM is supported in Eclipse CDT via plug-in (llvm4eclipsecdt). It is the only Windows supported IDE supporting LLVM as far as I know. I am the main author of the plug-in so you can ask any questions related to it.

该插件提供了Clang和llvm-gcc编译的基本功能并支持Linux和Windows(w / Cygwin& MiNGW)。 LLVM工具(例如汇编器,归档器,链接器和静态编译器(llc))被配置并且可以通过UI定制。该插件提供了IDE可以提供的所有好处,如轻松配置和构建与一个动作。

The plug-in offers the basic functionality for Clang and llvm-gcc compilation and support Linux and Windows (w/ Cygwin & MiNGW). LLVM tools such as assembler, archiver, linker, and static compiler (llc) are configured and can be customized via UI. The plug-in offers all the benefits that IDE can offer such as easy configuration and building with one action.

唯一的缺点是它还没有准备好,因为它缺少一些LLVM可以提供的高级功能,如Clang分析和智能自动完成。插件也没有测试好,可能无法正常工作,所以我希望我可以通过从谷歌代码开发网站(下面列出)发现的邮件列表获得用户反馈。我希望我有时间进一步发展。我只是在业余时间发展,这是非常有限的。

The only drawback is that it is not ready yet as it lacks of some of the advanced features that LLVM can offer such as Clang analyze and smart auto-completion. The plug-in is also not tested well and may not work perfectly therefore I hope I can get user feedback via mailing list found from Google code development site (listed below). I wish I had time to develop it further. I only develop it in my spare time, which is very limited. I welcome any developers to participate and contribute to the project.

开发网站:

http://code.google.com/p/llvm4eclipsecdt/

https://github.com/TuononenP/llvm4eclipsecdt

Eclipse市场(100%免费&开源):

http://marketplace.eclipse.org/content/llvm-toolchain-eclipse-cdt

Eclipse marketplace (100% free & open-source):
http://marketplace.eclipse.org/content/llvm-toolchain-eclipse-cdt

更新:插件已弃用。而是使用官方的Eclipse更新站点,例如,在编程语言下安装C / C ++ LLVM-Family Compiler Build Support。 http://download.eclipse.org/releases/mars

这篇关于用于Windows的LLVM C ++ IDE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆