Add a PragmaHandler Registry for plugins to add PragmaHandlers to
authorJohn Brawn <john.brawn@arm.com>
Mon, 4 Apr 2016 14:22:58 +0000 (14:22 +0000)
committerJohn Brawn <john.brawn@arm.com>
Mon, 4 Apr 2016 14:22:58 +0000 (14:22 +0000)
commit8e62db324775d97614857d66530bd8a4581c1d3a
tree1c4aa64bd27f35a7ea8a448ee877c0ccb41aea3d
parent67f641dd33a711037a92286090960c8a8314cf98
Add a PragmaHandler Registry for plugins to add PragmaHandlers to

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.

Differential Revision: http://reviews.llvm.org/D18319

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