Changeset 57004 in vbox for trunk/include/iprt
- Timestamp:
- Jul 19, 2015 12:53:13 AM (9 years ago)
- Location:
- trunk/include/iprt
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asn1-generator-pass.h
r56291 r57004 932 932 case RT_CONCAT(a_enmType,_NOT_PRESENT): \ 933 933 rc = RTErrInfoSetF(pErrInfo, VERR_GENERAL_FAILURE, \ 934 "%s: Invalid " #a_enmMembNm " value: " #a_enmType "_NOT_PRESENT", \ 935 pszErrorTag, pThis->a_enmMembNm); \ 934 "%s: Invalid " #a_enmMembNm " value: " #a_enmType "_NOT_PRESENT", pszErrorTag); \ 936 935 break; \ 937 936 } -
trunk/include/iprt/asn1.h
r56291 r57004 1596 1596 * @param ... Format arguments. 1597 1597 */ 1598 RTDECL(int) RTAsn1CursorSetInfo(PRTASN1CURSOR pCursor, int rc, const char *pszMsg, ...) ;1598 RTDECL(int) RTAsn1CursorSetInfo(PRTASN1CURSOR pCursor, int rc, const char *pszMsg, ...) RT_IPRT_FORMAT_ATTR(3, 4); 1599 1599 1600 1600 /** … … 1607 1607 * @param va Format arguments. 1608 1608 */ 1609 RTDECL(int) RTAsn1CursorSetInfoV(PRTASN1CURSOR pCursor, int rc, const char *pszMsg, va_list va) ;1609 RTDECL(int) RTAsn1CursorSetInfoV(PRTASN1CURSOR pCursor, int rc, const char *pszMsg, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 1610 1610 1611 1611 /** -
trunk/include/iprt/cdefs.h
r56919 r57004 925 925 #else 926 926 # define RT_IPRT_FORMAT_ATTR(a_iFmt, a_iArgs) 927 #endif 928 929 /** @def RT_IPRT_FORMAT_ATTR_MAYBE_NULL 930 * Identifies a function taking an IPRT format string, NULL is allowed. 931 * @param a_iFmt The index (1-based) of the format string argument. 932 * @param a_iArgs The index (1-based) of the first format argument, use 0 for 933 * va_list. 934 */ 935 #if defined(__GNUC__) && defined(WITH_IPRT_FORMAT_ATTRIBUTE) 936 # define RT_IPRT_FORMAT_ATTR_MAYBE_NULL(a_iFmt, a_iArgs) __attribute__((__iprt_format_maybe_null__(a_iFmt, a_iArgs))) 937 #else 938 # define RT_IPRT_FORMAT_ATTR_MAYBE_NULL(a_iFmt, a_iArgs) 927 939 #endif 928 940 -
trunk/include/iprt/condvar.h
r56291 r57004 72 72 * @param ... Format string arguments. 73 73 */ 74 RTDECL(int) RTConvVarCreateEx(PRTCONDVAR phCondVar, uint32_t fFlags, RTLOCKVALCLASS hClass, const char *pszNameFmt, ...); 74 RTDECL(int) RTConvVarCreateEx(PRTCONDVAR phCondVar, uint32_t fFlags, RTLOCKVALCLASS hClass, 75 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR(4, 5); 75 76 76 77 /** @name RTConvVarCreateEx flags -
trunk/include/iprt/critsect.h
r56402 r57004 136 136 * @param ... Format string arguments. 137 137 */ 138 RTDECL(int) RTCritSectInitEx(PRTCRITSECT pCritSect, uint32_t fFlags, 139 RTLOCKVALCLASS hClass, uint32_t uSubClass, const char *pszNameFmt, ...);138 RTDECL(int) RTCritSectInitEx(PRTCRITSECT pCritSect, uint32_t fFlags, RTLOCKVALCLASS hClass, uint32_t uSubClass, 139 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(5, 6); 140 140 141 141 /** … … 484 484 * @param ... Format string arguments. 485 485 */ 486 RTDECL(int) RTCritSectRwInitEx(PRTCRITSECTRW pThis, uint32_t fFlags, 487 RTLOCKVALCLASS hClass, uint32_t uSubClass, const char *pszNameFmt, ...);486 RTDECL(int) RTCritSectRwInitEx(PRTCRITSECTRW pThis, uint32_t fFlags, RTLOCKVALCLASS hClass, uint32_t uSubClass, 487 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(5, 6); 488 488 489 489 /** -
trunk/include/iprt/dbg.h
r56291 r57004 519 519 * @param va Format arguments. 520 520 */ 521 RTDECL(int) RTDbgAsCreateV(PRTDBGAS phDbgAs, RTUINTPTR FirstAddr, RTUINTPTR LastAddr, const char *pszNameFmt, va_list va); 521 RTDECL(int) RTDbgAsCreateV(PRTDBGAS phDbgAs, RTUINTPTR FirstAddr, RTUINTPTR LastAddr, 522 const char *pszNameFmt, va_list va) RT_IPRT_FORMAT_ATTR(4, 0); 522 523 523 524 /** … … 532 533 * @param ... Format arguments. 533 534 */ 534 RTDECL(int) RTDbgAsCreateF(PRTDBGAS phDbgAs, RTUINTPTR FirstAddr, RTUINTPTR LastAddr, const char *pszNameFmt, ...); 535 RTDECL(int) RTDbgAsCreateF(PRTDBGAS phDbgAs, RTUINTPTR FirstAddr, RTUINTPTR LastAddr, 536 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR(4, 5); 535 537 536 538 /** -
trunk/include/iprt/err.h
r55951 r57004 506 506 * @param ... The format arguments. 507 507 */ 508 RTDECL(int) RTErrInfoSetF(PRTERRINFO pErrInfo, int rc, const char *pszFormat, ...) ;508 RTDECL(int) RTErrInfoSetF(PRTERRINFO pErrInfo, int rc, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 509 509 510 510 /** … … 518 518 * @param va The format arguments. 519 519 */ 520 RTDECL(int) RTErrInfoSetV(PRTERRINFO pErrInfo, int rc, const char *pszFormat, va_list va) ;520 RTDECL(int) RTErrInfoSetV(PRTERRINFO pErrInfo, int rc, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 521 521 522 522 /** … … 541 541 * @param ... The format arguments. 542 542 */ 543 RTDECL(int) RTErrInfoAddF(PRTERRINFO pErrInfo, int rc, const char *pszFormat, ...) ;543 RTDECL(int) RTErrInfoAddF(PRTERRINFO pErrInfo, int rc, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 544 544 545 545 /** … … 553 553 * @param va The format arguments. 554 554 */ 555 RTDECL(int) RTErrInfoAddV(PRTERRINFO pErrInfo, int rc, const char *pszFormat, va_list va) ;555 RTDECL(int) RTErrInfoAddV(PRTERRINFO pErrInfo, int rc, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 556 556 557 557 /** -
trunk/include/iprt/file.h
r56291 r57004 271 271 * @param ... Arguments to the format string. 272 272 */ 273 RTDECL(int) RTFileOpenF(PRTFILE pFile, uint64_t fOpen, const char *pszFilenameFmt, ...) ;273 RTDECL(int) RTFileOpenF(PRTFILE pFile, uint64_t fOpen, const char *pszFilenameFmt, ...) RT_IPRT_FORMAT_ATTR(3, 4); 274 274 275 275 /** … … 284 284 * @param va Arguments to the format string. 285 285 */ 286 RTDECL(int) RTFileOpenV(PRTFILE pFile, uint64_t fOpen, const char *pszFilenameFmt, va_list va) ;286 RTDECL(int) RTFileOpenV(PRTFILE pFile, uint64_t fOpen, const char *pszFilenameFmt, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 287 287 288 288 /** -
trunk/include/iprt/heap.h
r56291 r57004 181 181 * @param ... Format arguments. 182 182 */ 183 typedef DECLCALLBACK(void) FNRTHEAPSIMPLEPRINTF(const char *pszFormat, ...) ;183 typedef DECLCALLBACK(void) FNRTHEAPSIMPLEPRINTF(const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(1, 2); 184 184 /** Pointer to a FNRTHEAPSIMPLEPRINTF function. */ 185 185 typedef FNRTHEAPSIMPLEPRINTF *PFNRTHEAPSIMPLEPRINTF; … … 336 336 * @param ... Format arguments. 337 337 */ 338 typedef DECLCALLBACK(void) FNRTHEAPOFFSETPRINTF(const char *pszFormat, ...) ;338 typedef DECLCALLBACK(void) FNRTHEAPOFFSETPRINTF(const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(1, 2); 339 339 /** Pointer to a FNRTHEAPOFFSETPRINTF function. */ 340 340 typedef FNRTHEAPOFFSETPRINTF *PFNRTHEAPOFFSETPRINTF; -
trunk/include/iprt/linux/sysfs.h
r56291 r57004 48 48 * @param va The format args. 49 49 */ 50 RTDECL(bool) RTLinuxSysFsExistsV(const char *pszFormat, va_list va) ;50 RTDECL(bool) RTLinuxSysFsExistsV(const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(1, 0); 51 51 52 52 /** … … 57 57 * @param ... The format args. 58 58 */ 59 RTDECL(bool) RTLinuxSysFsExists(const char *pszFormat, ...) ;59 RTDECL(bool) RTLinuxSysFsExists(const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(1, 2); 60 60 61 61 /** … … 66 66 * @param va The format args. 67 67 */ 68 RTDECL(int) RTLinuxSysFsOpenV(const char *pszFormat, va_list va) ;68 RTDECL(int) RTLinuxSysFsOpenV(const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(1, 0); 69 69 70 70 /** … … 75 75 * @param ... The format args. 76 76 */ 77 RTDECL(int) RTLinuxSysFsOpen(const char *pszFormat, ...) ;77 RTDECL(int) RTLinuxSysFsOpen(const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(1, 2); 78 78 79 79 /** … … 115 115 * @param va Format args. 116 116 */ 117 RTDECL(int64_t) RTLinuxSysFsReadIntFileV(unsigned uBase, const char *pszFormat, va_list va) ;117 RTDECL(int64_t) RTLinuxSysFsReadIntFileV(unsigned uBase, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(2, 0); 118 118 119 119 /** … … 125 125 * @param ... Format args. 126 126 */ 127 RTDECL(int64_t) RTLinuxSysFsReadIntFile(unsigned uBase, const char *pszFormat, ...) ;127 RTDECL(int64_t) RTLinuxSysFsReadIntFile(unsigned uBase, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(2, 3); 128 128 129 129 /** … … 134 134 * @param va Format args. 135 135 */ 136 RTDECL(dev_t) RTLinuxSysFsReadDevNumFileV(const char *pszFormat, va_list va) ;136 RTDECL(dev_t) RTLinuxSysFsReadDevNumFileV(const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(1, 0); 137 137 138 138 /** … … 143 143 * @param ... Format args. 144 144 */ 145 RTDECL(dev_t) RTLinuxSysFsReadDevNumFile(const char *pszFormat, ...) ;145 RTDECL(dev_t) RTLinuxSysFsReadDevNumFile(const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(1, 2); 146 146 147 147 /** … … 156 156 * @param va Format args. 157 157 */ 158 RTDECL(ssize_t) RTLinuxSysFsReadStrFileV(char *pszBuf, size_t cchBuf, const char *pszFormat, va_list va) ;158 RTDECL(ssize_t) RTLinuxSysFsReadStrFileV(char *pszBuf, size_t cchBuf, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 159 159 160 160 /** … … 169 169 * @param ... Format args. 170 170 */ 171 RTDECL(ssize_t) RTLinuxSysFsReadStrFile(char *pszBuf, size_t cchBuf, const char *pszFormat, ...) ;171 RTDECL(ssize_t) RTLinuxSysFsReadStrFile(char *pszBuf, size_t cchBuf, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 172 172 173 173 /** … … 187 187 * @param va Format args. 188 188 */ 189 RTDECL(ssize_t) RTLinuxSysFsGetLinkDestV(char *pszBuf, size_t cchBuf, const char *pszFormat, va_list va) ;189 RTDECL(ssize_t) RTLinuxSysFsGetLinkDestV(char *pszBuf, size_t cchBuf, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 190 190 191 191 /** … … 205 205 * @param ... Format args. 206 206 */ 207 RTDECL(ssize_t) RTLinuxSysFsGetLinkDest(char *pszBuf, size_t cchBuf, const char *pszFormat, ...) ;207 RTDECL(ssize_t) RTLinuxSysFsGetLinkDest(char *pszBuf, size_t cchBuf, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 208 208 209 209 /** … … 223 223 * @param va Format args. 224 224 */ 225 RTDECL(ssize_t) RTLinuxCheckDevicePathV(dev_t DevNum, RTFMODE fMode, 226 char *pszBuf, size_t cchBuf, 227 const char *pszPattern, va_list va); 225 RTDECL(ssize_t) RTLinuxCheckDevicePathV(dev_t DevNum, RTFMODE fMode, char *pszBuf, size_t cchBuf, 226 const char *pszPattern, va_list va) RT_IPRT_FORMAT_ATTR(5, 0); 228 227 229 228 /** … … 243 242 * @param ... Format args. 244 243 */ 245 RTDECL(ssize_t) RTLinuxCheckDevicePath(dev_t DevNum, RTFMODE fMode, 246 char *pszBuf, size_t cchBuf, 247 const char *pszPattern, ...); 244 RTDECL(ssize_t) RTLinuxCheckDevicePath(dev_t DevNum, RTFMODE fMode, char *pszBuf, size_t cchBuf, 245 const char *pszPattern, ...) RT_IPRT_FORMAT_ATTR(5, 6); 248 246 249 247 /** @} */ -
trunk/include/iprt/lockvalidator.h
r56291 r57004 265 265 * @param ... Format string arguments. 266 266 */ 267 RTDECL(void) RTLockValidatorRecExclInit(PRTLOCKVALRECEXCL pRec, RTLOCKVALCLASS hClass, uint32_t uSubClass, 268 void *hLock, bool fEnabled, const char *pszNameFmt, ...);267 RTDECL(void) RTLockValidatorRecExclInit(PRTLOCKVALRECEXCL pRec, RTLOCKVALCLASS hClass, uint32_t uSubClass, void *hLock, 268 bool fEnabled, const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(6, 7); 269 269 /** 270 270 * Initialize a lock validator record. … … 286 286 * @param va Format string arguments. 287 287 */ 288 RTDECL(void) RTLockValidatorRecExclInitV(PRTLOCKVALRECEXCL pRec, RTLOCKVALCLASS hClass, uint32_t uSubClass, 289 void *hLock, bool fEnabled, const char *pszNameFmt, va_list va);288 RTDECL(void) RTLockValidatorRecExclInitV(PRTLOCKVALRECEXCL pRec, RTLOCKVALCLASS hClass, uint32_t uSubClass, void *hLock, 289 bool fEnabled, const char *pszNameFmt, va_list va) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(6, 0); 290 290 /** 291 291 * Uninitialize a lock validator record previously initialized by … … 317 317 * @param ... Format string arguments. 318 318 */ 319 RTDECL(int) RTLockValidatorRecExclCreate(PRTLOCKVALRECEXCL *ppRec, RTLOCKVALCLASS hClass, uint32_t uSubClass, 320 void *hLock, bool fEnabled, const char *pszNameFmt, ...);319 RTDECL(int) RTLockValidatorRecExclCreate(PRTLOCKVALRECEXCL *ppRec, RTLOCKVALCLASS hClass, uint32_t uSubClass, void *hLock, 320 bool fEnabled, const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(6, 7); 321 321 322 322 /** … … 341 341 * @param va Format string arguments. 342 342 */ 343 RTDECL(int) RTLockValidatorRecExclCreateV(PRTLOCKVALRECEXCL *ppRec, RTLOCKVALCLASS hClass, uint32_t uSubClass, 344 void *hLock, bool fEnabled, const char *pszNameFmt, va_list va);343 RTDECL(int) RTLockValidatorRecExclCreateV(PRTLOCKVALRECEXCL *ppRec, RTLOCKVALCLASS hClass, uint32_t uSubClass, void *hLock, 344 bool fEnabled, const char *pszNameFmt, va_list va) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(6, 0); 345 345 346 346 /** … … 565 565 */ 566 566 RTDECL(void) RTLockValidatorRecSharedInit(PRTLOCKVALRECSHRD pRec, RTLOCKVALCLASS hClass, uint32_t uSubClass, 567 void *hLock, bool fSignaller, bool fEnabled, const char *pszNameFmt, ...); 567 void *hLock, bool fSignaller, bool fEnabled, 568 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(7, 8); 568 569 569 570 /** … … 590 591 */ 591 592 RTDECL(void) RTLockValidatorRecSharedInitV(PRTLOCKVALRECSHRD pRec, RTLOCKVALCLASS hClass, uint32_t uSubClass, 592 void *hLock, bool fSignaller, bool fEnabled, const char *pszNameFmt, va_list va); 593 void *hLock, bool fSignaller, bool fEnabled, 594 const char *pszNameFmt, va_list va) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(7, 0); 593 595 594 596 /** … … 625 627 */ 626 628 RTDECL(int) RTLockValidatorRecSharedCreate(PRTLOCKVALRECSHRD *ppRec, RTLOCKVALCLASS hClass, uint32_t uSubClass, 627 void *pvLock, bool fSignaller, bool fEnabled, const char *pszNameFmt, ...); 629 void *pvLock, bool fSignaller, bool fEnabled, 630 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(7, 8); 628 631 629 632 /** … … 652 655 */ 653 656 RTDECL(int) RTLockValidatorRecSharedCreateV(PRTLOCKVALRECSHRD *ppRec, RTLOCKVALCLASS hClass, uint32_t uSubClass, 654 void *pvLock, bool fSignaller, bool fEnabled, const char *pszNameFmt, va_list va); 657 void *pvLock, bool fSignaller, bool fEnabled, 658 const char *pszNameFmt, va_list va) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(7, 0); 655 659 656 660 /** … … 945 949 bool fAutodidact, bool fRecursionOk, bool fStrictReleaseOrder, 946 950 RTMSINTERVAL cMsMinDeadlock, RTMSINTERVAL cMsMinOrder, 947 const char *pszNameFmt, ...) ;951 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(8, 9); 948 952 949 953 /** … … 974 978 bool fAutodidact, bool fRecursionOk, bool fStrictReleaseOrder, 975 979 RTMSINTERVAL cMsMinDeadlock, RTMSINTERVAL cMsMinOrder, 976 const char *pszNameFmt, va_list va) ;980 const char *pszNameFmt, va_list va) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(8, 0); 977 981 978 982 /** … … 991 995 * @param ... Format string arguments. 992 996 */ 993 RTDECL(int) RTLockValidatorClassCreate(PRTLOCKVALCLASS phClass, bool fAutodidact, RT_SRC_POS_DECL, const char *pszNameFmt, ...); 997 RTDECL(int) RTLockValidatorClassCreate(PRTLOCKVALCLASS phClass, bool fAutodidact, RT_SRC_POS_DECL, 998 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(6, 7); 994 999 995 1000 /** … … 1009 1014 * @param ... Format string arguments. 1010 1015 */ 1011 RTDECL(RTLOCKVALCLASS) RTLockValidatorClassCreateUnique(RT_SRC_POS_DECL, const char *pszNameFmt, ...); 1016 RTDECL(RTLOCKVALCLASS) RTLockValidatorClassCreateUnique(RT_SRC_POS_DECL, 1017 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(4, 5); 1012 1018 1013 1019 /** … … 1030 1036 * @param ... Format string arguments. 1031 1037 */ 1032 RTDECL(RTLOCKVALCLASS) RTLockValidatorClassForSrcPos(RT_SRC_POS_DECL, const char *pszNameFmt, ...); 1038 RTDECL(RTLOCKVALCLASS) RTLockValidatorClassForSrcPos(RT_SRC_POS_DECL, 1039 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(4, 5); 1033 1040 1034 1041 /** -
trunk/include/iprt/log.h
r56919 r57004 1956 1956 RTDECL(int) RTLogCreate(PRTLOGGER *ppLogger, uint32_t fFlags, const char *pszGroupSettings, 1957 1957 const char *pszEnvVarBase, unsigned cGroups, const char * const * papszGroups, 1958 uint32_t fDestFlags, const char *pszFilenameFmt, ...) RT_IPRT_FORMAT_ATTR (8, 9);1958 uint32_t fDestFlags, const char *pszFilenameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(8, 9); 1959 1959 1960 1960 /** … … 1992 1992 const char *pszEnvVarBase, unsigned cGroups, const char * const * papszGroups, 1993 1993 uint32_t fDestFlags, PFNRTLOGPHASE pfnPhase, uint32_t cHistory, 1994 uint64_t cbHistoryFileMax, uint32_t cSecsHistoryTimeSlot, 1995 c har *pszErrorMsg, size_t cchErrorMsg, const char *pszFilenameFmt, ...) RT_IPRT_FORMAT_ATTR(14, 15);1994 uint64_t cbHistoryFileMax, uint32_t cSecsHistoryTimeSlot, char *pszErrorMsg, size_t cchErrorMsg, 1995 const char *pszFilenameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(14, 15); 1996 1996 1997 1997 /** … … 2031 2031 const char *pszEnvVarBase, unsigned cGroups, const char * const * papszGroups, 2032 2032 uint32_t fDestFlags, PFNRTLOGPHASE pfnPhase, uint32_t cHistory, 2033 uint64_t cbHistoryFileMax, uint32_t cSecsHistoryTimeSlot, 2034 char *pszErrorMsg, size_t cchErrorMsg, 2035 const char *pszFilenameFmt, va_list args) RT_IPRT_FORMAT_ATTR(14, 0); 2033 uint64_t cbHistoryFileMax, uint32_t cSecsHistoryTimeSlot, char *pszErrorMsg, size_t cchErrorMsg, 2034 const char *pszFilenameFmt, va_list args) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(14, 0); 2036 2035 2037 2036 /** -
trunk/include/iprt/semaphore.h
r56291 r57004 131 131 * @param ... Format string arguments. 132 132 */ 133 RTDECL(int) RTSemEventCreateEx(PRTSEMEVENT phEventSem, uint32_t fFlags, RTLOCKVALCLASS hClass, const char *pszNameFmt, ...); 133 RTDECL(int) RTSemEventCreateEx(PRTSEMEVENT phEventSem, uint32_t fFlags, RTLOCKVALCLASS hClass, 134 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(4, 5); 134 135 135 136 /** @name RTSemMutexCreateEx flags … … 301 302 */ 302 303 RTDECL(int) RTSemEventMultiCreateEx(PRTSEMEVENTMULTI phEventMultiSem, uint32_t fFlags, RTLOCKVALCLASS hClass, 303 const char *pszNameFmt, ...) ;304 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(4, 5); 304 305 305 306 /** @name RTSemMutexCreateEx flags … … 481 482 * @param ... Format string arguments. 482 483 */ 483 RTDECL(int) RTSemMutexCreateEx(PRTSEMMUTEX phMutexSem, uint32_t fFlags, 484 RTLOCKVALCLASS hClass, uint32_t uSubClass, const char *pszNameFmt, ...);484 RTDECL(int) RTSemMutexCreateEx(PRTSEMMUTEX phMutexSem, uint32_t fFlags, RTLOCKVALCLASS hClass, uint32_t uSubClass, 485 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(5, 6); 485 486 486 487 /** @name RTSemMutexCreateEx flags … … 845 846 * @param ... Format string arguments. 846 847 */ 847 RTDECL(int) RTSemRWCreateEx(PRTSEMRW phRWSem, uint32_t fFlags, 848 RTLOCKVALCLASS hClass, uint32_t uSubClass, const char *pszNameFmt, ...);848 RTDECL(int) RTSemRWCreateEx(PRTSEMRW phRWSem, uint32_t fFlags, RTLOCKVALCLASS hClass, uint32_t uSubClass, 849 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(5, 6); 849 850 850 851 /** @name RTSemRWCreateEx flags -
trunk/include/iprt/string.h
r56980 r57004 1953 1953 * @param args The format argument. 1954 1954 */ 1955 RTDECL(size_t) RTStrPrintfV(char *pszBuffer, size_t cchBuffer, const char *pszFormat, va_list args) ;1955 RTDECL(size_t) RTStrPrintfV(char *pszBuffer, size_t cchBuffer, const char *pszFormat, va_list args) RT_IPRT_FORMAT_ATTR(3, 0); 1956 1956 1957 1957 /** … … 2040 2040 * @param ... The format argument. 2041 2041 */ 2042 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(2, 3) 2043 RTStrAPrintf(char **ppszBuffer, const char *pszFormat, ...) 2042 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(2, 3) RTStrAPrintf(char **ppszBuffer, const char *pszFormat, ...) 2044 2043 { 2045 2044 int cbRet; … … 2064 2063 * @param ... The format argument. 2065 2064 */ 2066 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(3, 4) 2067 RTStrAPrintfTag(char **ppszBuffer, const char *pszTag, const char *pszFormat, ...) 2065 DECLINLINE(int) RT_IPRT_FORMAT_ATTR(3, 4) RTStrAPrintfTag(char **ppszBuffer, const char *pszTag, const char *pszFormat, ...) 2068 2066 { 2069 2067 int cbRet; … … 2104 2102 * @param ... The format argument. 2105 2103 */ 2106 DECLINLINE(char *) RT_IPRT_FORMAT_ATTR(1, 2) 2107 RTStrAPrintf2(const char *pszFormat, ...) 2104 DECLINLINE(char *) RT_IPRT_FORMAT_ATTR(1, 2) RTStrAPrintf2(const char *pszFormat, ...) 2108 2105 { 2109 2106 char *pszRet; … … 2124 2121 * @param ... The format argument. 2125 2122 */ 2126 DECLINLINE(char *) RT_IPRT_FORMAT_ATTR(2, 3) 2127 RTStrAPrintf2Tag(const char *pszTag, const char *pszFormat, ...) 2123 DECLINLINE(char *) RT_IPRT_FORMAT_ATTR(2, 3) RTStrAPrintf2Tag(const char *pszTag, const char *pszFormat, ...) 2128 2124 { 2129 2125 char *pszRet; -
trunk/include/iprt/test.h
r56291 r57004 262 262 * @param va Arguments. 263 263 */ 264 RTR3DECL(int) RTTestPrintfNlV(RTTEST hTest, RTTESTLVL enmLevel, const char *pszFormat, va_list va) ;264 RTR3DECL(int) RTTestPrintfNlV(RTTEST hTest, RTTESTLVL enmLevel, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 265 265 266 266 /** … … 274 274 * @param ... Arguments. 275 275 */ 276 RTR3DECL(int) RTTestPrintfNl(RTTEST hTest, RTTESTLVL enmLevel, const char *pszFormat, ...) ;276 RTR3DECL(int) RTTestPrintfNl(RTTEST hTest, RTTESTLVL enmLevel, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 277 277 278 278 /** … … 286 286 * @param va Arguments. 287 287 */ 288 RTR3DECL(int) RTTestPrintfV(RTTEST hTest, RTTESTLVL enmLevel, const char *pszFormat, va_list va) ;288 RTR3DECL(int) RTTestPrintfV(RTTEST hTest, RTTESTLVL enmLevel, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 289 289 290 290 /** … … 298 298 * @param ... Arguments. 299 299 */ 300 RTR3DECL(int) RTTestPrintf(RTTEST hTest, RTTESTLVL enmLevel, const char *pszFormat, ...) ;300 RTR3DECL(int) RTTestPrintf(RTTEST hTest, RTTESTLVL enmLevel, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4); 301 301 302 302 /** … … 327 327 * @param va Arguments for the reason format string. 328 328 */ 329 RTR3DECL(RTEXITCODE) RTTestSkipAndDestroyV(RTTEST hTest, const char *pszReasonFmt, va_list va) ;329 RTR3DECL(RTEXITCODE) RTTestSkipAndDestroyV(RTTEST hTest, const char *pszReasonFmt, va_list va) RT_IPRT_FORMAT_ATTR(2, 0); 330 330 331 331 /** … … 338 338 * @param ... Arguments for the reason format string. 339 339 */ 340 RTR3DECL(RTEXITCODE) RTTestSkipAndDestroy(RTTEST hTest, const char *pszReasonFmt, ...) ;340 RTR3DECL(RTEXITCODE) RTTestSkipAndDestroy(RTTEST hTest, const char *pszReasonFmt, ...) RT_IPRT_FORMAT_ATTR(2, 3); 341 341 342 342 /** … … 364 364 * @param ... Arguments. 365 365 */ 366 RTR3DECL(int) RTTestSubF(RTTEST hTest, const char *pszSubTestFmt, ...) ;366 RTR3DECL(int) RTTestSubF(RTTEST hTest, const char *pszSubTestFmt, ...) RT_IPRT_FORMAT_ATTR(2, 3); 367 367 368 368 /** … … 377 377 * @param va Arguments. 378 378 */ 379 RTR3DECL(int) RTTestSubV(RTTEST hTest, const char *pszSubTestFmt, va_list va) ;379 RTR3DECL(int) RTTestSubV(RTTEST hTest, const char *pszSubTestFmt, va_list va) RT_IPRT_FORMAT_ATTR(2, 0); 380 380 381 381 /** … … 400 400 * @param va The arguments. 401 401 */ 402 RTR3DECL(int) RTTestPassedV(RTTEST hTest, const char *pszFormat, va_list va) ;402 RTR3DECL(int) RTTestPassedV(RTTEST hTest, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(2, 0); 403 403 404 404 /** … … 414 414 * @param ... The arguments. 415 415 */ 416 RTR3DECL(int) RTTestPassed(RTTEST hTest, const char *pszFormat, ...) ;416 RTR3DECL(int) RTTestPassed(RTTEST hTest, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(2, 3); 417 417 418 418 /** … … 426 426 * @param ... The arguments. 427 427 */ 428 RTR3DECL(int) RTTestSkipped(RTTEST hTest, const char *pszFormat, ...) ;428 RTR3DECL(int) RTTestSkipped(RTTEST hTest, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(2, 3); 429 429 430 430 /** … … 438 438 * @param va The arguments. 439 439 */ 440 RTR3DECL(int) RTTestSkippedV(RTTEST hTest, const char *pszFormat, va_list va) ;440 RTR3DECL(int) RTTestSkippedV(RTTEST hTest, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR_MAYBE_NULL(2, 0); 441 441 442 442 … … 527 527 * @param ... String arguments. 528 528 */ 529 RTR3DECL(int) RTTestValueF(RTTEST hTest, uint64_t u64Value, RTTESTUNIT enmUnit, const char *pszNameFmt, ...); 529 RTR3DECL(int) RTTestValueF(RTTEST hTest, uint64_t u64Value, RTTESTUNIT enmUnit, 530 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR(4, 5); 530 531 531 532 /** … … 541 542 * @param va_list String arguments. 542 543 */ 543 RTR3DECL(int) RTTestValueV(RTTEST hTest, uint64_t u64Value, RTTESTUNIT enmUnit, const char *pszNameFmt, va_list va); 544 RTR3DECL(int) RTTestValueV(RTTEST hTest, uint64_t u64Value, RTTESTUNIT enmUnit, 545 const char *pszNameFmt, va_list va) RT_IPRT_FORMAT_ATTR(4, 0); 544 546 545 547 /** … … 579 581 * @param va The arguments. 580 582 */ 581 RTR3DECL(int) RTTestFailedV(RTTEST hTest, const char *pszFormat, va_list va) ;583 RTR3DECL(int) RTTestFailedV(RTTEST hTest, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(2, 0); 582 584 583 585 /** … … 590 592 * @param ... The arguments. 591 593 */ 592 RTR3DECL(int) RTTestFailed(RTTEST hTest, const char *pszFormat, ...) ;594 RTR3DECL(int) RTTestFailed(RTTEST hTest, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(2, 3); 593 595 594 596 /** … … 601 603 * @param va Arguments. 602 604 */ 603 RTR3DECL(int) RTTestFailureDetailsV(RTTEST hTest, const char *pszFormat, va_list va) ;605 RTR3DECL(int) RTTestFailureDetailsV(RTTEST hTest, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(2, 0); 604 606 605 607 /** … … 612 614 * @param ... Arguments. 613 615 */ 614 RTR3DECL(int) RTTestFailureDetails(RTTEST hTest, const char *pszFormat, ...) ;616 RTR3DECL(int) RTTestFailureDetails(RTTEST hTest, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(2, 3); 615 617 616 618 … … 878 880 * @param va Arguments. 879 881 */ 880 RTR3DECL(int) RTTestIPrintfV(RTTESTLVL enmLevel, const char *pszFormat, va_list va) ;882 RTR3DECL(int) RTTestIPrintfV(RTTESTLVL enmLevel, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(2, 0); 881 883 882 884 /** … … 888 890 * @param ... Arguments. 889 891 */ 890 RTR3DECL(int) RTTestIPrintf(RTTESTLVL enmLevel, const char *pszFormat, ...) ;892 RTR3DECL(int) RTTestIPrintf(RTTESTLVL enmLevel, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(2, 3); 891 893 892 894 /** … … 910 912 * @param ... Arguments. 911 913 */ 912 RTR3DECL(int) RTTestISubF(const char *pszSubTestFmt, ...) ;914 RTR3DECL(int) RTTestISubF(const char *pszSubTestFmt, ...) RT_IPRT_FORMAT_ATTR(1, 2); 913 915 914 916 /** … … 921 923 * @param va Arguments. 922 924 */ 923 RTR3DECL(int) RTTestISubV(const char *pszSubTestFmt, va_list va) ;925 RTR3DECL(int) RTTestISubV(const char *pszSubTestFmt, va_list va) RT_IPRT_FORMAT_ATTR(1, 0); 924 926 925 927 /** … … 940 942 * @param va The arguments. 941 943 */ 942 RTR3DECL(int) RTTestIPassedV(const char *pszFormat, va_list va) ;944 RTR3DECL(int) RTTestIPassedV(const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(1, 0); 943 945 944 946 /** … … 952 954 * @param ... The arguments. 953 955 */ 954 RTR3DECL(int) RTTestIPassed(const char *pszFormat, ...) ;956 RTR3DECL(int) RTTestIPassed(const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(1, 2); 955 957 956 958 /** … … 979 981 * @param ... String arguments. 980 982 */ 981 RTR3DECL(int) RTTestIValueF(uint64_t u64Value, RTTESTUNIT enmUnit, const char *pszNameFmt, ...) ;983 RTR3DECL(int) RTTestIValueF(uint64_t u64Value, RTTESTUNIT enmUnit, const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR(3, 4); 982 984 983 985 /** … … 991 993 * @param va_list String arguments. 992 994 */ 993 RTR3DECL(int) RTTestIValueV(uint64_t u64Value, RTTESTUNIT enmUnit, const char *pszNameFmt, va_list va) ;995 RTR3DECL(int) RTTestIValueV(uint64_t u64Value, RTTESTUNIT enmUnit, const char *pszNameFmt, va_list va) RT_IPRT_FORMAT_ATTR(3, 0); 994 996 995 997 /** … … 1014 1016 * @param va The arguments. 1015 1017 */ 1016 RTR3DECL(int) RTTestIFailedV(const char *pszFormat, va_list va) ;1018 RTR3DECL(int) RTTestIFailedV(const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(1, 0); 1017 1019 1018 1020 /** … … 1023 1025 * @param ... The arguments. 1024 1026 */ 1025 RTR3DECL(int) RTTestIFailed(const char *pszFormat, ...) ;1027 RTR3DECL(int) RTTestIFailed(const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(1, 2); 1026 1028 1027 1029 /** … … 1037 1039 * @param va The arguments. 1038 1040 */ 1039 RTR3DECL(int) RTTestIFailedRcV(int rcRet, const char *pszFormat, va_list va) ;1041 RTR3DECL(int) RTTestIFailedRcV(int rcRet, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(2, 0); 1040 1042 1041 1043 /** … … 1051 1053 * @param ... The arguments. 1052 1054 */ 1053 RTR3DECL(int) RTTestIFailedRc(int rcRet, const char *pszFormat, ...) ;1055 RTR3DECL(int) RTTestIFailedRc(int rcRet, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(2, 3); 1054 1056 1055 1057 /** … … 1060 1062 * @param va Arguments. 1061 1063 */ 1062 RTR3DECL(int) RTTestIFailureDetailsV(const char *pszFormat, va_list va) ;1064 RTR3DECL(int) RTTestIFailureDetailsV(const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(1, 0); 1063 1065 1064 1066 /** … … 1069 1071 * @param ... Arguments. 1070 1072 */ 1071 RTR3DECL(int) RTTestIFailureDetails(const char *pszFormat, ...) ;1073 RTR3DECL(int) RTTestIFailureDetails(const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(1, 2); 1072 1074 1073 1075 -
trunk/include/iprt/thread.h
r56291 r57004 299 299 */ 300 300 RTDECL(int) RTThreadCreateV(PRTTHREAD pThread, PFNRTTHREAD pfnThread, void *pvUser, size_t cbStack, 301 RTTHREADTYPE enmType, uint32_t fFlags, const char *pszNameFmt, va_list va) ;301 RTTHREADTYPE enmType, uint32_t fFlags, const char *pszNameFmt, va_list va) RT_IPRT_FORMAT_ATTR(7, 0); 302 302 303 303 /** … … 317 317 */ 318 318 RTDECL(int) RTThreadCreateF(PRTTHREAD pThread, PFNRTTHREAD pfnThread, void *pvUser, size_t cbStack, 319 RTTHREADTYPE enmType, uint32_t fFlags, const char *pszNameFmt, ...) ;319 RTTHREADTYPE enmType, uint32_t fFlags, const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR(7, 8); 320 320 321 321 /** -
trunk/include/iprt/trace.h
r56291 r57004 176 176 177 177 RTDECL(int) RTTraceBufAddMsg( RTTRACEBUF hTraceBuf, const char *pszMsg); 178 RTDECL(int) RTTraceBufAddMsgF( RTTRACEBUF hTraceBuf, const char *pszMsgFmt, ...) ;179 RTDECL(int) RTTraceBufAddMsgV( RTTRACEBUF hTraceBuf, const char *pszMsgFmt, va_list va) ;178 RTDECL(int) RTTraceBufAddMsgF( RTTRACEBUF hTraceBuf, const char *pszMsgFmt, ...) RT_IPRT_FORMAT_ATTR(2, 3); 179 RTDECL(int) RTTraceBufAddMsgV( RTTRACEBUF hTraceBuf, const char *pszMsgFmt, va_list va) RT_IPRT_FORMAT_ATTR(2, 0); 180 180 RTDECL(int) RTTraceBufAddMsgEx( RTTRACEBUF hTraceBuf, const char *pszMsg, size_t cbMaxMsg); 181 181 … … 183 183 RTDECL(int) RTTraceBufAddPosMsg( RTTRACEBUF hTraceBuf, RT_SRC_POS_DECL, const char *pszMsg); 184 184 RTDECL(int) RTTraceBufAddPosMsgEx( RTTRACEBUF hTraceBuf, RT_SRC_POS_DECL, const char *pszMsg, size_t cbMaxMsg); 185 RTDECL(int) RTTraceBufAddPosMsgF( RTTRACEBUF hTraceBuf, RT_SRC_POS_DECL, const char *pszMsgFmt, ...) ;186 RTDECL(int) RTTraceBufAddPosMsgV( RTTRACEBUF hTraceBuf, RT_SRC_POS_DECL, const char *pszMsgFmt, va_list va) ;185 RTDECL(int) RTTraceBufAddPosMsgF( RTTRACEBUF hTraceBuf, RT_SRC_POS_DECL, const char *pszMsgFmt, ...) RT_IPRT_FORMAT_ATTR(5, 6); 186 RTDECL(int) RTTraceBufAddPosMsgV( RTTRACEBUF hTraceBuf, RT_SRC_POS_DECL, const char *pszMsgFmt, va_list va) RT_IPRT_FORMAT_ATTR(5, 0); 187 187 188 188 -
trunk/include/iprt/types.h
r56291 r57004 71 71 # include <sys/types.h> 72 72 # ifndef offsetof 73 # error "offsetof is not defined ..."73 # error "offsetof is not defined!" 74 74 # endif 75 75 … … 2199 2199 * @param va Arguments for the format string. 2200 2200 */ 2201 typedef DECLCALLBACK(void) FNRTDUMPPRINTFV(void *pvUser, const char *pszFormat, va_list va) ;2201 typedef DECLCALLBACK(void) FNRTDUMPPRINTFV(void *pvUser, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(2, 0); 2202 2202 /** Pointer to a generic printf-like function for dumping. */ 2203 2203 typedef FNRTDUMPPRINTFV *PFNRTDUMPPRINTFV; … … 2416 2416 typedef union RTPTRUNION 2417 2417 { 2418 /** Pointer into the void. ..*/2418 /** Pointer into the void. */ 2419 2419 void *pv; 2420 2420 /** As a signed integer. */ … … 2455 2455 typedef union RTCPTRUNION 2456 2456 { 2457 /** Pointer into the void. ..*/2457 /** Pointer into the void. */ 2458 2458 void const *pv; 2459 2459 /** As a signed integer. */ … … 2494 2494 typedef union RTVPTRUNION 2495 2495 { 2496 /** Pointer into the void. ..*/2496 /** Pointer into the void. */ 2497 2497 void volatile *pv; 2498 2498 /** As a signed integer. */ … … 2533 2533 typedef union RTCVPTRUNION 2534 2534 { 2535 /** Pointer into the void. ..*/2535 /** Pointer into the void. */ 2536 2536 void const volatile *pv; 2537 2537 /** As a signed integer. */ -
trunk/include/iprt/uri.h
r53615 r57004 55 55 * @param pszFragment The fragment part of the URI (optional). 56 56 */ 57 RTR3DECL(char *) RTUriCreate(const char *pszScheme, const char *pszAuthority, const char *pszPath, const char *pszQuery, const char *pszFragment); 57 RTR3DECL(char *) RTUriCreate(const char *pszScheme, const char *pszAuthority, const char *pszPath, const char *pszQuery, 58 const char *pszFragment); 58 59 59 60 /** -
trunk/include/iprt/vector.h
r56291 r57004 1 1 /** @file 2 * IPRT - Vector 3 * STL-inspired vector implementation in C 2 * IPRT - Vector - STL-inspired vector implementation in C. 4 3 */ 5 4 … … 65 64 * (or passing them as anonymously) makes it easier to take care of this. 66 65 */ 66 67 67 #ifndef ___iprt_vector_h 68 # 68 #define ___iprt_vector_h 69 69 70 70 /******************************************************************************* … … 373 373 pfnDelete) 374 374 375 #endif /* ___iprt_vector_h */ 375 #endif /* !___iprt_vector_h */ 376
Note:
See TracChangeset
for help on using the changeset viewer.