코딩Coding/VisualStudioCode_IDE사용_Extensions

VSCode C/C++ Setting Clangd 서버 세팅하기(Linux OS) Instead of put a compile_commands.

내인생PLUS 2023. 1. 26. 23:33
728x90

https://github.com/clangd/vscode-clangd/issues/218

Instead of put a `compile_commands.json` at source root · Issue #218 · clangd/vscode-clangd

For cmake projects, compile_commands.json has to be copied/linked to the source root directory now. Instead of this, can a property of vscode workspace be set, so that vscode-clangd knows where is ...

github.com

 
 

Instead of put a compile_commands.json at source root #218

 
이거 찾느라 개고생 ㅠㅠ
 
 
 

{
  // c/c++ languages setting~ clangd server Setting
  "clangd.arguments": [
    "--compile-commands-dir=<path_to_directory_containing_compile_commands.json>"
  ],
}

 
 
 
 
내 Clang Version 14

$ clang --version
Ubuntu clang version 14.0.0-1ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

 
 
 
llvm 다운로드 하기
 
https://releases.llvm.org/

Download LLVM releases

Currently, LLVM releases are distributed under the Apache-2.0 with LLVM-exception license, an OSI-approved license. However, LLVM releases prior to LLVM 8.0 was licensed under University of Illinois Open Source License. LLVM provides extensive documentatio

releases.llvm.org

 
 



내가 공부 하려고 다시 정리
11분 부터 llvm설치 후 clang


한글Rust_072⭐️Rust ggez_game_helix tutorialVer23.03 WindowsOS #helix  #inlayhint #rustlang #scoop #zig
https://youtu.be/_KAnc1QehMk

















 
 
 


 

반응형