aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-06 06:39:57 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-06 06:39:57 +0000
commit6e775dbafba2ab6634decc489eb3b4301b4b506b (patch)
treeb809ced8b5d90d348b8b0b0c0ed49e5c76d15135 /include/clang/Basic
parent80bd206870d5e4f959d203ae03e2aa345f67cf89 (diff)
Add Parse/Sema support for weak_import attribute.
- Also, diagnose weak applied to types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66259 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.def b/include/clang/Basic/DiagnosticSemaKinds.def
index beefc02ef5..ef6f7eeb9c 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.def
+++ b/include/clang/Basic/DiagnosticSemaKinds.def
@@ -376,6 +376,8 @@ DIAG(warn_attribute_weak_on_field, WARNING,
"__weak attribute cannot be specified on a field declaration")
DIAG(warn_attribute_weak_on_local, WARNING,
"__weak attribute cannot be specified on an automatic variable")
+DIAG(warn_attribute_weak_import_invalid_on_definition, WARNING,
+ "'weak_import' attribute cannot be specified on a definition")
DIAG(warn_attribute_wrong_decl_type, WARNING,
"'%0' attribute only applies to %select{function|union|"
"variable and function|function or method}1 types")