Skip to content

Instantly share code, notes, and snippets.

@jazzbre
jazzbre / gist:ab09c62f56c18b903032f8344571a742
Created October 19, 2016 21:17
Simple clang AST parse
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendAction.h"
#include "clang/Tooling/Tooling.h"
#include "clang/Tooling/CommonOptionsParser.h"
#include "llvm/Support/CommandLine.h"
using namespace llvm;
using namespace clang;
@gjorquera
gjorquera / console.cpp
Last active July 22, 2024 09:45
Qt way to read from stdin.
#include <iostream>
#include "console.hpp"
void Console::run()
{
std::cout << "First message" << std::endl;
std::cout << "> " << std::flush;
connect(m_notifier, SIGNAL(activated(int)), this, SLOT(readCommand()));
}