컴파일 데이터베이스 사용
JSON 컴파일 데이터베이스 형식은 빌드 시스템과 독립적으로 개별 빌드를 재현하는 방법을 정의합니다.
컴파일 데이터베이스는 기본적으로 파일 목록과 해당 파일을 컴파일하는 데 사용되는 컴파일러 플래그로 구성됩니다. 이 데이터베이스는 파일을 편집하기 위해 열었을 때 코드를 올바르게 파싱하는 데 필요한 정보를 코드 모델에 제공하는 데 사용됩니다.
컴파일 데이터베이스를 프로젝트로 열려면, ‘ File ’ > ‘ Open Project ’로 이동하여 컴파일 데이터베이스 JSON 파일을 선택하십시오.
코드 모델에 있는 정보를 바탕으로 컴파일 데이터베이스를 생성하려면, Build > Run Generator 로 이동하여 ‘ Compilation Database ’를 선택하십시오.
compile_database.json.files 에서 C가 아닌 파일과 같은 파일을 프로젝트에 추가할 수 있습니다.
실험 단계인 ‘컴파일 데이터베이스 프로젝트 관리자(Compilation Database Project Manager)’를 사용하여 컴파일 데이터베이스 내의 파일을 열고, Clang 코드 모델의 모든 편집 기능을 이용할 수 있습니다.
참고: 이 기능을 사용하려면 Compilation Database Project Manager 플러그인을활성화해야 합니다.
헤더 파일과 소스 파일 간을 전환하려면 ‘ Tools ’ > ‘ C++ ’ > ‘ Switch Header/Source ’를 선택하십시오.
Projects 모드에서 컴파일 데이터베이스 프로젝트에 대한 사용자 지정 빌드 단계 및 실행 설정을 지정할 수 있습니다.
‘플러그인 활성화 및 비활성화’, ‘사용자 지정 빌드 단계 추가’, ‘실행을 위한 프로젝트 구성’, ‘코드 모델’ 및 ‘프로젝트 빌드 및 실행’항목도 참조하십시오 .
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.