Skip to content

Instantly share code, notes, and snippets.

View fastasturtle's full-sized avatar

Dmitry Kozhevnikov fastasturtle

View GitHub Profile
@fastasturtle
fastasturtle / clang-templates-task.md
Last active September 6, 2018 13:58
Задание для осенней стажировки JetBrains/CLion

Задание

На основе clang сделать утилиту, которая выводит дерево инстанциаций шаблонов в данном коде на C++.

Пример входных данных

template<typename T1> class S1 {};
template<typename U> class S2 { S1<U> s; };
S2 x;
namespace ops {
struct gatekeeper {};
template<typename T>
bool operator>(T const &a, T const &b) {
return b < a;
}
template<typename T>
bool operator==(T const &a, T const &b) {