This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG21832121e112: [clang-tidy] Fix crash on
reference-to-array parameters in bugprone-easily… (authored
by whisperity).
Repository:
rG LLVM Github
aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
LGTM
Comment at:
clang-tools-extra/test/clang-tidy/checkers/bugprone-easily-swappable-parameters-implicits.cpp:60
+
+ // NO-WARN: Implicit instantiations are
whisperity updated this revision to Diff 362340.
whisperity added a comment.
Add a test case where the referenced arrays are deduced from template
parameters.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106946/new/
whisperity added inline comments.
Comment at:
clang-tools-extra/test/clang-tidy/checkers/bugprone-easily-swappable-parameters-implicits.cpp:46
+
+void crefToArrayTypedefBoth1(const Point2D , const Point3D
) {}
+// NO-WARN: Distinct types.
aaron.ballman wrote:
aaron.ballman added inline comments.
Comment at:
clang-tools-extra/test/clang-tidy/checkers/bugprone-easily-swappable-parameters-implicits.cpp:46
+
+void crefToArrayTypedefBoth1(const Point2D , const Point3D
) {}
+// NO-WARN: Distinct types.
Can you also add a
whisperity updated this revision to Diff 362334.
whisperity added a comment.
**NFC** //Typo-fix//: Remove empty line from end of diff.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106946/new/
https://reviews.llvm.org/D106946
Files:
whisperity updated this revision to Diff 362333.
whisperity added a comment.
Add some more test cases!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106946/new/
https://reviews.llvm.org/D106946
Files:
whisperity created this revision.
whisperity added a reviewer: aaron.ballman.
whisperity added a project: clang-tools-extra.
Herald added subscribers: martong, gamesh411, Szelethus, dkrupp, rnkovacs,
xazax.hun.
whisperity requested review of this revision.
Herald added a subscriber: cfe-commits.