repo "https://github.com/tree-sitter/tree-sitter-cpp"
commit "12bd6f7e96080d2e70ec51d4068f2f66120dde35"
license "MIT"
grammar {
id "cpp"
name "C++"
tag "code"
tier 1
has-scanner #true
icon "devicon-plain:cplusplus"
aliases "c++" "cxx" "hpp"
dependency "tree-sitter-c" crate="arborium-c"
queries {
highlights {
prepend crate="arborium-c"
}
}
inventor "Bjarne Stroustrup"
year 1985
description "General-purpose language extending C with zero-overhead abstractions; see Stroustrup's official overview at <a href=\"https://isocpp.org/about\">isocpp.org</a>."
link "https://en.wikipedia.org/wiki/C%2B%2B"
trivia "Began as 'C with Classes' in 1979 and was renamed C++ (using the C increment operator) in 1983; Stroustrup recounts the history in <a href=\"https://www.stroustrup.com/dne.html\">The Design and Evolution of C++</a>."
sample {
path "samples/chrono-test.cc"
description "fmtlib chrono tests with templates, user-defined literals, chrono formatting, and GoogleTest macros."
link "https://github.com/fmtlib/fmt/blob/master/test/chrono-test.cc"
license "MIT"
}
sample {
path "samples/BytecodeReader.cpp"
description "Ark bytecode reader handling chunk parsing, endian conversion, and error cases."
link "https://github.com/ArkScript-lang/Ark/blob/dev/src/arkreactor/Compiler/BytecodeReader.cpp"
license "MIT"
}
}