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.

llvm-svn: 41006
This commit is contained in:
Ted Kremenek 2007-08-10 21:13:51 +00:00
parent e081928f49
commit cfc9419dd4
2 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, std::vector<Decl*> &prevInGroup)
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");

View File

@ -75,8 +75,8 @@ class Sema : public Action {
id_fprintf,
id_sprintf,
id_snprintf,
id_vsnprintf,
id_asprintf,
id_vsnprintf,
id_vasprintf,
id_vfprintf,
id_vsprintf,