Revision tags: llvmorg-21-init, llvmorg-19.1.7, llvmorg-19.1.6, llvmorg-19.1.5, llvmorg-19.1.4, llvmorg-19.1.3, llvmorg-19.1.2, llvmorg-19.1.1 |
|
#
07e0b8a7 |
| 17-Sep-2024 |
Congcong Cai <congcongcai0907@163.com> |
[ast-matcher] Fixed a crash when traverse lambda expr with invalid captures (#108689)
Fixes: #106444
|
Revision tags: llvmorg-19.1.0, llvmorg-19.1.0-rc4, llvmorg-19.1.0-rc3, llvmorg-19.1.0-rc2, llvmorg-19.1.0-rc1, llvmorg-20-init, llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4, llvmorg-18.1.3, llvmorg-18.1.2, llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init, llvmorg-17.0.6, llvmorg-17.0.5, llvmorg-17.0.4, llvmorg-17.0.3, llvmorg-17.0.2 |
|
#
f5cb9cb5 |
| 25-Sep-2023 |
Ilya Biryukov <ibiryukov@google.com> |
[ASTMatchers] Fix classIsDerivedFrom for recusrive cases (#67307)
By ensuring the base is only visited once. This avoids infinite
recursion and expontential running times in some corner cases.
S
[ASTMatchers] Fix classIsDerivedFrom for recusrive cases (#67307)
By ensuring the base is only visited once. This avoids infinite
recursion and expontential running times in some corner cases.
See the added tests for examples.
Apart from the cases that caused infinite recursion and used to crash,
this change is an NFC and results of the matchers are the same.
show more ...
|
Revision tags: llvmorg-17.0.1, llvmorg-17.0.0, llvmorg-17.0.0-rc4 |
|
#
b32dfd98 |
| 27-Aug-2023 |
Kazu Hirata <kazu@google.com> |
[ASTMatchers] Modernize TimeBucketRegion (NFC)
|
Revision tags: llvmorg-17.0.0-rc3, llvmorg-17.0.0-rc2, llvmorg-17.0.0-rc1, llvmorg-18-init, llvmorg-16.0.6, llvmorg-16.0.5, llvmorg-16.0.4, llvmorg-16.0.3, llvmorg-16.0.2, llvmorg-16.0.1, llvmorg-16.0.0, llvmorg-16.0.0-rc4, llvmorg-16.0.0-rc3, llvmorg-16.0.0-rc2, llvmorg-16.0.0-rc1, llvmorg-17-init, llvmorg-15.0.7 |
|
#
b0de3630 |
| 14-Dec-2022 |
Fangrui Song <i@maskray.me> |
[clang] Remove uses of ::testing::Matcher<const Optional<T> &>
Change a few functions (getCheckTraversalKind, some clang/Tooling/ API, etc) from llvm::Optional to std::optional.
|
#
5891420e |
| 03-Dec-2022 |
Kazu Hirata <kazu@google.com> |
[clang] Use std::nullopt instead of None (NFC)
This patch mechanically replaces None with std::nullopt where the compiler would warn if None were deprecated. The intent is to reduce the amount of m
[clang] Use std::nullopt instead of None (NFC)
This patch mechanically replaces None with std::nullopt where the compiler would warn if None were deprecated. The intent is to reduce the amount of manual work required in migrating from Optional to std::optional.
This is part of an effort to migrate from llvm::Optional to std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
show more ...
|
Revision tags: llvmorg-15.0.6, llvmorg-15.0.5, llvmorg-15.0.4, llvmorg-15.0.3 |
|
#
765af675 |
| 16-Oct-2022 |
Kazu Hirata <kazu@google.com> |
[clang] Remove redundaunt typename (NFC)
|
Revision tags: working, llvmorg-15.0.2, llvmorg-15.0.1, llvmorg-15.0.0, llvmorg-15.0.0-rc3, llvmorg-15.0.0-rc2, llvmorg-15.0.0-rc1, llvmorg-16-init, llvmorg-14.0.6 |
|
#
0916d96d |
| 21-Jun-2022 |
Kazu Hirata <kazu@google.com> |
Don't use Optional::hasValue (NFC)
|
Revision tags: llvmorg-14.0.5, llvmorg-14.0.4, llvmorg-14.0.3, llvmorg-14.0.2, llvmorg-14.0.1 |
|
#
b4ad3c38 |
| 05-Apr-2022 |
Nathan James <n.james93@hotmail.co.uk> |
Reland "[ASTMatchers] Output currently matching node on crash"
Extend D120185 to also log the node being matched on in case of a crash. This can help if a matcher is causing a crash or there are not
Reland "[ASTMatchers] Output currently matching node on crash"
Extend D120185 to also log the node being matched on in case of a crash. This can help if a matcher is causing a crash or there are not enough interesting nodes bound.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D122529
This reverts commit 61d67c8eecd2547bc690f9a6bba61b9ba814c71b.
This relands commit 6e33e45b943061f79ab6de1b60d04d4c6f32f8f9.
Fixing the build issue on 32bit machines due to not enough free bits in the PointerUnion.
show more ...
|
#
61d67c8e |
| 30-Mar-2022 |
Nathan James <n.james93@hotmail.co.uk> |
Revert "[ASTMatchers] Output currently matching node on crash"
This reverts commit 6e33e45b943061f79ab6de1b60d04d4c6f32f8f9.
Fails to build on 32bit machines due to PointerUnion limitations
|
#
6e33e45b |
| 30-Mar-2022 |
Nathan James <n.james93@hotmail.co.uk> |
[ASTMatchers] Output currently matching node on crash
Extend D120185 to also log the node being matched on in case of a crash. This can help if a matcher is causing a crash or there are not enough i
[ASTMatchers] Output currently matching node on crash
Extend D120185 to also log the node being matched on in case of a crash. This can help if a matcher is causing a crash or there are not enough interesting nodes bound.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D122529
show more ...
|
#
b97f2608 |
| 25-Mar-2022 |
Nathan James <n.james93@hotmail.co.uk> |
Reland "[ASTMatchers] Output currently processing match and nodes on crash"
This reverts commit cff34ccb605aa78030cd51cfe44362ed1c1fb80b.
This relands commit d89f9e963e4979466193dc6a15fe091bf7ca5c47
|
#
cff34ccb |
| 21-Mar-2022 |
Nathan James <n.james93@hotmail.co.uk> |
Revert "[ASTMatchers] Output currently processing match and nodes on crash"
This reverts commit d89f9e963e4979466193dc6a15fe091bf7ca5c47.
|
#
d89f9e96 |
| 21-Mar-2022 |
Nathan James <n.james93@hotmail.co.uk> |
[ASTMatchers] Output currently processing match and nodes on crash
Create a PrettyStackTraceEvent that will dump the current `MatchCallback` id as well as the `BoundNodes` if the 'run' method of a `
[ASTMatchers] Output currently processing match and nodes on crash
Create a PrettyStackTraceEvent that will dump the current `MatchCallback` id as well as the `BoundNodes` if the 'run' method of a `MatchCallback` results in a crash. The purpose of this is sometimes clang-tidy checks can crash in the `check` method. And in a large codebase with alot of checks enabled and in a release build, it can be near impossible to figure out which check as well as the source code that caused the crash. Without that information a reproducer is very hard to create. This is a more generalised version of D118520 which has a nicer integration and should be useful to clients other than clang-tidy.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D120185
show more ...
|
Revision tags: llvmorg-14.0.0, llvmorg-14.0.0-rc4, llvmorg-14.0.0-rc3, llvmorg-14.0.0-rc2, llvmorg-14.0.0-rc1, llvmorg-15-init, llvmorg-13.0.1, llvmorg-13.0.1-rc3, llvmorg-13.0.1-rc2, llvmorg-13.0.1-rc1, llvmorg-13.0.0, llvmorg-13.0.0-rc4, llvmorg-13.0.0-rc3, llvmorg-13.0.0-rc2 |
|
#
c8f14827 |
| 06-Aug-2021 |
Sam McCall <sam.mccall@gmail.com> |
Reapply "Support Attr in DynTypedNode and ASTMatchers."
This reverts commit 3241680f111ddf3eac37db88cacac199083543f0. Fixed mangled post-test formatting :-(
|
#
3241680f |
| 06-Aug-2021 |
Sam McCall <sam.mccall@gmail.com> |
Revert "Support Attr in DynTypedNode and ASTMatchers."
This reverts commit a4bdcdadc6ffab250b218bbdae9a0ced05bebfc9.
Fails bots: https://lab.llvm.org/buildbot/#/builders/109/builds/20231/steps/6/lo
Revert "Support Attr in DynTypedNode and ASTMatchers."
This reverts commit a4bdcdadc6ffab250b218bbdae9a0ced05bebfc9.
Fails bots: https://lab.llvm.org/buildbot/#/builders/109/builds/20231/steps/6/logs/stdio
show more ...
|
Revision tags: llvmorg-13.0.0-rc1, llvmorg-14-init, llvmorg-12.0.1, llvmorg-12.0.1-rc4, llvmorg-12.0.1-rc3, llvmorg-12.0.1-rc2, llvmorg-12.0.1-rc1, llvmorg-12.0.0, llvmorg-12.0.0-rc5, llvmorg-12.0.0-rc4, llvmorg-12.0.0-rc3, llvmorg-12.0.0-rc2, llvmorg-11.1.0, llvmorg-11.1.0-rc3, llvmorg-12.0.0-rc1, llvmorg-13-init, llvmorg-11.1.0-rc2, llvmorg-11.1.0-rc1, llvmorg-11.0.1, llvmorg-11.0.1-rc2, llvmorg-11.0.1-rc1 |
|
#
a4bdcdad |
| 19-Oct-2020 |
Sam McCall <sam.mccall@gmail.com> |
Support Attr in DynTypedNode and ASTMatchers.
Differential Revision: https://reviews.llvm.org/D89743
|
#
4cbea094 |
| 05-Feb-2021 |
Stephen Kelly <steveire@gmail.com> |
[ASTMatchers] Fix segfault when Action is nullptr
It can be nullptr in unit tests.
|
Revision tags: llvmorg-11.0.0, llvmorg-11.0.0-rc6, llvmorg-11.0.0-rc5, llvmorg-11.0.0-rc4, llvmorg-11.0.0-rc3, llvmorg-11.0.0-rc2, llvmorg-11.0.0-rc1, llvmorg-12-init, llvmorg-10.0.1, llvmorg-10.0.1-rc4, llvmorg-10.0.1-rc3, llvmorg-10.0.1-rc2, llvmorg-10.0.1-rc1, llvmorg-10.0.0, llvmorg-10.0.0-rc6, llvmorg-10.0.0-rc5, llvmorg-10.0.0-rc4, llvmorg-10.0.0-rc3, llvmorg-10.0.0-rc2, llvmorg-10.0.0-rc1 |
|
#
538677ab |
| 20-Jan-2020 |
Stephen Kelly <steveire@gmail.com> |
Add an API to simplify setting TraversalKind in clang-tidy matchers
Reviewers: sammccall
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D80623
|
#
9e5fc578 |
| 30-Jan-2021 |
Stephen Kelly <steveire@gmail.com> |
[ASTMatchers] Ignore parts of BindingDecls which are not spelled in source
Differential Revision: https://reviews.llvm.org/D95740
|
#
d6a06365 |
| 30-Jan-2021 |
Stephen Kelly <steveire@gmail.com> |
[ASTMatchers] Fix matching after generic top-level matcher
With a matcher like
expr(anyOf(integerLiteral(equals(42)), unless(expr())))
and code such as
struct B { B(int); };
B func1(
[ASTMatchers] Fix matching after generic top-level matcher
With a matcher like
expr(anyOf(integerLiteral(equals(42)), unless(expr())))
and code such as
struct B { B(int); };
B func1() { return 42; }
the top-level expr() would match each of the nodes which are not spelled in the source and then ignore-traverse to match the integerLiteral node. This would result in multiple results reported for the integerLiteral.
Fix that by only running matching logic on nodes which are not skipped with the top-level matcher.
Differential Revision: https://reviews.llvm.org/D95735
show more ...
|
#
bb57a342 |
| 28-Jan-2021 |
Stephen Kelly <steveire@gmail.com> |
Fix traversal with hasDescendant into lambdas
Differential Revision: https://reviews.llvm.org/D95607
|
#
79125085 |
| 27-Jan-2021 |
Stephen Kelly <steveire@gmail.com> |
[ASTMatchers] Fix traversal below range-for elements
Differential Revision: https://reviews.llvm.org/D95562
|
#
6f0df3cd |
| 27-Jan-2021 |
Stephen Kelly <steveire@gmail.com> |
[ASTMatchers] Avoid pathological traversal over nested lambdas
Differential Revision: https://reviews.llvm.org/D95573
|
#
9a7fb084 |
| 17-Jan-2021 |
Stephen Kelly <steveire@gmail.com> |
NFC: Minor cleanup of function calls
|
#
b765eaf9 |
| 05-Jan-2021 |
Stephen Kelly <steveire@gmail.com> |
[ASTMatchers] Add support for CXXRewrittenBinaryOperator
Differential Revision: https://reviews.llvm.org/D94130
|