ccls/libclangmm/Index.cc
Jacob Dufault 5dbde940b6 wip
2017-02-16 01:35:30 -08:00

9 lines
239 B
C++

#include "Index.h"
clang::Index::Index(int excludeDeclarationsFromPCH, int displayDiagnostics) {
cx_index = clang_createIndex(excludeDeclarationsFromPCH, displayDiagnostics);
}
clang::Index::~Index() {
clang_disposeIndex(cx_index);
}