Cppcheck
Macros | Functions
common.h File Reference
#include <QMap>
#include <QString>

Go to the source code of this file.

Macros

#define CLANG_ANALYZER   "clang-analyzer"
 
#define CLANG_TIDY   "clang-tidy"
 
#define SETTINGS_WINDOW_MAXIMIZED   "Window maximized"
 QSetting value names. More...
 
#define SETTINGS_WINDOW_WIDTH   "Window width"
 
#define SETTINGS_WINDOW_HEIGHT   "Window height"
 
#define SETTINGS_MAINWND_SPLITTER_STATE   "Mainwindow/Vertical splitter state"
 
#define SETTINGS_CHECK_DIALOG_WIDTH   "Check dialog width"
 
#define SETTINGS_CHECK_DIALOG_HEIGHT   "Check dialog height"
 
#define SETTINGS_PROJECT_DIALOG_WIDTH   "Project dialog width"
 
#define SETTINGS_PROJECT_DIALOG_HEIGHT   "Project dialog height"
 
#define SETTINGS_RESULT_COLUMN_WIDTH   "Result column %1 width"
 
#define SETTINGS_TOOLBARS_MAIN_SHOW   "Toolbars/ShowStandard"
 
#define SETTINGS_TOOLBARS_VIEW_SHOW   "Toolbars/ShowView"
 
#define SETTINGS_TOOLBARS_FILTER_SHOW   "Toolbars/ShowFilter"
 
#define SETTINGS_SHOW_STYLE   "Show style"
 
#define SETTINGS_SHOW_ERRORS   "Show errors"
 
#define SETTINGS_SHOW_WARNINGS   "Show warnings"
 
#define SETTINGS_SHOW_PERFORMANCE   "Show performance"
 
#define SETTINGS_SHOW_INFORMATION   "Show information"
 
#define SETTINGS_SHOW_PORTABILITY   "Show portability"
 
#define SETTINGS_STD_CPP   "Standard CPP"
 
#define SETTINGS_STD_C   "Standard C"
 
#define SETTINGS_ENFORCED_LANGUAGE   "Enforced language"
 
#define SETTINGS_CHECK_FORCE   "Check force"
 
#define SETTINGS_CHECK_THREADS   "Check threads"
 
#define SETTINGS_SHOW_FULL_PATH   "Show full path"
 
#define SETTINGS_SHOW_NO_ERRORS   "Show no errors message"
 
#define SETTINGS_SHOW_DEBUG_WARNINGS   "Show debug warnings"
 
#define SETTINGS_SAVE_ALL_ERRORS   "Save all errors"
 
#define SETTINGS_SAVE_FULL_PATH   "Save full path"
 
#define SETTINGS_APPLICATION_NAMES   "Application names"
 
#define SETTINGS_APPLICATION_PATHS   "Application paths"
 
#define SETTINGS_APPLICATION_PARAMS   "Application parameters"
 
#define SETTINGS_APPLICATION_DEFAULT   "Default Application"
 
#define SETTINGS_LANGUAGE   "Application language"
 
#define SETTINGS_GLOBAL_INCLUDE_PATHS   "Global include paths"
 
#define SETTINGS_PYTHON_PATH   "Python path"
 
#define SETTINGS_MISRA_FILE   "MISRA C 2012 file"
 
#define SETTINGS_CLANG_PATH   "Clang path"
 
#define SETTINGS_VS_INCLUDE_PATHS   "VS include paths"
 
#define SETTINGS_INLINE_SUPPRESSIONS   "Inline suppressions"
 
#define SETTINGS_INCONCLUSIVE_ERRORS   "Inconclusive errors"
 
#define SETTINGS_MRU_PROJECTS   "MRU Projects"
 
#define SETTINGS_SHOW_ERROR_ID   "Show error Id"
 
#define SETTINGS_SHOW_STATISTICS   "Show statistics"
 
#define SETTINGS_OPEN_PROJECT   "Open Project"
 
#define SETTINGS_CHECK_VERSION   "Check Version"
 
#define SETTINGS_CHECK_FOR_UPDATES   "Check for updates"
 
#define PROGRESS_MAX   1024.0
 
#define SETTINGS_CHECKED_PLATFORM   "Checked platform"
 
#define SETTINGS_LAST_CHECK_PATH   "Last check path"
 
#define SETTINGS_LAST_PROJECT_PATH   "Last project path"
 
#define SETTINGS_LAST_RESULT_PATH   "Last result path"
 
#define SETTINGS_LAST_SOURCE_PATH   "Last source path"
 
#define SETTINGS_LAST_APP_PATH   "Last application path"
 
#define SETTINGS_LAST_ANALYZE_FILES_FILTER   "Last analyze files filter"
 

Functions

QString getPath (const QString &type)
 Obtains the path of specified type Returns the path of specified type if not empty. More...
 
void setPath (const QString &type, const QString &value)
 Stores last used path of specified type Stores provided path as last used path for specified type. More...
 
QString toFilterString (const QMap< QString, QString > &filters, bool addAllSupported=true, bool addAll=true)
 Creates a string suitable for passing as the filter argument to methods like QFileDialog::getOpenFileName. More...
 
QString getDataDir ()
 Get configured data dir. More...