* use canonical filepath cache in cxx indexer * made constructors of FilePath explicit * use FilePath at more places instead of string * forward declares FilePath wherever possible
32 lines
634 B
C++
32 lines
634 B
C++
#ifndef UTILITY_COMPLIATION_DATABASE_H
|
|
#define UTILITY_COMPLIATION_DATABASE_H
|
|
|
|
#include <vector>
|
|
|
|
class FilePath;
|
|
|
|
namespace utility
|
|
{
|
|
class CompilationDatabase
|
|
{
|
|
public:
|
|
CompilationDatabase(std::string filename);
|
|
|
|
std::vector<FilePath> getAllHeaderPaths();
|
|
std::vector<FilePath> getHeaderPaths();
|
|
std::vector<FilePath> getSystemHeaderPaths();
|
|
std::vector<FilePath> getFrameworkHeaderPaths();
|
|
|
|
private:
|
|
std::string m_filename;
|
|
std::vector<FilePath> m_headers;
|
|
std::vector<FilePath> m_systemHeaders;
|
|
std::vector<FilePath> m_frameworkHeaders;
|
|
|
|
void getHeaders();
|
|
};
|
|
|
|
}
|
|
|
|
#endif // UTILITY_COMPLIATION_DATABASE_H
|