Add "-Wc++11-inline-namespace" so that libc++ can use -pedantic in C++03.
Summary: The title says it all. Reviewers: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13790 llvm-svn: 250477
This commit is contained in:
parent
68347e6c07
commit
09c1ffdc8f
|
|
@ -217,6 +217,7 @@ def NonModularIncludeInModule : DiagGroup<"non-modular-include-in-module",
|
|||
def IncompleteModule : DiagGroup<"incomplete-module",
|
||||
[IncompleteUmbrella, NonModularIncludeInModule]>;
|
||||
|
||||
def CXX11InlineNamespace : DiagGroup<"c++11-inline-namespace">;
|
||||
def InvalidNoreturn : DiagGroup<"invalid-noreturn">;
|
||||
def InvalidSourceEncoding : DiagGroup<"invalid-source-encoding">;
|
||||
def KNRPromotedParameter : DiagGroup<"knr-promoted-parameter">;
|
||||
|
|
@ -679,7 +680,8 @@ def NonGCC : DiagGroup<"non-gcc",
|
|||
|
||||
// A warning group for warnings about using C++11 features as extensions in
|
||||
// earlier C++ versions.
|
||||
def CXX11 : DiagGroup<"c++11-extensions", [CXX11ExtraSemi, CXX11LongLong]>;
|
||||
def CXX11 : DiagGroup<"c++11-extensions", [CXX11ExtraSemi, CXX11InlineNamespace,
|
||||
CXX11LongLong]>;
|
||||
|
||||
// A warning group for warnings about using C++14 features as extensions in
|
||||
// earlier C++ versions.
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@ def warn_cxx98_compat_ref_qualifier : Warning<
|
|||
"reference qualifiers on functions are incompatible with C++98">,
|
||||
InGroup<CXX98Compat>, DefaultIgnore;
|
||||
def ext_inline_namespace : ExtWarn<
|
||||
"inline namespaces are a C++11 feature">, InGroup<CXX11>;
|
||||
"inline namespaces are a C++11 feature">, InGroup<CXX11InlineNamespace>;
|
||||
def warn_cxx98_compat_inline_namespace : Warning<
|
||||
"inline namespaces are incompatible with C++98">,
|
||||
InGroup<CXX98Compat>, DefaultIgnore;
|
||||
|
|
|
|||
Loading…
Reference in New Issue