#
da50ff8e |
| 24-Nov-2014 |
Manuel Klimek <klimek@google.com> |
Adding 4 ASTMatchers: typedefDecl, isInMainFile, isInSystemFile, isInFileMatchingName
Summary: Often one is only interested in matches within the main-file or matches that are not within a system-he
Adding 4 ASTMatchers: typedefDecl, isInMainFile, isInSystemFile, isInFileMatchingName
Summary: Often one is only interested in matches within the main-file or matches that are not within a system-header, for which this patch adds isInMainFile and isInSystemFile. They take no arguments and narrow down the matches.
The isInFileMatchingName is mainly thought for interactive clang-query-sessions, to make a matcher more specific without restarting the session with the files you are interested in for that moment. It takes a string that will be used as regular-expression to match the filename of where the matched node is expanded.
Patch by Hendrik von Prince.
llvm-svn: 222646
show more ...
|
#
c640ef56 |
| 28-Oct-2014 |
Samuel Benzaquen <sbenza@google.com> |
Add valueDecl() matcher.
Summary: Add valueDecl() matcher.
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D6005
llvm-svn: 220776
|
#
b63c2518 |
| 09-Oct-2014 |
Samuel Benzaquen <sbenza@google.com> |
Fix completion logic to allow for heterogeneous argument types in matcher overloads.
Summary: There was an assumption that there were no matchers that were overloaded on matchers and other types of
Fix completion logic to allow for heterogeneous argument types in matcher overloads.
Summary: There was an assumption that there were no matchers that were overloaded on matchers and other types of arguments. This assumption was broken recently with the addition of new matcher overloads.
Fixes http://llvm.org/PR21226
Reviewers: pcc
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D5711
llvm-svn: 219450
show more ...
|
#
7735e40a |
| 09-Oct-2014 |
Manuel Klimek <klimek@google.com> |
Implement various matchers around template argument handling.
llvm-svn: 219408
|
#
7ab8476c |
| 03-Sep-2014 |
Benjamin Kramer <benny.kra@googlemail.com> |
ASTMatchers: Add a matcher to detect whether a decl or stmt is inside a template instantiation.
This is hoisted from clang-tidy where it's used everywhere. The implementation is not particularly eff
ASTMatchers: Add a matcher to detect whether a decl or stmt is inside a template instantiation.
This is hoisted from clang-tidy where it's used everywhere. The implementation is not particularly efficient right now, but there is no easy fix for that.
Differential Revision: http://reviews.llvm.org/D5085
llvm-svn: 217029
show more ...
|
Revision tags: llvmorg-3.5.0, llvmorg-3.5.0-rc4 |
|
#
3fe8a381 |
| 25-Aug-2014 |
Manuel Klimek <klimek@google.com> |
Add hasAttr matcher for declarations.
Delete special-case CUDA attribute matchers.
Patch by Jacques Pienaar.
llvm-svn: 216379
|
Revision tags: llvmorg-3.5.0-rc3 |
|
#
e1e74932 |
| 15-Aug-2014 |
Samuel Benzaquen <sbenza@google.com> |
Add missing matchers to the dynamic registry.
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D4910
llvm-svn: 215757
|
#
8e7f9964 |
| 15-Aug-2014 |
Samuel Benzaquen <sbenza@google.com> |
Add isDeleted() matcher for FunctionDecl nodes.
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D4911
llvm-svn: 215714
|
#
646f23b8 |
| 12-Aug-2014 |
Samuel Benzaquen <sbenza@google.com> |
Support named values in the autocomplete feature.
Summary: This includes: - Passing a Sema to completeExpression to allow for named values in the expression. - Passing a map of names to values
Support named values in the autocomplete feature.
Summary: This includes: - Passing a Sema to completeExpression to allow for named values in the expression. - Passing a map of names to values to the parser. - Update the Sema interface to include completion for matchers. - Change the parser to use the Sema for completion, instead of going directly to Registry.
Reviewers: pcc
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D3509
llvm-svn: 215472
show more ...
|
Revision tags: llvmorg-3.5.0-rc2, llvmorg-3.5.0-rc1 |
|
#
00bbdcf9 |
| 28-Jun-2014 |
Craig Topper <craig.topper@gmail.com> |
Remove llvm:: from uses of ArrayRef.
llvm-svn: 211987
|
#
f56a2992 |
| 05-Jun-2014 |
Samuel Benzaquen <sbenza@google.com> |
Add hasLocalStorage/hasGlobalStorage matchers.
Summary: Add hasLocalStorage/hasGlobalStorage matchers for VarDecl nodes. Update the doc. Also add them to the dynamic registry.
Reviewers: klimek
Su
Add hasLocalStorage/hasGlobalStorage matchers.
Summary: Add hasLocalStorage/hasGlobalStorage matchers for VarDecl nodes. Update the doc. Also add them to the dynamic registry.
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D4034
llvm-svn: 210278
show more ...
|
Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1, llvmorg-3.4.1, llvmorg-3.4.1-rc2 |
|
#
f434c4fa |
| 14-Apr-2014 |
Samuel Benzaquen <sbenza@google.com> |
Add support for named values in the parser.
Summary: Add support for named values in the parser.
Reviewers: pcc
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D3
Add support for named values in the parser.
Summary: Add support for named values in the parser.
Reviewers: pcc
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D3276
llvm-svn: 206176
show more ...
|
Revision tags: llvmorg-3.4.1-rc1 |
|
#
f1066292 |
| 02-Apr-2014 |
Samuel Benzaquen <sbenza@google.com> |
Add matcher for ExprWithCleanups.
Summary: Add matcher for ExprWithCleanups.
Reviewers: klimek
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D3248
llvm-svn: 20
Add matcher for ExprWithCleanups.
Summary: Add matcher for ExprWithCleanups.
Reviewers: klimek
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D3248
llvm-svn: 205420
show more ...
|
#
a083935d |
| 10-Mar-2014 |
Samuel Benzaquen <sbenza@google.com> |
Add loc() to the dynamic registry.
Summary: Add loc() to the dynamic registry. Other fixes: - Fix the polymorphic variant value to accept an exact match, even if there are other possible convers
Add loc() to the dynamic registry.
Summary: Add loc() to the dynamic registry. Other fixes: - Fix the polymorphic variant value to accept an exact match, even if there are other possible conversions. - Fix specifiesTypeLoc() to not crash on an empty NestedNameSpecifierLoc.
Reviewers: klimek
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2928
llvm-svn: 203467
show more ...
|
#
564597fd |
| 20-Feb-2014 |
Peter Collingbourne <peter@pcc.me.uk> |
Add TemplateSpecializationType polymorphism for hasTemplateArgument and hasAnyTemplateArgument, and (out of necessity) an isExpr matcher.
Also updates the TemplateArgument doxygen to reflect reality
Add TemplateSpecializationType polymorphism for hasTemplateArgument and hasAnyTemplateArgument, and (out of necessity) an isExpr matcher.
Also updates the TemplateArgument doxygen to reflect reality for non-canonical template arguments.
Differential Revision: http://llvm-reviews.chandlerc.com/D2810
llvm-svn: 201804
show more ...
|
#
1fec3dfe |
| 06-Feb-2014 |
Peter Collingbourne <peter@pcc.me.uk> |
Add isListInitialization matcher.
Differential Revision: http://llvm-reviews.chandlerc.com/D2708
llvm-svn: 200949
|
#
d32e28c8 |
| 23-Jan-2014 |
Peter Collingbourne <peter@pcc.me.uk> |
Introduce Registry::getCompletions.
This returns a list of valid (and useful) completions for a context (a list of outer matchers), ordered by decreasing relevance then alphabetically. It will be us
Introduce Registry::getCompletions.
This returns a list of valid (and useful) completions for a context (a list of outer matchers), ordered by decreasing relevance then alphabetically. It will be used by the matcher parser to implement completion.
Differential Revision: http://llvm-reviews.chandlerc.com/D2210
llvm-svn: 199950
show more ...
|
#
5553d0d4 |
| 07-Jan-2014 |
Chandler Carruth <chandlerc@gmail.com> |
Sort all the #include lines with LLVM's utils/sort_includes.py which encodes the canonical rules for LLVM's style. I noticed this had drifted quite a bit when cleaning up LLVM, so wanted to clean up
Sort all the #include lines with LLVM's utils/sort_includes.py which encodes the canonical rules for LLVM's style. I noticed this had drifted quite a bit when cleaning up LLVM, so wanted to clean up Clang as well.
llvm-svn: 198686
show more ...
|
Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2 |
|
#
0d455abe |
| 25-Nov-2013 |
Samuel Benzaquen <sbenza@google.com> |
Another pass at adding missing matchers into the registry.
Summary: Another pass at adding missing matchers into the registry.
Reviewers: klimek
CC: cfe-commits, revane, klimek
Differential Revis
Another pass at adding missing matchers into the registry.
Summary: Another pass at adding missing matchers into the registry.
Reviewers: klimek
CC: cfe-commits, revane, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2253
llvm-svn: 195647
show more ...
|
#
f43e6948 |
| 23-Nov-2013 |
Peter Collingbourne <peter@pcc.me.uk> |
Rename *MatcherCreateCallback to *MatcherDescriptor, and its member run() to create().
The new names will be more appropriate when the objects are taught to return type information for the code comp
Rename *MatcherCreateCallback to *MatcherDescriptor, and its member run() to create().
The new names will be more appropriate when the objects are taught to return type information for the code completer.
Differential Revision: http://llvm-reviews.chandlerc.com/D2208
llvm-svn: 195539
show more ...
|
#
00cba4f6 |
| 23-Nov-2013 |
Peter Collingbourne <peter@pcc.me.uk> |
Split registry matcher resolution into a lookup phase and a construction phase.
The looked-up matchers will be used during code completion.
Differential Revision: http://llvm-reviews.chandlerc.com/
Split registry matcher resolution into a lookup phase and a construction phase.
The looked-up matchers will be used during code completion.
Differential Revision: http://llvm-reviews.chandlerc.com/D2207
llvm-svn: 195534
show more ...
|
#
4d05874b |
| 22-Nov-2013 |
Samuel Benzaquen <sbenza@google.com> |
Add support for the 'unless' matcher in the dynamic layer.
Summary: Add support for the 'unless' matcher in the dynamic layer.
Reviewers: klimek
CC: cfe-commits, revane, klimek
Differential Revis
Add support for the 'unless' matcher in the dynamic layer.
Summary: Add support for the 'unless' matcher in the dynamic layer.
Reviewers: klimek
CC: cfe-commits, revane, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2247
llvm-svn: 195466
show more ...
|
Revision tags: llvmorg-3.4.0-rc1 |
|
#
464c1cbc |
| 18-Nov-2013 |
Samuel Benzaquen <sbenza@google.com> |
Add partial support for the hasDeclaration() matcher in the dynamic layer.
Summary: Add partial support for the hasDeclaration() matcher in the dynamic layer. This matcher has some special logic to
Add partial support for the hasDeclaration() matcher in the dynamic layer.
Summary: Add partial support for the hasDeclaration() matcher in the dynamic layer. This matcher has some special logic to allow any type that has a getDecl() method. We do not support this right now.
Reviewers: klimek
CC: cfe-commits, revane
Differential Revision: http://llvm-reviews.chandlerc.com/D1889
llvm-svn: 195013
show more ...
|
#
f34ac3ed |
| 29-Oct-2013 |
Samuel Benzaquen <sbenza@google.com> |
Resubmit "Refactor DynTypedMatcher into a value type class, just like Matcher<T>."
Summary: This resubmits r193100, plus a fix for a breakage with MSVC.
Reviewers: klimek, rnk
CC: cfe-commits, rev
Resubmit "Refactor DynTypedMatcher into a value type class, just like Matcher<T>."
Summary: This resubmits r193100, plus a fix for a breakage with MSVC.
Reviewers: klimek, rnk
CC: cfe-commits, revane
Differential Revision: http://llvm-reviews.chandlerc.com/D2005
llvm-svn: 193613
show more ...
|
#
9171f025 |
| 21-Oct-2013 |
Reid Kleckner <reid@kleckner.net> |
Revert "Refactor DynTypedMatcher into a value type class, just like Matcher<T>."
This reverts commit r193100.
It was failing to compile with MSVC 2012 while instantiating llvm::Optional<DynTypedMat
Revert "Refactor DynTypedMatcher into a value type class, just like Matcher<T>."
This reverts commit r193100.
It was failing to compile with MSVC 2012 while instantiating llvm::Optional<DynTypedMatcher>.
llvm-svn: 193123
show more ...
|