mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 17:41:58 +00:00
15 lines
364 B
C++
15 lines
364 B
C++
#pragma once
|
|
|
|
#include <clang-c/Index.h>
|
|
|
|
// Simple RAII wrapper about CXIndex.
|
|
// 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;
|
|
};
|