diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-30 11:16:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-30 11:16:03 +0200 |
commit | 09031ef2fe89a8a6321ca89cca49f1587fe577e6 (patch) | |
tree | 5b1e79dde52ee16e8142fdc25f2fb468d1c94ab4 /compilerplugins/clang/check.hxx | |
parent | c724093edb92c53db8cbb8ab5b910610a9fb53d0 (diff) |
Avoid getQualifiedNameAsString
Change-Id: I448bfd63f1a2fb9cac3366146b10ff6a465e6db7
Diffstat (limited to 'compilerplugins/clang/check.hxx')
-rw-r--r-- | compilerplugins/clang/check.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compilerplugins/clang/check.hxx b/compilerplugins/clang/check.hxx index 846cb1472e99..d044db10b5e6 100644 --- a/compilerplugins/clang/check.hxx +++ b/compilerplugins/clang/check.hxx @@ -88,6 +88,9 @@ public: template<std::size_t N> inline ContextCheck Struct(char const (& id)[N]) const; + template<std::size_t N> inline ContextCheck Union(char const (& id)[N]) + const; + template<std::size_t N> inline ContextCheck Function(char const (& id)[N]) const; @@ -215,6 +218,12 @@ template<std::size_t N> ContextCheck DeclCheck::Struct(char const (& id)[N]) return detail::checkRecordDecl(decl_, clang::TTK_Struct, id); } +template<std::size_t N> ContextCheck DeclCheck::Union(char const (& id)[N]) + const +{ + return detail::checkRecordDecl(decl_, clang::TTK_Union, id); +} + template<std::size_t N> ContextCheck DeclCheck::Function(char const (& id)[N]) const { |