Skip to content

Commit

Permalink
Clangd should always interpret headers as C++
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=241118

Reviewed by Saam Barati.

Attach `-xc++` flag to headers in .clangd to interpret all headers as C++ by default.

* .clangd:

Canonical link: https://commits.webkit.org/251137@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Constellation committed May 31, 2022
1 parent 7eb46ed commit 2038e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .clangd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
If:
PathMatch: [.*\.h]
CompileFlags:
Add: [--include=config.h]
Add: [-xc++, --include=config.h]
---
If:
PathMatch: [.*\.cpp]
Expand Down

0 comments on commit 2038e73

Please sign in to comment.