Skip to content

Commit

Permalink
chore: Stop whinging about this ownership stuff. (#2775)
Browse files Browse the repository at this point in the history
Stop clangd from squiggling every time we use new.
I don't think we're honouring whatever rule it's trying to make us
follow?
  • Loading branch information
charlielye authored Oct 11, 2023
1 parent 5f99066 commit 3dd6900
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions barretenberg/cpp/.clangd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CompileFlags: # Tweak the parse settings
CompileFlags: # Tweak the parse settings
Remove: -fconstexpr-ops-limit=*
---
# Applies all barretenberg source files
Expand Down Expand Up @@ -42,7 +42,7 @@ Diagnostics:
- misc-non-private-member-variables-in-classes
- cppcoreguidelines-non-private-member-variables-in-classes
# We have many `for` loops that violate this part of the bounds safety profile
- cppcoreguidelines-pro-bounds-constant-array-index
- cppcoreguidelines-pro-bounds-constant-array-index
# Large diff; we often `use` an entire namespace.
- google-build-using-namespace
# Large diff
Expand All @@ -59,6 +59,8 @@ Diagnostics:
- readability-function-cognitive-complexity
# It is often nicer to not be explicit
- google-explicit-constructor
# Not honouring.
- cppcoreguidelines-owning-memory

--- # this divider is necessary
# Disable some checks for Google Test/Bench
Expand All @@ -69,5 +71,4 @@ Diagnostics:
# these checks get triggered by the Google macros
Remove:
- cppcoreguidelines-avoid-non-const-global-variables
- cppcoreguidelines-owning-memory
- cppcoreguidelines-special-member-functions
- cppcoreguidelines-special-member-functions

0 comments on commit 3dd6900

Please sign in to comment.