本文介绍了如何运行clang&铛,现代化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


(我正在与channel9.msdn.com咖啡馆论坛交叉发布这个,因为我不确定这是最合适的论坛)。$

(I'm cross posting this with the channel9.msdn.com coffee house forum because I'm not sure that is the most appropriate forum).


clang和clang-modernize看起来像一些非常酷(和免费!)的工具,用于分析和操作C ++源代码。


我喜欢  http://channel9.msdn.com/Events/GoingNative/2013/The-Care-and-Feeding-of-Cs-Dragons
他们讨论这些很酷工具和我很想尝试再现演示。

I loved http://channel9.msdn.com/Events/GoingNative/2013/The-Care-and-Feeding-of-C-s-Dragons. They discuss these very cool tools and I am dying to try reproducing the demos.


如何运行clang 和clang-modernize?

How do I run clang  and clang-modernize?


(1)我已经尝试了Cygwin版本的clang,但是它在理解我的包含文件的位置时遇到了问题。

(1) I've tried the Cygwin version of clang but it is having problems understanding where my include files are.


(2)clang-modernize似乎在Cygwin中缺失。我尝试下载并编译源代码,但它不能在cygwin / windows8上编译。将CRLF转换为LFs有帮助,但确实没有解决所有的编译错误。

(2) clang-modernize seems to be missing from Cygwin. I tried downloading and compiling the source but it does not compile on cygwin/windows8. Converting the CRLFs to LFs helped but did not solve all the compilation errors.


(3)我尝试使用hyperv设置Ubuntu并下载clang-modernize。clang-modernize确实运行但是立即死亡且缺少依赖。

(3) I tried using hyperv to set up a Ubuntu and download clang-modernize. clang-modernize does run but dies immediately with a missing dependency.


(4)我尝试使用hyperv设置debian但是我无法弄清楚如何配置debian来查看我的网卡所以我无法下载clang.Ubuntu没有这个问题。

(4) I tried using hyperv to set up debian but I cannot figure out how to configure debian to see my network card so I cannot download clang. Ubuntu did not have this problem.


 任何人都有其他想法来配置和运行clang和clang-modernize?

 Anyone have some other ideas for configuring and running clang and clang-modernize?


 谢谢

 Thanks


Siegfried

Siegfried

siegfried heintze

siegfried heintze

推荐答案

什么任何这都与 Microsoft Visual C ++ 有关,这是这个由
微软主持的论坛的主题吗?绝对不在这里。


我不确定到Windows的Clang端口是否已经完成,或者现在它的标准兼容性比GCC更好了。这个帖子来自几个月之前可能提供信息:



Clang On Windows

http://www.daniweb.com/software-development/cpp/threads/460783/clang-on-windows



- Wayne

What does any of this have to do with Microsoft Visual C++ which is the topic for this
Microsoft-hosted forum? Definitely off-topic here.

I'm not sure that Clang ports to Windows are complete yet, or that it is now any better
in Standards-compliance than GCC. This thread from a few months ago may be informative:

Clang On Windows
http://www.daniweb.com/software-development/cpp/threads/460783/clang-on-windows

- Wayne


这篇关于如何运行clang&铛,现代化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 07:54