#
1844ab77 |
| 02-Dec-2020 |
Tom Roeder <tmroeder@google.com> |
[ASTImporter] Add support for importing GenericSelectionExpr AST nodes.
This allows ASTs to be merged when they contain GenericSelectionExpr nodes (this is _Generic from C11). This is needed, for ex
[ASTImporter] Add support for importing GenericSelectionExpr AST nodes.
This allows ASTs to be merged when they contain GenericSelectionExpr nodes (this is _Generic from C11). This is needed, for example, for CTU analysis of C code that makes use of _Generic, like the Linux kernel.
The node is already supported in the AST, but it didn't have a matcher in ASTMatchers. So, this change adds the matcher and adds support to ASTImporter. Additionally, this change adds support for structural equivalence of _Generic in the AST.
Reviewed By: martong, aaron.ballman
Differential Revision: https://reviews.llvm.org/D92600
show more ...
|
#
027899da |
| 10-Dec-2020 |
Alexander Kornienko <alexfh@google.com> |
Remove references to the ast_type_traits namespace
Follow up to cd62511496938e33c061c90796dd23a5288ff843 / https://reviews.llvm.org/D74499
Reviewed By: aaron.ballman
Differential Revision: https:/
Remove references to the ast_type_traits namespace
Follow up to cd62511496938e33c061c90796dd23a5288ff843 / https://reviews.llvm.org/D74499
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D92994
show more ...
|
#
0d6e1251 |
| 31-Oct-2020 |
Stephen Kelly <steveire@gmail.com> |
Add new matchers for dependent names in templates
Differential Revision: https://reviews.llvm.org/D90767
|
#
32d565b4 |
| 10-Oct-2020 |
Zinovy Nis <zinovy.nis@gmail.com> |
[clang-tidy] Fix crash in readability-function-cognitive-complexity on weak refs
Fix for https://bugs.llvm.org/show_bug.cgi?id=47779
Differential Revision: https://reviews.llvm.org/D89194
|
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 |
|
#
69f98311 |
| 13-Sep-2020 |
Jonas Toth <development@jonas-toth.eu> |
[ASTMatchers] extract public matchers from const-analysis into own patch
The analysis for const-ness of local variables required a view generally useful matchers that are extracted into its own patc
[ASTMatchers] extract public matchers from const-analysis into own patch
The analysis for const-ness of local variables required a view generally useful matchers that are extracted into its own patch.
They are decompositionDecl and forEachArgumentWithParamType, that works for calls through function pointers as well.
This is a reupload of https://reviews.llvm.org/D72505, that already landed, but had to be reverted due to a GCC crash on powerpc (https://reviews.llvm.org/rG4c48ea68e491cb42f1b5d43ffba89f6a7f0dadc4)
Because this took a long time to adress, i decided to redo this patch and have a clean workflow. I try to coordinate with someone that has a PPC to apply this patch and test for the crash. If everything is fine, I intend to just commit. If the crash is still happening, i hope to at least find the cause.
Differential Revision: https://reviews.llvm.org/D87588
show more ...
|
Revision tags: llvmorg-11.0.0-rc2 |
|
#
f4dccf11 |
| 11-Aug-2020 |
Bruno Ricci <riccibrun@gmail.com> |
[clang] Add a matcher for template template parameters.
There are already matchers for type template parameters and non-type template parameters, but somehow no matcher exists for template template
[clang] Add a matcher for template template parameters.
There are already matchers for type template parameters and non-type template parameters, but somehow no matcher exists for template template parameters and I need it to write unit tests.
Differential Revision: https://reviews.llvm.org/D85536
Reviewed By: aaron.ballman
show more ...
|
Revision tags: llvmorg-11.0.0-rc1, llvmorg-12-init |
|
#
78443666 |
| 13-Jul-2020 |
Atmn Patel <a335pate@uwaterloo.ca> |
[OpenMP] Add firstprivate as a default data-sharing attribute to clang
This implements the default(firstprivate) clause as defined in OpenMP Technical Report 8 (2.22.4).
Reviewed By: jdoerfert, ABa
[OpenMP] Add firstprivate as a default data-sharing attribute to clang
This implements the default(firstprivate) clause as defined in OpenMP Technical Report 8 (2.22.4).
Reviewed By: jdoerfert, ABataev
Differential Revision: https://reviews.llvm.org/D75591
show more ...
|
Revision tags: llvmorg-10.0.1, llvmorg-10.0.1-rc4 |
|
#
b0d3ea17 |
| 07-Jul-2020 |
Nathan James <n.james93@hotmail.co.uk> |
[ASTMatchers] Added hasDirectBase Matcher
Adds a matcher called `hasDirectBase` for matching the `CXXBaseSpecifier` of a class that directly derives from another class.
Reviewed By: aaron.ballman
[ASTMatchers] Added hasDirectBase Matcher
Adds a matcher called `hasDirectBase` for matching the `CXXBaseSpecifier` of a class that directly derives from another class.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D81552
show more ...
|
Revision tags: llvmorg-10.0.1-rc3 |
|
#
f51a319c |
| 02-Jul-2020 |
Nathan James <n.james93@hotmail.co.uk> |
[ASTMatchers] Enhanced support for matchers taking Regex arguments
Added new Macros `AST(_POLYMORPHIC)_MATCHER_REGEX(_OVERLOAD)` that define a matchers that take a regular expression string and opti
[ASTMatchers] Enhanced support for matchers taking Regex arguments
Added new Macros `AST(_POLYMORPHIC)_MATCHER_REGEX(_OVERLOAD)` that define a matchers that take a regular expression string and optionally regular expression flags. This lets users match against nodes while ignoring the case without having to manually use `[Aa]` or `[A-Fa-f]` in their regex. The other point this addresses is in the current state, matchers that use regular expressions have to compile them for each node they try to match on, Now the regular expression is compiled once when you define the matcher and used for every node that it tries to match against. If there is an error while compiling the regular expression an error will be logged to stderr showing the bad regex string and the reason it couldn't be compiled. The old behaviour of this was down to the Matcher implementation and some would assert, whereas others just would never match. Support for this has been added to the documentation script as well. Support for this has been added to dynamic matchers ensuring functionality is the same between the 2 use cases.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D82706
show more ...
|
Revision tags: llvmorg-10.0.1-rc2 |
|
#
c2b22c57 |
| 22-Jun-2020 |
Nathan James <n.james93@hotmail.co.uk> |
Fixed ASTMatchers registry and regen ast docs
|
Revision tags: llvmorg-10.0.1-rc1 |
|
#
1a5c97f3 |
| 29-Apr-2020 |
Jan Korous <jkorous@apple.com> |
[ASTMatchers] Matchers related to C++ inheritance
Differential Revision: https://reviews.llvm.org/D79063
|
#
51401a67 |
| 28-May-2020 |
Vy Nguyen <vyng@google.com> |
add isAtPosition narrowing matcher for parmVarDecl
Differential Revision: https://reviews.llvm.org/D80603
|
#
74bcb00e |
| 16-May-2020 |
Nathan James <n.james93@hotmail.co.uk> |
[ASTMatchers] Added BinaryOperator hasOperands matcher
Summary: Adds a matcher called `hasOperands` for `BinaryOperator`'s when you need to match both sides but the order isn't important, usually on
[ASTMatchers] Added BinaryOperator hasOperands matcher
Summary: Adds a matcher called `hasOperands` for `BinaryOperator`'s when you need to match both sides but the order isn't important, usually on commutative operators.
Reviewers: klimek, aaron.ballman, gribozavr2, alexfh
Reviewed By: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D80054
show more ...
|
#
bf968e28 |
| 09-Apr-2020 |
Nathan James <n.james93@hotmail.co.uk> |
[ASTMatchers] Add support for dynamic matching of ofKind narrowing matcher
Summary: Adds support for using the ofKind in clang-query and other dynamic matcher use cases
Reviewers: klimek, aaron.bal
[ASTMatchers] Add support for dynamic matching of ofKind narrowing matcher
Summary: Adds support for using the ofKind in clang-query and other dynamic matcher use cases
Reviewers: klimek, aaron.ballman, jdoerfert
Reviewed By: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D77791
show more ...
|
Revision tags: llvmorg-10.0.0, llvmorg-10.0.0-rc6, llvmorg-10.0.0-rc5, llvmorg-10.0.0-rc4 |
|
#
d5edcb90 |
| 12-Mar-2020 |
Roman Lebedev <lebedev.ri@gmail.com> |
[clang] Prune 'IsOMPStructuredBlock' Stmt bit
As discussed in https://reviews.llvm.org/D59214#1916596 and in some other reviews dealing with FPenv, bits in Stmt are scarce, and i got so burnout with
[clang] Prune 'IsOMPStructuredBlock' Stmt bit
As discussed in https://reviews.llvm.org/D59214#1916596 and in some other reviews dealing with FPenv, bits in Stmt are scarce, and i got so burnout with D59214 and https://bugs.llvm.org/show_bug.cgi?id=40563 specifically that i never actually followed up with the usages for this bit.
So let's unhoard it, at least for now?
show more ...
|
#
77eec386 |
| 09-Mar-2020 |
Nathan James <n.james93@hotmail.co.uk> |
[ASTMatchers] Add hasAnyOverloadedOperatorName matcher
Reviewers: aaron.ballman
Reviewed By: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D
[ASTMatchers] Add hasAnyOverloadedOperatorName matcher
Reviewers: aaron.ballman
Reviewed By: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D75841
show more ...
|
#
fc3c80c3 |
| 07-Mar-2020 |
Nathan James <n.james93@hotmail.co.uk> |
[ASTMatchers] adds isComparisonOperator to BinaryOperator and CXXOperatorCallExpr
Reviewers: aaron.ballman, gribozavr2
Reviewed By: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differenti
[ASTMatchers] adds isComparisonOperator to BinaryOperator and CXXOperatorCallExpr
Reviewers: aaron.ballman, gribozavr2
Reviewed By: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D75800
show more ...
|
Revision tags: llvmorg-10.0.0-rc3 |
|
#
6a0c066c |
| 25-Feb-2020 |
Nathan James <n.james93@hotmail.co.uk> |
[ASTMatchers] Adds a matcher called `hasAnyOperatorName`
Summary: Acts on `BinaryOperator` and `UnaryOperator` and functions the same as `anyOf(hasOperatorName(...), hasOperatorName(...), ...)`
Doc
[ASTMatchers] Adds a matcher called `hasAnyOperatorName`
Summary: Acts on `BinaryOperator` and `UnaryOperator` and functions the same as `anyOf(hasOperatorName(...), hasOperatorName(...), ...)`
Documentation generation isn't perfect but I feel that the python doc script needs updating for that
Reviewers: aaron.ballman, gribozavr2
Reviewed By: aaron.ballman, gribozavr2
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D75040
show more ...
|
Revision tags: llvmorg-10.0.0-rc2 |
|
#
bdbdf748 |
| 03-Feb-2020 |
Haojian Wu <hokein.wu@gmail.com> |
[clang][AST] Add an AST matcher for deducedTemplateSpeializationType.
Summary: misc-unused-using clang-tidy check needs this matcher to fix a false positive of C++17 deduced class template types.
R
[clang][AST] Add an AST matcher for deducedTemplateSpeializationType.
Summary: misc-unused-using clang-tidy check needs this matcher to fix a false positive of C++17 deduced class template types.
Reviewers: gribozavr2
Reviewed By: gribozavr2
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D73869
show more ...
|
Revision tags: llvmorg-10.0.0-rc1 |
|
#
a156a0e2 |
| 30-Jan-2020 |
Nathan James <n.james93@hotmail.co.uk> |
[ASTMatchers] Add hasPlacementArg and hasAnyPlacementArg traversal matcher for CXXNewExpr
Summary: Adds new traversal matchers called `hasPlacementArg` and `hasAnyPlacementArg` that matches on argum
[ASTMatchers] Add hasPlacementArg and hasAnyPlacementArg traversal matcher for CXXNewExpr
Summary: Adds new traversal matchers called `hasPlacementArg` and `hasAnyPlacementArg` that matches on arguments to `placement new` operators.
Reviewers: aaron.ballman
Reviewed By: aaron.ballman
Subscribers: merge_guards_bot, mehdi_amini, hiraditya, steven_wu, dexonsmith, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D73562
show more ...
|
#
d5dfd135 |
| 29-Jan-2020 |
Karasev Nikita <cc.tapa@gmail.com> |
Add TagDecl AST matcher
|
#
adcd0268 |
| 28-Jan-2020 |
Benjamin Kramer <benny.kra@googlemail.com> |
Make llvm::StringRef to std::string conversions explicit.
This is how it should've been and brings it more in line with std::string_view. There should be no functional change here.
This is mostly m
Make llvm::StringRef to std::string conversions explicit.
This is how it should've been and brings it more in line with std::string_view. There should be no functional change here.
This is mostly mechanical from a custom clang-tidy check, with a lot of manual fixups. It uncovers a lot of minor inefficiencies.
This doesn't actually modify StringRef yet, I'll do that in a follow-up.
show more ...
|
#
aec62103 |
| 28-Jan-2020 |
Nathan <n.james93@hotmail.co.uk> |
[ASTMatchers] Add cxxNoexceptExpr AST matcher
Summary: Adds a cxxNoexceptExpr matcher that matches the [[ https://en.cppreference.com/w/cpp/language/noexcept | noexcept operator ]].
Reviewers: aar
[ASTMatchers] Add cxxNoexceptExpr AST matcher
Summary: Adds a cxxNoexceptExpr matcher that matches the [[ https://en.cppreference.com/w/cpp/language/noexcept | noexcept operator ]].
Reviewers: aaron.ballman
Reviewed By: aaron.ballman
Subscribers: merge_guards_bot, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D73439
show more ...
|
Revision tags: llvmorg-11-init |
|
#
23a799ad |
| 11-Jan-2020 |
Jonas Toth <development@jonas-toth.eu> |
Revert "[ASTMatchers] extract public matchers from const-analysis into own patch"
This reverts commit 4c48ea68e491cb42f1b5d43ffba89f6a7f0dadc4. The powerpc buildbots had an internal compiler error a
Revert "[ASTMatchers] extract public matchers from const-analysis into own patch"
This reverts commit 4c48ea68e491cb42f1b5d43ffba89f6a7f0dadc4. The powerpc buildbots had an internal compiler error after this patch. This requires some inspection.
show more ...
|
#
4c48ea68 |
| 11-Jan-2020 |
Jonas Toth <development@jonas-toth.eu> |
[ASTMatchers] extract public matchers from const-analysis into own patch
Summary: The analysis for const-ness of local variables required a view generally useful matchers that are extracted into its
[ASTMatchers] extract public matchers from const-analysis into own patch
Summary: The analysis for const-ness of local variables required a view generally useful matchers that are extracted into its own patch.
They are `decompositionDecl` and `forEachArgumentWithParamType`, that works for calls through function pointers as well.
Reviewers: aaron.ballman
Reviewed By: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D72505
show more ...
|