2023-02-12 09:41:54 -07:00
|
|
|
WarningsAsErrors: '*'
|
2022-10-12 01:49:53 -07:00
|
|
|
Checks: >
|
|
|
|
-*,
|
2022-10-21 05:47:44 -07:00
|
|
|
|
2022-10-12 01:49:53 -07:00
|
|
|
bugprone-*,
|
|
|
|
google-*,
|
|
|
|
misc-*,
|
2022-10-21 05:47:44 -07:00
|
|
|
modernize-*,
|
2022-10-12 01:49:53 -07:00
|
|
|
performance-*,
|
|
|
|
portability-*,
|
|
|
|
readability-*,
|
2022-10-21 05:47:44 -07:00
|
|
|
|
2022-10-12 01:49:53 -07:00
|
|
|
-bugprone-assignment-in-if-condition,
|
|
|
|
-bugprone-branch-clone,
|
|
|
|
-bugprone-easily-swappable-parameters,
|
2022-10-21 05:47:44 -07:00
|
|
|
-bugprone-implicit-widening-of-multiplication-result,
|
|
|
|
-bugprone-macro-parentheses,
|
|
|
|
-bugprone-narrowing-conversions,
|
|
|
|
-bugprone-not-null-terminated-result,
|
|
|
|
-bugprone-reserved-identifier,
|
2022-10-12 01:49:53 -07:00
|
|
|
-bugprone-sizeof-expression,
|
2022-10-21 05:47:44 -07:00
|
|
|
-bugprone-suspicious-include,
|
|
|
|
-bugprone-suspicious-memory-comparison,
|
2022-10-12 01:49:53 -07:00
|
|
|
-bugprone-unused-return-value,
|
2022-10-21 05:47:44 -07:00
|
|
|
-google-readability-braces-around-statements,
|
2022-10-12 01:49:53 -07:00
|
|
|
-google-readability-function-size,
|
2022-10-21 05:47:44 -07:00
|
|
|
-misc-misplaced-const,
|
2022-10-12 01:49:53 -07:00
|
|
|
-misc-no-recursion,
|
|
|
|
-misc-unused-parameters,
|
2022-10-21 05:47:44 -07:00
|
|
|
-modernize-macro-to-enum,
|
2022-10-12 01:49:53 -07:00
|
|
|
-performance-no-int-to-ptr,
|
2022-10-22 03:36:38 -07:00
|
|
|
-readability-avoid-const-params-in-decls,
|
2022-10-21 05:47:44 -07:00
|
|
|
-readability-braces-around-statements,
|
2022-10-12 01:49:53 -07:00
|
|
|
-readability-else-after-return,
|
2022-10-21 05:47:44 -07:00
|
|
|
-readability-function-cognitive-complexity,
|
|
|
|
-readability-function-size,
|
2022-10-12 01:49:53 -07:00
|
|
|
-readability-identifier-length,
|
|
|
|
-readability-isolate-declaration,
|
|
|
|
-readability-magic-numbers,
|
2022-10-21 05:47:44 -07:00
|
|
|
-readability-misleading-indentation,
|
|
|
|
-readability-redundant-declaration,
|
2022-10-12 01:49:53 -07:00
|
|
|
-readability-redundant-function-ptr-dereference,
|
|
|
|
-readability-suspicious-call-argument,
|
feat(extmark): support proper multiline ranges
The removes the previous restriction that nvim_buf_set_extmark()
could not be used to highlight arbitrary multi-line regions
The problem can be summarized as follows: let's assume an extmark with a
hl_group is placed covering the region (5,0) to (50,0) Now, consider
what happens if nvim needs to redraw a window covering the lines 20-30.
It needs to be able to ask the marktree what extmarks cover this region,
even if they don't begin or end here.
Therefore the marktree needs to be augmented with the information covers
a point, not just what marks begin or end there. To do this, we augment
each node with a field "intersect" which is a set the ids of the
marks which overlap this node, but only if it is not part of the set of
any parent. This ensures the number of nodes that need to be explicitly
marked grows only logarithmically with the total number of explicitly
nodes (and thus the number of of overlapping marks).
Thus we can quickly iterate all marks which overlaps any query position
by looking up what leaf node contains that position. Then we only need
to consider all "start" marks within that leaf node, and the "intersect"
set of that node and all its parents.
Now, and the major source of complexity is that the tree restructuring
operations (to ensure that each node has T-1 <= size <= 2*T-1) also need
to update these sets. If a full inner node is split in two, one of the
new parents might start to completely overlap some ranges and its ids
will need to be moved from its children's sets to its own set.
Similarly, if two undersized nodes gets joined into one, it might no
longer completely overlap some ranges, and now the children which do
needs to have the have the ids in its set instead. And then there are
the pivots! Yes the pivot operations when a child gets moved from one
parent to another.
2020-11-22 02:10:37 -07:00
|
|
|
-readability-non-const-parameter,
|