Skip to content

Commit

Permalink
Adding clangd support for metal code
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslavyaroslav committed Nov 6, 2024
1 parent d485291 commit 9c996fa
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Apply a config conditionally to all C files
If:
PathMatch: .*\.(c|h)$

---

# Apply a config conditionally to all C files
If:
PathMatch: .*\.(c|h)pp

---

If:
PathMatch: .*\.metal?

CompileFlags:
Add:
# language settings
- '--std'
- 'c++17'
- '-x'
- 'c++'
# includes
- '-I'
- '/System/Library/Frameworks'
- '-I'
- '/Library/Frameworks'
- '-I'
- '/usr/local/include'
- '-I'
- '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/metal/32023/lib/clang/32023.335/include'
- '-I'
- '/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/32023/Libraries/lib/clang/32023.401/include/metal'

0 comments on commit 9c996fa

Please sign in to comment.