[PATCH] D18319: Add a PragmaHandler Registry for plugins to add PragmaHandlers to

John Brawn via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 21 09:31:54 PDT 2016


john.brawn created this revision.
john.brawn added reviewers: bkramer, rsmith, rnk.
john.brawn added a subscriber: cfe-commits.
john.brawn set the repository for this revision to rL LLVM.

This allows plugins which add AST passes to also define pragmas to do things like only enable certain behaviour of the AST pass in files where a certain pragma is used.


Repository:
  rL LLVM

http://reviews.llvm.org/D18319

Files:
  docs/ClangPlugins.rst
  examples/AnnotateFunctions/AnnotateFunctions.cpp
  include/clang/Lex/Preprocessor.h
  lib/Lex/Pragma.cpp
  test/Frontend/plugin-annotate-functions.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18319.51168.patch
Type: text/x-patch
Size: 6186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160321/a6e5e25b/attachment.bin>


More information about the cfe-commits mailing list