[PATCH] First revision of the dynamic ASTMatcher library

Samuel Benzaquen sbenza at google.com
Tue Apr 30 08:29:08 PDT 2013


  # Updating D714: First revision of the dynamic ASTMatcher library
  #
  # Enter a brief description of the changes included in this update.
  # The first line is used as subject, next lines as comment.
  #
  # If you intended to create a new revision, use:
  #  $ arc diff --create

  - Removed the error type from VariantValue. Made all calls that could return an error to return a bool or a pointer (that would return NULL on error).
  - Added a Diagnostics class to gather and stringify all errors. An instance in passed down on all calls that could fail.
  - Use ManagedStatic for the registry to delay initialization until it is actually used. It saves resources and startup time if not the library is linked in but not used.

Hi doug.gregor, klimek,

http://llvm-reviews.chandlerc.com/D714

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D714?vs=1747&id=1786#toc

BRANCH
  svn

ARCANIST PROJECT
  clang

Files:
  include/clang/ASTMatchers/ASTMatchersInternal.h
  include/clang/ASTMatchers/ASTMatchFinder.h
  include/clang/ASTMatchers/Dynamic
  include/clang/ASTMatchers/Dynamic/Registry.h
  include/clang/ASTMatchers/Dynamic/Parser.h
  include/clang/ASTMatchers/Dynamic/VariantValue.h
  include/clang/ASTMatchers/Dynamic/Diagnostics.h
  unittests/ASTMatchers/CMakeLists.txt
  unittests/ASTMatchers/Makefile
  unittests/ASTMatchers/Dynamic
  unittests/ASTMatchers/Dynamic/VariantValueTest.cpp
  unittests/ASTMatchers/Dynamic/RegistryTest.cpp
  unittests/ASTMatchers/Dynamic/Makefile
  unittests/ASTMatchers/Dynamic/CMakeLists.txt
  unittests/ASTMatchers/Dynamic/ParserTest.cpp
  lib/ASTMatchers/Dynamic
  lib/ASTMatchers/Dynamic/Registry.cpp
  lib/ASTMatchers/Dynamic/Makefile
  lib/ASTMatchers/Dynamic/Parser.cpp
  lib/ASTMatchers/Dynamic/CMakeLists.txt
  lib/ASTMatchers/Dynamic/VariantValue.cpp
  lib/ASTMatchers/Dynamic/Marshallers.h
  lib/ASTMatchers/Dynamic/Diagnostics.cpp
  lib/ASTMatchers/ASTMatchFinder.cpp
  lib/ASTMatchers/CMakeLists.txt
  lib/ASTMatchers/Makefile
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D714.5.patch
Type: text/x-patch
Size: 65036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130430/97712665/attachment.bin>


More information about the cfe-commits mailing list