]> granicus.if.org Git - clang/commitdiff
Make sure to move the comment with the code.
authorMike Stump <mrs@apple.com>
Tue, 28 Jul 2009 00:07:08 +0000 (00:07 +0000)
committerMike Stump <mrs@apple.com>
Tue, 28 Jul 2009 00:07:08 +0000 (00:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77279 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Builtins.def
lib/Sema/SemaDecl.cpp

index 9c5edf38bce5d01243a1e338ae710c29b25e46f0..b2d31f221512cdaa7b2f34191bdafe04b902429c 100644 (file)
@@ -387,9 +387,6 @@ LIBBUILTIN(rindex, "c*cC*i",      "f",     "strings.h")
 // but we need new type letters for that.
 LIBBUILTIN(objc_msgSend, "v*.",   "f",     "objc/message.h")
 
-// FIXME: asprintf and vasprintf aren't C99 functions. Should they be
-// target-specific builtins, perhaps? 
-
 // Builtin math library functions
 LIBBUILTIN(pow, "ddd", "fe", "math.h")
 LIBBUILTIN(powl, "LdLdLd", "fe", "math.h")
index 27c109f9f0a963493f2fcbfbd49a2938ba5f7bc7..7ab7356aa0c045128c749e1b7dcdca44acb3e77d 100644 (file)
@@ -3695,6 +3695,7 @@ void Sema::AddKnownFunctionAttributes(FunctionDecl *FD) {
     return;
 
   if (Name->isStr("NSLog") || Name->isStr("NSLogv")) {
+    // FIXME: NSLog and NSLogv should be target specific
     if (const FormatAttr *Format = FD->getAttr<FormatAttr>()) {
       // FIXME: We known better than our headers.
       const_cast<FormatAttr *>(Format)->setType("printf");
@@ -3702,6 +3703,8 @@ void Sema::AddKnownFunctionAttributes(FunctionDecl *FD) {
       FD->addAttr(::new (Context) FormatAttr("printf", 1,
                                              Name->isStr("NSLogv") ? 0 : 2));
   } else if (Name->isStr("asprintf") || Name->isStr("vasprintf")) {
+    // FIXME: asprintf and vasprintf aren't C99 functions. Should they be
+    // target-specific builtins, perhaps? 
     if (!FD->getAttr<FormatAttr>())
       FD->addAttr(::new (Context) FormatAttr("printf", 2,
                                              Name->isStr("vasprintf") ? 0 : 3));