Skip to content

Instantly share code, notes, and snippets.

View FederAndInk's full-sized avatar

Ludovic J FederAndInk

  • Toulouse
  • 03:52 (UTC +02:00)
View GitHub Profile
% ./build/libtooling_test test.cpp -- -std=c++17
Presumed: 2:8
Expansion: 2:8
Spelling: 2:8
Roles: Def
Kind: CXXRecord
name: S
2|struct S
^
@FederAndInk
FederAndInk / inherited_ctor_using.cpp
Last active May 11, 2020 03:07
Exemple for clang index (inherited ctor with using)
struct S
{
S(int i) {}
};
struct SD : S
{
using S::S;
};
@FederAndInk
FederAndInk / clang_index_print_test.cpp
Last active May 11, 2020 17:37
Printing test with clang index (IndexASTConsumer)
#include <clang/AST/RecursiveASTVisitor.h>
#include <clang/Frontend/CompilerInstance.h>
#include <clang/Frontend/FrontendActions.h>
#include <clang/Index/IndexDataConsumer.h>
#include <clang/Index/IndexingAction.h>
#include <clang/Tooling/CommonOptionsParser.h>
#include <clang/Tooling/Tooling.h>
#include <llvm/ADT/DenseMap.h>
#include <llvm/ADT/DenseMapInfo.h>