public class CppLanguage extends Object
Canonical LanguageProfile factory and vocabulary definitions for C and C++ (.c, .cpp, .h, .hpp, .cc, .cxx).
Includes C++20 keywords (concept, requires, co_await, co_return, co_yield, consteval, constinit, constexpr), standard STL and fixed-width integer types, and # preprocessor directives.
import klyn.code.cpp
profile = CppLanguage.profile()
assert profile.id == "cpp"
assert profile.isKeyword("constexpr")
assert profile.isType("uint64_t")| Modifier and Type | Member | Description |
|---|---|---|
| public static | profileprofile() as LanguageProfile |
Returns the shared singleton LanguageProfile for C/C++. |