diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-28 03:16:11 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-28 03:16:11 +0000 |
commit | cf9f921268e67703d9cddcf9f2d6ac057c4c3cc8 (patch) | |
tree | fc54994b08b485f66e8546fdb2815586c7646ee5 /include/clang/Basic | |
parent | dd46adef4e839686bf9f22c2f861d1f29c9095d4 (diff) |
Many improvements to using declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80332 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 143f84a9c2..4465c8baa3 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -92,13 +92,19 @@ def warn_use_out_of_scope_declaration : Warning< "use of out-of-scope declaration of %0">; def err_inline_non_function : Error< "'inline' can only appear on functions">; + +// C++ using declarations def err_using_requires_qualname : Error< "using declaration requires a qualified name">; def err_using_typename_non_type : Error< "'typename' keyword used on a non-type">; def err_using_dependent_unsupported : Error< "dependent using declaration not supported yet">; - +def err_using_decl_nested_name_specifier_is_not_a_base_class : Error< + "using declaration refers into %0, which is not a base class of %1">; +def err_using_decl_refers_to_class_member : Error< + "using declaration refers to class member">; + def err_invalid_thread : Error< "'__thread' is only allowed on variable declarations">; def err_thread_non_global : Error< |