ccls/src/clang_index.h

15 lines
364 B
C
Raw Normal View History

#pragma once
#include <clang-c/Index.h>
// Simple RAII wrapper about CXIndex.
2017-12-23 23:42:54 +00:00
// Note: building a ClangIndex instance acquires a global lock, since libclang
// API does not appear to be thread-safe here.
class ClangIndex {
public:
ClangIndex();
ClangIndex(int exclude_declarations_from_pch, int display_diagnostics);
~ClangIndex();
CXIndex cx_index;
};