Adding a FIXME to the code, based on a discussion in IRC; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 4 Dec 2014 22:45:31 +0000 (22:45 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 4 Dec 2014 22:45:31 +0000 (22:45 +0000)
llvm-svn: 223403

clang/lib/Sema/SemaDeclAttr.cpp

index d945d63..e5eb61c 100644 (file)
@@ -4755,6 +4755,10 @@ void Sema::ProcessDeclAttributeList(Scope *S, Decl *D,
     return;
   }
 
+  // FIXME: We should be able to handle this in TableGen as well. It would be
+  // good to have a way to specify "these attributes must appear as a group",
+  // for these. Additionally, it would be good to have a way to specify "these
+  // attribute must never appear as a group" for attributes like cold and hot.
   if (!D->hasAttr<OpenCLKernelAttr>()) {
     // These attributes cannot be applied to a non-kernel function.
     if (Attr *A = D->getAttr<ReqdWorkGroupSizeAttr>()) {