Doxygen
message.h
浏览该文件的文档.
1 /******************************************************************************
2  *
3  * Copyright (C) 1997-2020 by Dimitri van Heesch.
4  *
5  * Permission to use, copy, modify, and distribute this software and its
6  * documentation under the terms of the GNU General Public License is hereby
7  * granted. No representations are made about the suitability of this software
8  * for any purpose. It is provided "as is" without express or implied warranty.
9  * See the GNU General Public License for more details.
10  *
11  * Documents produced by Doxygen are derivative works derived from the
12  * input used in their production; they are not affected by this license.
13  *
14  */
15 
16 #ifndef MESSAGE_H
17 #define MESSAGE_H
18 
19 #include <cstdarg>
20 #include "qcstring.h"
21 
22 #ifdef __GNUC__
23 #define PRINTFLIKE(FORMAT, PARAM ) __attribute__((format(printf, FORMAT, PARAM)))
24 #else
25 #define PRINTFLIKE(FORMAT, PARAM )
26 #endif
27 
28 extern void msg(const char *fmt, ...) PRINTFLIKE(1,2);
29 extern void warn(const QCString &file,int line,const char *fmt, ...) PRINTFLIKE(3, 4);
30 extern void va_warn(const QCString &file, int line, const char* fmt, va_list args);
31 extern void warn_simple(const QCString &file,int line,const char *text);
32 extern void warn_undoc(const QCString &file,int line,const char *fmt, ...) PRINTFLIKE(3, 4);
33 extern void warn_incomplete_doc(const QCString &file,int line,const char *fmt, ...) PRINTFLIKE(3, 4);
34 extern void warn_doc_error(const QCString &file,int line,const char *fmt, ...) PRINTFLIKE(3, 4);
35 extern void warn_uncond(const char *fmt, ...) PRINTFLIKE(1, 2);
36 extern void err(const char *fmt, ...) PRINTFLIKE(1, 2);
37 extern void err_full(const QCString &file,int line,const char *fmt, ...) PRINTFLIKE(3, 4);
38 extern void term(const char *fmt, ...) PRINTFLIKE(1, 2);
39 void initWarningFormat();
40 void warn_flush();
41 extern void finishWarnExit();
42 
43 extern void printlex(int dbg, bool enter, const char *lexName, const char *fileName);
44 
45 #undef PRINTFLIKE
46 
47 #endif
warn_simple
void warn_simple(const QCString &file, int line, const char *text)
Definition: message.cpp:164
warn_uncond
void void void void warn_uncond(const char *fmt,...) PRINTFLIKE(1
warn_doc_error
void void void warn_doc_error(const QCString &file, int line, const char *fmt,...) PRINTFLIKE(3
warn_incomplete_doc
void void warn_incomplete_doc(const QCString &file, int line, const char *fmt,...) PRINTFLIKE(3
va_warn
void void void va_warn(const QCString &file, int line, const char *fmt, va_list args)
Definition: message.cpp:159
qcstring.h
PRINTFLIKE
#define PRINTFLIKE(FORMAT, PARAM)
Definition: message.h:25
printlex
void printlex(int dbg, bool enter, const char *lexName, const char *fileName)
Definition: message.cpp:243
err
void void void void void err(const char *fmt,...) PRINTFLIKE(1
term
void void void void void void void term(const char *fmt,...) PRINTFLIKE(1
warn_undoc
void warn_undoc(const QCString &file, int line, const char *fmt,...) PRINTFLIKE(3
warn_flush
void warn_flush()
Definition: message.cpp:237
initWarningFormat
void void void void void void void void initWarningFormat()
Definition: message.cpp:34
msg
void msg(const char *fmt,...) PRINTFLIKE(1
err_full
void void void void void void err_full(const QCString &file, int line, const char *fmt,...) PRINTFLIKE(3
finishWarnExit
void finishWarnExit()
Definition: message.cpp:271
warn
void void warn(const QCString &file, int line, const char *fmt,...) PRINTFLIKE(3
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108