Extend the tests for -Wmissing-variable-declarations.

We shouldn't throw a warning when the static keyword is not present in
an anonymous namespace, just like we do for -Wmissing-prototypes.

llvm-svn: 290443
This commit is contained in:
Ed Schouten 2016-12-23 19:20:07 +00:00
parent 94f86ad4e0
commit c62002fb16
1 changed files with 5 additions and 0 deletions

View File

@ -47,3 +47,8 @@ class C {
static int x = 0; // no-warn
}
};
// There is also no need to use static in anonymous namespaces.
namespace {
int vgood4;
}