firewave wrote:
Can the logic for implementing this also be used to address
https://github.com/llvm/llvm-project/issues/86447#issuecomment-2016943524?
https://github.com/llvm/llvm-project/pull/119371
___
cfe-commits mailing list
cfe-commits@lists.llvm
firewave wrote:
This will conflict with `modernize-make-shared` and `modernize-make-unique`.
I also very sure having `new` any modern C++ code is very much to be avoided.
Having no insight on the differences of the inner workings - but just based on
https://en.cppreference.com/w/cpp/memory/sha
firewave wrote:
How is this different from `readability-redundant-casting`?
https://github.com/llvm/llvm-project/pull/118033
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
firewave wrote:
This might help with #72300.
https://github.com/llvm/llvm-project/pull/110200
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
firewave wrote:
I do not think this logic should be added to a check and should stay in a
single place as it is right now.
> A bit of nitpick, but would it make sense to have some consistency with
> `readability-identifier-naming`?
As pointed out here this logic now exists in three different
firewave wrote:
Thanks for looking into this.
> So unfortunately this change won't improve
> `performance-unnecessary-value-param`.
>
> I can have a look at unifying both in a subsequent PR.
Simply adding comments to the tickets in question, so the information is not
lost to time, would suff
firewave wrote:
Could this also be applied for #69577? (please also mind the tickets referenced
in it)
https://github.com/llvm/llvm-project/pull/94362
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listi
@@ -0,0 +1,26 @@
+.. title:: clang-tidy - readability-mark-static
+
+readability-mark-static
+===
+
+Detects variable and function can be marked as static.
+
+Static functions and variables are scoped to a single file. Marking functions
+and variables as static
@@ -0,0 +1,26 @@
+.. title:: clang-tidy - readability-mark-static
+
+readability-mark-static
+===
+
+Detects variable and function can be marked as static.
+
+Static functions and variables are scoped to a single file. Marking functions
+and variables as static
firewave wrote:
Isn't this already covered by `-Wmissing-prototypes`?
https://github.com/llvm/llvm-project/pull/90830
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
firewave wrote:
Depending on the calling code the fix might actually be the introduction of
`std::move()`.
This is a known issue upstream: https://trac.cppcheck.net/ticket/12384.
https://github.com/llvm/llvm-project/pull/87273
___
cfe-commits mailing
firewave wrote:
Maybe add `+=` to the tests as well? I have also seen it reported with that.
https://github.com/llvm/llvm-project/pull/84489
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com
firewave wrote:
> Why can't we make "filter" use a full regex that supports negative
> expressions instead?
How do you do that? I thought `llvm::RegEx` doesn't support negative
expressions.
https://github.com/llvm/llvm-project/pull/82416
___
cfe-com
firewave wrote:
I think this might also require documentation changes.
The documentation is also a bit misleading in terms of the defaults:
https://clang.llvm.org/extra/clang-tidy/checks/bugprone/unused-return-value.html.
I add issues detecting a custom function as it required the ``::` prefix
firewave wrote:
> Any thoughts on open-ended check name instead? `modernize-string-find-affix`
> (affix = prefix | suffix)?
`modernize-string-startswith-endswith` is the first what popped into my head
but it would not have been my first choice.
Would this also be the check you would implement
firewave wrote:
> would be to support also endswith in same check
+1
On a side note: I will be looking into the related patterns and their
performance soon as I am getting very strange code/performance when they are
used outside of a benchmark - especially with Clang.
https://github.com/llvm
firewave wrote:
I wonder if this should also detect the `str.compare("marker", 0, 6) == 0`
pattern. There is possibly some kind of pattern involving `std::equal()` as
well. Could as well be a different check though.
Not sure if it would have a performance impact to use `starts_with()` instead
firewave wrote:
> Hi @firewave, I think you are referencing a different issue. If I test #71852
> with PR #72050 I do not get the expected behavior.
Of course you are right. I missed there being two different issues. Sorry about
the noise.
https://github.com/llvm/llvm-project/pull/72068
_
firewave wrote:
Another PR for this was opened a few hours ago: #71848.
https://github.com/llvm/llvm-project/pull/72068
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
19 matches
Mail list logo