clang-tools
8.0.0
|
Gets compile args from tooling::CompilationDatabases built for parent directories. More...
#include <GlobalCompilationDatabase.h>
Public Member Functions | |
DirectoryBasedGlobalCompilationDatabase (llvm::Optional< Path > CompileCommandsDir) | |
~DirectoryBasedGlobalCompilationDatabase () override | |
llvm::Optional< tooling::CompileCommand > | getCompileCommand (PathRef File, ProjectInfo *=nullptr) const override |
Scans File's parents looking for compilation databases. More... | |
![]() | |
virtual | ~GlobalCompilationDatabase ()=default |
virtual tooling::CompileCommand | getFallbackCommand (PathRef File) const |
Makes a guess at how to build a file. More... | |
CommandChanged::Subscription | watch (CommandChanged::Listener L) const |
The callback is notified when files may have new compile commands. More... | |
Additional Inherited Members | |
![]() | |
using | CommandChanged = Event< std::vector< std::string > > |
![]() | |
CommandChanged | OnCommandChanged |
Gets compile args from tooling::CompilationDatabases built for parent directories.
Definition at line 66 of file GlobalCompilationDatabase.h.
clang::clangd::DirectoryBasedGlobalCompilationDatabase::DirectoryBasedGlobalCompilationDatabase | ( | llvm::Optional< Path > | CompileCommandsDir | ) |
Definition at line 68 of file GlobalCompilationDatabase.cpp.
References ~DirectoryBasedGlobalCompilationDatabase().
Referenced by clang::clangd::GlobalCompilationDatabase::getFallbackCommand().
|
overridedefault |
Referenced by DirectoryBasedGlobalCompilationDatabase().
|
overridevirtual |
Scans File's parents looking for compilation databases.
Any extra flags will be added.
Implements clang::clangd::GlobalCompilationDatabase.
Definition at line 76 of file GlobalCompilationDatabase.cpp.
References clang::clangd::File, clang::clangd::log(), clang::clangd::None, and Result.