Clang 도구

Clang-Tidy 및 Clazy를 사용하여 C, C++ 및 Objective-C 프로그램의 문제를 감지하세요.

클랑 도구에 대한 클랑 진단을 전역적으로 구성하려면 다음과 같이 하세요:

  1. 환경설정 > Analyzer > Clang Tools 으로 이동합니다.

    분석기 환경설정의 Clang 도구 탭

  2. Clang-TidyClazy-Standalone 필드에서 사용할 실행 파일의 경로를 설정합니다.
  3. Diagnostic configuration 필드에는 수행할 검사가 표시됩니다. 필드 값을 선택하면 Diagnostic Configurations 대화 상자가 열리고, 여기서 수행할 검사를 선택하고 편집할 수 있습니다.

    대신 Clang-Tidy 구성 파일에서 검사를 수행하려면 Prefer .clang-tidy file, if present 을 선택합니다.

  4. Clang 도구를 실행하기 전에 프로젝트를 빌드하려면 Build the project before analysis 을 선택합니다. Clang 도구는 분석 전에 프로젝트를 빌드할 필요는 없지만 빌드 중에 생성되는 누락된 파일에 대한 오해의 소지가 있는 경고가 표시될 수 있습니다. 큰 프로젝트의 경우 프로젝트를 빌드하지 않는 것이 시간을 절약할 수 있습니다.
  5. 열려 있는 문서의 자동 분석을 사용하지 않으려면 Analyze open files 을 선택 취소하세요.
  6. Parallel jobs 필드에서 멀티코어 프로세서에서 분석 속도를 높이기 위해 병렬로 실행할 작업 수를 선택합니다.

Clang 진단 구성하기, Clang-Tidy 및 Clazy로 코드 분석하기, Clang 도구 설정 지정하기이슈도참조하세요 .

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.