[PATCH] D141058: [clang-tidy] fix wrong fixup for bugprone-implicit-widening-of-multiplication-result

2023-01-10 Thread Vincent LE GARREC via Phabricator via cfe-commits
bansan added a comment. About my template example: I wanted to say that the actual `bugprone-implicit-widening-of-multiplication-result` rule looks to not analyze template calculation problem. So I think it's better to use the desugared type (`size_t`). It's not acceptable (IMHO) that the hard

[PATCH] D141058: [clang-tidy] fix wrong fixup for bugprone-implicit-widening-of-multiplication-result

2023-01-09 Thread Vincent LE GARREC via Phabricator via cfe-commits
bansan added a comment. The current rule is quite simple. I tried this example: template T h(int x) { return 1024 * 1024 * 1024 * x; } int main() { h(1024); } The rule does not complain. So I think that the "resolved" type (`size_t`) should be use instead of the templated o

[PATCH] D141058: [clang-tidy] fix wrong fixup for bugprone-implicit-widening-of-multiplication-result

2023-01-09 Thread Vincent LE GARREC via Phabricator via cfe-commits
bansan added a comment. Herald added a subscriber: StephenFan. I just made a test: #include #include int64_t f(int x) { return 1024 * 1024 * 1024 * x; } void g(int x) { std::vector b; b.reserve(1024 * 1024 * 1024 * x); } int main() { f(1024); g(1024);

[PATCH] D104981: [clang-tidy] Add -line-filter to run-clang-tidy.py

2021-06-28 Thread Vincent LE GARREC via Phabricator via cfe-commits
bansan added a comment. @kbobyrev Thanks, it's probably that. I thought I could send a patch/commit with my Phabricator account. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D104981/new/ https://reviews.llvm.org/D104981 __

[PATCH] D104981: [clang-tidy] Add -line-filter to run-clang-tidy.py

2021-06-28 Thread Vincent LE GARREC via Phabricator via cfe-commits
bansan added a comment. @kbobyrev Yes please. I downloaded arc. I created a commit where last line is "Differential Revision: https://reviews.llvm.org/D104981";. I linked my github account to llvm's phabricator. But when I `arc land`, I can't logon with my github username. STRATEGY Merging

[PATCH] D104981: [clang-tidy] Add -line-filter to run-clang-tidy.py

2021-06-27 Thread Vincent LE GARREC via Phabricator via cfe-commits
bansan added a comment. Right, this is my first patch. I based this one on https://reviews.llvm.org/D28334 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D104981/new/ https://reviews.llvm.org/D104981 ___

[PATCH] D104981: [clang-tidy] Add -line-filter to run-clang-tidy.py

2021-06-26 Thread Vincent LE GARREC via Phabricator via cfe-commits
bansan created this revision. bansan added a reviewer: clang-tools-extra. bansan added a project: clang-tools-extra. Herald added a subscriber: xazax.hun. bansan requested review of this revision. Herald added a subscriber: cfe-commits. This patch allows the use of --line-filter in clang-tidy.py f