Much like hasArg for various call expressions, this allows LibTooling users to match against a member of an initializer list.
This is currently being used as part of the abseil-duration-scale clang-tidy check.
Differential D56090
Add a matcher for members of an initializer list expression hwright on Dec 26 2018, 1:58 PM. Authored by
Details Much like hasArg for various call expressions, this allows LibTooling users to match against a member of an initializer list. This is currently being used as part of the abseil-duration-scale clang-tidy check.
Diff Detail
Event TimelineComment Actions @lebedev.ri Where do the appropriate tests live? (I couldn't find an obvious subdirectory in test/) Comment Actions This would live in clang\unittests\ASTMatchers\ASTMatchersNarrowingTest.cpp
Run clang\docs\tools\dump_ast_matchers.py and it will generate the documentation for you. You should also update Registry.cpp to list the new matcher.
Comment Actions Added tests, update docs.
|