Cppcheck
Macros | Variables
keywords.cpp File Reference
#include "keywords.h"
#include "utils.h"

Go to the source code of this file.

Macros

#define C90_KEYWORDS
 
#define C99_KEYWORDS    "inline", "restrict", "_Bool", "_Complex", "_Imaginary"
 
#define C11_KEYWORDS    "_Alignas", "_Alignof", "_Atomic", "_Generic", "_Noreturn", "_Static_assert", "_Thread_local"
 
#define C23_KEYWORDS
 
#define CPP03_KEYWORDS
 
#define CPP11_KEYWORDS
 
#define CPP20_KEYWORDS
 
#define CPP_TMTS_KEYWORDS    "atomic_cancel", "atomic_commit", "atomic_noexcept", "synchronized"
 
#define CPP_REFL_TS_KEYWORDS    "reflexpr"
 

Variables

static const std::unordered_set< std::string > c89_keywords_all
 
static const std::unordered_set< std::string > c89_keywords = c89_keywords_all
 
static const std::unordered_set< std::string > c99_keywords_all
 
static const std::unordered_set< std::string > c99_keywords
 
static const std::unordered_set< std::string > c11_keywords_all
 
static const std::unordered_set< std::string > c11_keywords
 
static const std::unordered_set< std::string > c23_keywords_all
 
static const std::unordered_set< std::string > c23_keywords
 
static const std::unordered_set< std::string > cpp03_keywords_all
 
static const std::unordered_set< std::string > cpp03_keywords = cpp03_keywords_all
 
static const std::unordered_set< std::string > cpp11_keywords_all
 
static const std::unordered_set< std::string > cpp11_keywords
 
static const std::unordered_set< std::string > cpp14_keywords_all = cpp11_keywords_all
 
static const std::unordered_set< std::string > cpp14_keywords
 
static const std::unordered_set< std::string > cpp17_keywords_all = cpp11_keywords_all
 
static const std::unordered_set< std::string > cpp17_keywords
 
static const std::unordered_set< std::string > cpp20_keywords_all
 
static const std::unordered_set< std::string > cpp20_keywords
 
static const std::unordered_set< std::string > cpp23_keywords
 
static const std::unordered_set< std::string > cpp23_keywords_all = cpp20_keywords_all
 

Macro Definition Documentation

◆ C11_KEYWORDS

#define C11_KEYWORDS    "_Alignas", "_Alignof", "_Atomic", "_Generic", "_Noreturn", "_Static_assert", "_Thread_local"

Definition at line 34 of file keywords.cpp.

◆ C23_KEYWORDS

#define C23_KEYWORDS
Value:
"alignas", "alignof", "bool", "constexpr", "false", "nullptr", "static_assert", "thread_local", "true", "typeof", "typeof_unqual", \
"_BitInt", "_Decimal128", "_Decimal32", "_Decimal64"

Definition at line 42 of file keywords.cpp.

◆ C90_KEYWORDS

#define C90_KEYWORDS
Value:
"auto", "break", "case", "char", "const", "continue", "default", \
"do", "double", "else", "enum", "extern", "float", "for", "goto", "if", "int", "long", \
"register", "return", "short", "signed", "sizeof", "static", "struct", "switch", "typedef", \
"union", "unsigned", "void", "volatile", "while"

Definition at line 25 of file keywords.cpp.

◆ C99_KEYWORDS

#define C99_KEYWORDS    "inline", "restrict", "_Bool", "_Complex", "_Imaginary"

Definition at line 31 of file keywords.cpp.

◆ CPP03_KEYWORDS

#define CPP03_KEYWORDS
Value:
"and", "and_eq", "asm", "auto", "bitand", "bitor", "bool", "break", "case", "catch", "char", \
"class", "compl", "const", "const_cast", "continue", "default", \
"delete", "do", "double", "dynamic_cast", "else", "enum", "explicit", "export", "extern", "false", \
"float", "for", "friend", "goto", "if", "inline", "int", "long", \
"mutable", "namespace", "new", "not", "not_eq", "operator", \
"or", "or_eq", "private", "protected", "public", "register", "reinterpret_cast", \
"return", "short", "signed", "sizeof", "static", \
"static_cast", "struct", "switch", "template", "this", "throw", \
"true", "try", "typedef", "typeid", "typename", "union", "unsigned", "using", \
"virtual", "void", "volatile", "wchar_t", "while", "xor", "xor_eq"

Definition at line 82 of file keywords.cpp.

◆ CPP11_KEYWORDS

#define CPP11_KEYWORDS
Value:
"alignas", "alignof", "char16_t", "char32_t", "constexpr", "decltype", \
"noexcept", "nullptr", "static_assert", "thread_local"

Definition at line 94 of file keywords.cpp.

◆ CPP20_KEYWORDS

#define CPP20_KEYWORDS
Value:
"char8_t", "concept", "consteval", "constinit", "co_await", \
"co_return", "co_yield", "requires"

