[all-commits] [llvm/llvm-project] 2823e9: Add a new AST matcher 'optionally'.

Rihan Yang via All-commits all-commits at lists.llvm.org
Wed Jan 8 11:10:19 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2823e91d55891e33a7a8b9a4016db4ec9e2765ae
      https://github.com/llvm/llvm-project/commit/2823e91d55891e33a7a8b9a4016db4ec9e2765ae
  Author: Rihan Yang <adam at air20.com>
  Date:   2020-01-08 (Wed, 08 Jan 2020)

  Changed paths:
    M clang/docs/LibASTMatchersReference.html
    M clang/include/clang/ASTMatchers/ASTMatchers.h
    M clang/include/clang/ASTMatchers/ASTMatchersInternal.h
    M clang/lib/ASTMatchers/ASTMatchersInternal.cpp
    M clang/lib/ASTMatchers/Dynamic/Registry.cpp
    M clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp

  Log Message:
  -----------
  Add a new AST matcher 'optionally'.

This matcher matches any node and at the same time executes all its
inner matchers to produce any possbile result bindings.

This is useful when a user wants certain supplementary information
that's not always present along with the main match result.




More information about the All-commits mailing list