Cppcheck
standards.h
Go to the documentation of this file.
00001 /*
00002  * Cppcheck - A tool for static C/C++ code analysis
00003  * Copyright (C) 2007-2011 Marek Zmysłowski and Cppcheck team.
00004  *
00005  * This program is free software: you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation, either version 3 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017  */
00018 #ifndef standardsH
00019 #define standardsH
00020 
00021 /// @addtogroup Core
00022 /// @{
00023 
00024 
00025 /**
00026  * @brief This is just a container for standards settings.
00027  * This struct contains all possible standards that cppcheck recognize.
00028  */
00029 struct Standards {
00030     /** C code C89/C99/C11 standard */
00031     enum cstd_t { C89, C99, C11 } c;
00032 
00033     /** C++ code standard */
00034     enum cppstd_t { CPP03, CPP11 } cpp;
00035 
00036     /** Code is posix */
00037     bool posix;
00038 
00039     /** This constructor clear all the variables **/
00040     Standards() : c(C11), cpp(CPP11), posix(false) {}
00041 };
00042 
00043 /// @}
00044 
00045 #endif // standardsH