[PATCH] D24469: [clang-cl] Diagnose duplicate uuids.

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 12 13:34:32 PDT 2016


thakis created this revision.
thakis added a reviewer: rnk.
thakis added subscribers: cfe-commits, aaron.ballman.

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

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Sema/AttributeList.h
  include/clang/Sema/Sema.h
  lib/Parse/ParseDecl.cpp
  lib/Sema/SemaDecl.cpp
  lib/Sema/SemaDeclAttr.cpp
  test/SemaCXX/ms-uuid.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24469.71048.patch
Type: text/x-patch
Size: 10802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160912/3f236920/attachment.bin>


More information about the cfe-commits mailing list