[CONCEPTS] Add diagnostics: non-defining function; non-namespace scope
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Wed, 22 Jul 2015 13:32:36 +0000 (13:32 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Wed, 22 Jul 2015 13:32:36 +0000 (13:32 +0000)
commit27f0697308e17861c0d71a223563093184f3ace2
tree786dbbbc2d8d241f318a9f9d26f5c115e43bd72b
parent7da34f1549a9514ece2a7c4534ca42af58a36461
[CONCEPTS] Add diagnostics: non-defining function; non-namespace scope

Summary:
Create diagnostic for function concept declaration which is not a
definition.

Create diagnostic for concept declaration which isn't in namespace
scope.

Create associated tests.

Reviewers: rsmith, faisalv, fraggamuffin, hubert.reinterpretcast

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D11027

Patch by Nathan Wilson!

llvm-svn: 242899
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaCXX/cxx-concept-declaration.cpp [new file with mode: 0644]