CppLanguage
classin packageklyn.code.cpp
public class CppLanguage extends Object
└ CppLanguage

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")
Inherited Properties
propertyInherited Properties from Object: type
Methods
Modifier and Type Member Description
public static profile
profile() as LanguageProfile
Returns the shared singleton LanguageProfile for C/C++.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml