[clang-cl] Diagnose duplicate uuids.
This mostly behaves cl.exe's behavior, even though clang-cl is stricter in some corner cases and more lenient in others (see the included test). To make the uuid declared previously here diagnostic work correctly, tweak stripTypeAttributesOffDeclSpec() to keep attributes in the right order. https://reviews.llvm.org/D24469 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281367 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/DiagnosticSemaKinds.td 2 additions, 0 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- include/clang/Sema/AttributeList.h 13 additions, 0 deletionsinclude/clang/Sema/AttributeList.h
- include/clang/Sema/Sema.h 2 additions, 0 deletionsinclude/clang/Sema/Sema.h
- lib/Parse/ParseDecl.cpp 14 additions, 2 deletionslib/Parse/ParseDecl.cpp
- lib/Sema/SemaDecl.cpp 10 additions, 0 deletionslib/Sema/SemaDecl.cpp
- lib/Sema/SemaDeclAttr.cpp 17 additions, 2 deletionslib/Sema/SemaDeclAttr.cpp
- test/SemaCXX/ms-uuid.cpp 94 additions, 0 deletionstest/SemaCXX/ms-uuid.cpp
Loading
Please register or sign in to comment