[cfe-commits] r64547 - /cfe/trunk/lib/Parse/AttributeList.cpp
Chris Lattner
sabre at nondot.org
Sat Feb 14 00:12:47 PST 2009
Author: lattner
Date: Sat Feb 14 02:12:47 2009
New Revision: 64547
URL: http://llvm.org/viewvc/llvm-project?rev=64547&view=rev
Log:
just ignore hte format_arg attribute for now, it doesn't have any semantic implications.
Modified:
cfe/trunk/lib/Parse/AttributeList.cpp
Modified: cfe/trunk/lib/Parse/AttributeList.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/AttributeList.cpp?rev=64547&r1=64546&r2=64547&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/AttributeList.cpp (original)
+++ cfe/trunk/lib/Parse/AttributeList.cpp Sat Feb 14 02:12:47 2009
@@ -64,7 +64,7 @@
break;
case 6:
if (!memcmp(Str, "packed", 6)) return AT_packed;
- if (!memcmp(Str, "malloc", 6)) return IgnoredAttribute;
+ if (!memcmp(Str, "malloc", 6)) return IgnoredAttribute; // FIXME: noalias.
if (!memcmp(Str, "format", 6)) return AT_format;
if (!memcmp(Str, "unused", 6)) return AT_unused;
if (!memcmp(Str, "blocks", 6)) return AT_blocks;
@@ -91,12 +91,14 @@
case 9:
if (!memcmp(Str, "dllimport", 9)) return AT_dllimport;
if (!memcmp(Str, "dllexport", 9)) return AT_dllexport;
- if (!memcmp(Str, "may_alias", 9)) return IgnoredAttribute;
+ if (!memcmp(Str, "may_alias", 9)) return IgnoredAttribute; // FIXME: TBAA
break;
case 10:
if (!memcmp(Str, "deprecated", 10)) return AT_deprecated;
if (!memcmp(Str, "visibility", 10)) return AT_visibility;
if (!memcmp(Str, "destructor", 10)) return AT_destructor;
+ if (!memcmp(Str, "format_arg", 10))
+ return IgnoredAttribute; // FIXME: printf format string checking.
break;
case 11:
if (!memcmp(Str, "vector_size", 11)) return AT_vector_size;
More information about the cfe-commits
mailing list