cppcheck/cfg
pmisik 9c8b0c2c90 Workaround for syntax error on Microsoft specific __pragma keyword (#982)
__pragma is Microsoft specific keyword equivalent to C99 _Pragma operator
https://msdn.microsoft.com/en-us/library/d9x1s805.aspx
https://gcc.gnu.org/onlinedocs/cpp/Pragmas.html
http://clang.llvm.org/docs/UsersManual.html#controlling-diagnostics-via-pragmas

It seems cppcheck does not support _Pragma at the moment.

This change will fix syntax error on code that looks like this:

 #define MY_DEPRECATED_ENUM(X) X __pragma(deprecated(X))
enum myEnum
{
    myEnum_1 = 1,
    MY_DEPRECATED_ENUM(myEnum_2) = 2,
    myEnum_3,
    myEnum_4,
};
int main()
{
    myEnum a = myEnum_3;
    printf("%d", a);
    return 0;
}

This change was fiscussed here: https://sourceforge.net/p/cppcheck/discussion/general/thread/1808a46b/
2017-10-25 14:40:00 +02:00
..
avr.cfg Fixed #8078 (cppcheck-cfg.rng outdated) 2017-07-23 12:09:41 +02:00
bsd.cfg Add configuration file for BSD os family 2017-08-28 22:48:39 +02:00
cppcheck-cfg.rng ValidateCFG: Fix 'valid' pattern 2017-07-28 19:46:55 +02:00
cppcheck-lib.cfg std.cfg: Added support for std::swap. 2017-10-11 13:12:00 +02:00
gnu.cfg gnu.cfg: Added more returnValue-types. 2017-10-05 11:45:46 +02:00
gtk.cfg Fixed #8078 (cppcheck-cfg.rng outdated) 2017-07-23 12:09:41 +02:00
microsoft_sal.cfg Fixed #8078 (cppcheck-cfg.rng outdated) 2017-07-23 12:09:41 +02:00
motif.cfg Add more interfaces 2017-06-06 23:21:05 +02:00
posix.cfg posix.cfg: Added more returnValue-types. 2017-10-05 11:38:11 +02:00
qt.cfg qt.cfg: split configuration for QSettings::setValue and QSettings::value 2017-10-11 08:30:10 +02:00
sdl.cfg Fixed #8078 (cppcheck-cfg.rng outdated) 2017-07-23 12:09:41 +02:00
sfml.cfg Fixed #8078 (cppcheck-cfg.rng outdated) 2017-07-23 12:09:41 +02:00
std.cfg Added support for std::ios::clear. 2017-10-18 14:16:36 +02:00
windows.cfg Workaround for syntax error on Microsoft specific __pragma keyword (#982) 2017-10-25 14:40:00 +02:00
wxwidgets.cfg wxwidgets.cfg: There is no need to use the return value from wxMenu::Append(). 2017-10-20 11:01:37 +02:00