Skip to content

Commit

Permalink
Improve clangd support when developing
Browse files Browse the repository at this point in the history
This enables more features in Clangd.
Otherwise anything in the GUI C++ code may be greyed out, depending on
the editor.

Also ignore the Clangd cache.
  • Loading branch information
LeonMatthesKDAB committed Nov 22, 2023
1 parent d14aaee commit 5a7b102
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-FileCopyrightText: 2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
# SPDX-FileContributor: Leon Matthes <[email protected]>
#
# SPDX-License-Identifier: MIT OR Apache-2.0
CompileFlags:
Add: [-DCXX_QT_GUI_FEATURE=1]
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ compile_commands.json
# cmps (https://github.com/leonmatthes/cmps)
.cmps/

# clangd cache
.cache/

0 comments on commit 5a7b102

Please sign in to comment.