Definition at line 98 of file keywords.cpp.

◆ CPP_REFL_TS_KEYWORDS

#define CPP_REFL_TS_KEYWORDS    "reflexpr"

Definition at line 110 of file keywords.cpp.

◆ CPP_TMTS_KEYWORDS

#define CPP_TMTS_KEYWORDS    "atomic_cancel", "atomic_commit", "atomic_noexcept", "synchronized"

Definition at line 107 of file keywords.cpp.

Variable Documentation

◆ c11_keywords

const std::unordered_set<std::string> c11_keywords
static
Initial value:
= {
}
#define C11_KEYWORDS
Definition: keywords.cpp:34

Definition at line 68 of file keywords.cpp.

Referenced by Keywords::getOnly().

◆ c11_keywords_all

const std::unordered_set<std::string> c11_keywords_all
static
Initial value:
= {
}
#define C90_KEYWORDS
Definition: keywords.cpp:25
#define C99_KEYWORDS
Definition: keywords.cpp:31

Definition at line 64 of file keywords.cpp.

Referenced by Keywords::getAll().

◆ c23_keywords

const std::unordered_set<std::string> c23_keywords
static
Initial value:
= {
}
#define C23_KEYWORDS
Definition: keywords.cpp:42

Definition at line 76 of file keywords.cpp.

◆ c23_keywords_all

const std::unordered_set<std::string> c23_keywords_all
static
Initial value:

Definition at line 72 of file keywords.cpp.

Referenced by Keywords::getAll(), and Keywords::getOnly().

◆ c89_keywords

const std::unordered_set<std::string> c89_keywords = c89_keywords_all
static

Definition at line 54 of file keywords.cpp.

Referenced by Keywords::getOnly().

◆ c89_keywords_all

const std::unordered_set<std::string> c89_keywords_all
static
Initial value:

Definition at line 50 of file keywords.cpp.

Referenced by Keywords::getAll().

◆ c99_keywords

const std::unordered_set<std::string> c99_keywords
static
Initial value:

Definition at line 60 of file keywords.cpp.

Referenced by Keywords::getOnly().

◆ c99_keywords_all

const std::unordered_set<std::string> c99_keywords_all
static
Initial value:

Definition at line 56 of file keywords.cpp.

Referenced by Keywords::getAll().

◆ cpp03_keywords

const std::unordered_set<std::string> cpp03_keywords = cpp03_keywords_all
static

Definition at line 121 of file keywords.cpp.

Referenced by Keywords::getOnly().

◆ cpp03_keywords_all

const std::unordered_set<std::string> cpp03_keywords_all
static
Initial value:
= {
}
#define CPP03_KEYWORDS
Definition: keywords.cpp:82

Definition at line 117 of file keywords.cpp.

Referenced by Keywords::getAll().

◆ cpp11_keywords

const std::unordered_set<std::string> cpp11_keywords
static
Initial value:
= {
}
#define CPP11_KEYWORDS
Definition: keywords.cpp:94

Definition at line 127 of file keywords.cpp.

Referenced by Keywords::getOnly().

◆ cpp11_keywords_all

const std::unordered_set<std::string> cpp11_keywords_all
static
Initial value:

Definition at line 123 of file keywords.cpp.

Referenced by Keywords::getAll().

◆ cpp14_keywords

const std::unordered_set<std::string> cpp14_keywords
static

Definition at line 133 of file keywords.cpp.

Referenced by Keywords::getOnly().

◆ cpp14_keywords_all

const std::unordered_set<std::string> cpp14_keywords_all = cpp11_keywords_all
static

Definition at line 131 of file keywords.cpp.

Referenced by Keywords::getAll().

◆ cpp17_keywords

const std::unordered_set<std::string> cpp17_keywords
static

Definition at line 137 of file keywords.cpp.

Referenced by Keywords::getOnly().

◆ cpp17_keywords_all

const std::unordered_set<std::string> cpp17_keywords_all = cpp11_keywords_all
static

Definition at line 135 of file keywords.cpp.

Referenced by Keywords::getAll().

◆ cpp20_keywords

const std::unordered_set<std::string> cpp20_keywords
static
Initial value:
= {
}
#define CPP20_KEYWORDS
Definition: keywords.cpp:98

Definition at line 143 of file keywords.cpp.

Referenced by Keywords::getOnly().

◆ cpp20_keywords_all

const std::unordered_set<std::string> cpp20_keywords_all
static
Initial value:

Definition at line 139 of file keywords.cpp.

Referenced by Keywords::getAll().

◆ cpp23_keywords

const std::unordered_set<std::string> cpp23_keywords
static

Definition at line 147 of file keywords.cpp.

Referenced by Keywords::getOnly().

◆ cpp23_keywords_all

const std::unordered_set<std::string> cpp23_keywords_all = cpp20_keywords_all
static

Definition at line 149 of file keywords.cpp.

Referenced by Keywords::getAll().