Use virtual functions in ParsedAttrInfo instead of function pointers
authorJohn Brawn <john.brawn@arm.com>
Wed, 26 Feb 2020 16:31:24 +0000 (16:31 +0000)
committerJohn Brawn <john.brawn@arm.com>
Wed, 26 Feb 2020 17:24:30 +0000 (17:24 +0000)
commit590dc8d02cd781b110a87b82476c3557cb5957c3
treeba4822954389e95d9564292c7b98170f5d063d9e
parent805f5836d1bbd03dcc9de78881bd81dc8cb09cc4
Use virtual functions in ParsedAttrInfo instead of function pointers

This doesn't do anything on its own, but it's the first step towards
allowing plugins to define attributes. It does simplify the
ParsedAttrInfo generation in ClangAttrEmitter a little though.

Differential Revision: https://reviews.llvm.org/D31337
clang/lib/Sema/ParsedAttr.cpp
clang/utils/TableGen/ClangAttrEmitter.cpp