[cfe-commits] r41006 - in /cfe/trunk/Sema: Sema.cpp Sema.h
Ted Kremenek
kremenek at apple.com
Fri Aug 10 14:13:51 PDT 2007
Author: kremenek
Date: Fri Aug 10 16:13:51 2007
New Revision: 41006
URL: http://llvm.org/viewvc/llvm-project?rev=41006&view=rev
Log:
Moved id_asprintf before id_vsnprintf in the enum used for indexing
KnownFunctionIDs. This allows us to test for a printf-like function
that accepts a va_arg argument using a range comparison.
Modified:
cfe/trunk/Sema/Sema.cpp
cfe/trunk/Sema/Sema.h
Modified: cfe/trunk/Sema/Sema.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/Sema.cpp?rev=41006&r1=41005&r2=41006&view=diff
==============================================================================
--- cfe/trunk/Sema/Sema.cpp (original)
+++ cfe/trunk/Sema/Sema.cpp Fri Aug 10 16:13:51 2007
@@ -30,8 +30,8 @@
KnownFunctionIDs[ id_fprintf ] = &IT.get("fprintf");
KnownFunctionIDs[ id_sprintf ] = &IT.get("sprintf");
KnownFunctionIDs[ id_snprintf ] = &IT.get("snprintf");
- KnownFunctionIDs[ id_vsnprintf ] = &IT.get("vsnprintf");
KnownFunctionIDs[ id_asprintf ] = &IT.get("asprintf");
+ KnownFunctionIDs[ id_vsnprintf ] = &IT.get("vsnprintf");
KnownFunctionIDs[ id_vasprintf ] = &IT.get("vasprintf");
KnownFunctionIDs[ id_vfprintf ] = &IT.get("vfprintf");
KnownFunctionIDs[ id_vsprintf ] = &IT.get("vsprintf");
Modified: cfe/trunk/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/Sema.h?rev=41006&r1=41005&r2=41006&view=diff
==============================================================================
--- cfe/trunk/Sema/Sema.h (original)
+++ cfe/trunk/Sema/Sema.h Fri Aug 10 16:13:51 2007
@@ -75,8 +75,8 @@
id_fprintf,
id_sprintf,
id_snprintf,
- id_vsnprintf,
id_asprintf,
+ id_vsnprintf,
id_vasprintf,
id_vfprintf,
id_vsprintf,
More information about the cfe-commits
mailing list