diff options
author | ed <ed@FreeBSD.org> | 2012-10-25 10:13:58 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2012-10-25 10:13:58 +0000 |
commit | be7b7f088b806d1ea94647b4427a35dc0ef6daed (patch) | |
tree | c7cf2e42166e846ecbead16b0cbf1e94154ebded /contrib/llvm/tools/clang/include | |
parent | 71112b5a8eb3a8cd3f5d49eff9664a32fec42b56 (diff) | |
download | FreeBSD-src-be7b7f088b806d1ea94647b4427a35dc0ef6daed.zip FreeBSD-src-be7b7f088b806d1ea94647b4427a35dc0ef6daed.tar.gz |
Pull in r166498 from upstream clang trunk:
Add a new warning -Wmissing-variable-declarations, to warn about variables
defined without a previous declaration. This is similar to
-Wmissing-prototypes, but for variables instead of functions.
Diffstat (limited to 'contrib/llvm/tools/clang/include')
-rw-r--r-- | contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td b/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td index 2d63dc4..96b3140 100644 --- a/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -3058,6 +3058,9 @@ def note_sentinel_here : Note< def warn_missing_prototype : Warning< "no previous prototype for function %0">, InGroup<DiagGroup<"missing-prototypes">>, DefaultIgnore; +def warn_missing_variable_declarations : Warning< + "no previous extern declaration for non-static variable %0">, + InGroup<DiagGroup<"missing-variable-declarations">>, DefaultIgnore; def err_redefinition : Error<"redefinition of %0">; def err_definition_of_implicitly_declared_member : Error< "definition of implicitly declared %select{default constructor|copy " |