Added some matchers for objective c selectors and messages to ASTMatchers.h. Minor mods to ASTMatchersTest.h to allow test files with ".m" extension in addition to ".cpp". New tests added to ASTMatchersTest.c.
Details
Diff Detail
Event Timeline
include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
2030 | Please always provide example code and an example matcher that matches. |
Now includes documentation for each of the matches. Also added the new matchers to the registry for dynamic use.
Changes to lib/Sema/SemaExprObjC.cpp and test/SemaObjC/objc-literal-nsnumber.m are unintentional, and shouldn't be part of this patch! I'll rebase (again) and fix that.
include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
2075 | I was unable to tweak this matcher from source code, so no example at the moment. Does this represent an error condition? Should I leave it as a matcher, or just remove it? Guidance eagerly accepted. |
Nits are now addressed. Can someone please commit this for me? I lack commit access.
Dean
Ping!
Patch was approved by klimek; all nits are now addressed. Could some kind soul please commit this for me? I cannot do so myself, as I lack commit access.
Dean
Ping! I'd really appreciate it if someone with commit privs could land these changes for me!
Dean
Please always provide example code and an example matcher that matches.