Integrating Clang Within NetBeans?

前端 未结 3 540
野的像风
野的像风 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: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.

提交回复
热议问题