clang-tools  7.0.0
Public Member Functions | List of all members
clang::clangd::GlobalCompilationDatabase Class Referenceabstract

Provides compilation arguments used for parsing C and C++ files. More...

#include <GlobalCompilationDatabase.h>

Inheritance diagram for clang::clangd::GlobalCompilationDatabase:
[legend]

Public Member Functions

virtual ~GlobalCompilationDatabase ()=default
 
virtual llvm::Optional< tooling::CompileCommand > getCompileCommand (PathRef File) const =0
 If there are any known-good commands for building this file, returns one. More...
 
virtual tooling::CompileCommand getFallbackCommand (PathRef File) const
 Makes a guess at how to build a file. More...
 

Detailed Description

Provides compilation arguments used for parsing C and C++ files.

Definition at line 31 of file GlobalCompilationDatabase.h.

Constructor & Destructor Documentation

◆ ~GlobalCompilationDatabase()

virtual clang::clangd::GlobalCompilationDatabase::~GlobalCompilationDatabase ( )
virtualdefault

Member Function Documentation

◆ getCompileCommand()

virtual llvm::Optional<tooling::CompileCommand> clang::clangd::GlobalCompilationDatabase::getCompileCommand ( PathRef  File) const
pure virtual

If there are any known-good commands for building this file, returns one.

Implemented in clang::clangd::CachingCompilationDb, and clang::clangd::DirectoryBasedGlobalCompilationDatabase.

Referenced by clang::clangd::CachingCompilationDb::getCompileCommand().

◆ getFallbackCommand()

tooling::CompileCommand clang::clangd::GlobalCompilationDatabase::getFallbackCommand ( PathRef  File) const
virtual

The documentation for this class was generated from the following files: