Integrating Clang Within NetBeans?

前端 未结 3 522
野的像风
野的像风 2020-12-28 16:40

What are the steps involved in integrating Clang within NetBeans? I would like to also see the Clang error and warning messages from within NetBeans. This will be used mainl

相关标签:
3条回答
  • 2020-12-28 16:45

    Here is a link to the bug report for clang support in netbeans at netbeans.org. Track this bug for official netbeans support.

    0 讨论(0)
  • 2020-12-28 16:53

    If you have downloaded and installed the C/C++ plug-in for NetBeans 8+ following the instructions on this page:

    https://netbeans.org/community/releases/80/cpp-setup-instructions.html

    you have a C/C++ item in the upper menu of the Tools > Options panel. 1.) Click it.

    2.) Now under the list called "Tool Collection" (on the left) click the left button "Add".

    3.) In the window that opens, enter the "/usr/bin" as a base directory.

    4.) If you have a CLang compiler installed right the "Tool Collection Family" drop-down menu will show a CLang collection. Choose it.

    5.) Click "OK" in the pop-up window, then click "OK" in the "Options" panel/window.

    Enjoy.

    0 讨论(0)
  • 2020-12-28 17:05

    NetBeans 7.2 has supported Clang natively.

    Just open up Options Window, switch to C/C++ section, and add a new Tool Collection. Type: /usr/bin in Base Directory, and select "CLang" in the combo box.

    I have been using Clang to build my project, and NetBeans works with Clang perfectly.

    0 讨论(0)
提交回复
热议问题