summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/check.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-30 11:16:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-30 11:16:03 +0200
commit09031ef2fe89a8a6321ca89cca49f1587fe577e6 (patch)
tree5b1e79dde52ee16e8142fdc25f2fb468d1c94ab4 /compilerplugins/clang/check.hxx
parentc724093edb92c53db8cbb8ab5b910610a9fb53d0 (diff)
Avoid getQualifiedNameAsString
Change-Id: I448bfd63f1a2fb9cac3366146b10ff6a465e6db7
Diffstat (limited to 'compilerplugins/clang/check.hxx')
-rw-r--r--compilerplugins/clang/check.hxx9
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
{