#include #include #include #include #include #include #include ">

clang: lib/Tooling/JSONCompilationDatabase.cpp File Reference (original) (raw)

#include "[clang/Tooling/JSONCompilationDatabase.h](JSONCompilationDatabase%5F8h%5Fsource.html)"
#include "[clang/Basic/LLVM.h](LLVM%5F8h%5Fsource.html)"
#include "[clang/Tooling/CompilationDatabase.h](CompilationDatabase%5F8h%5Fsource.html)"
#include "[clang/Tooling/CompilationDatabasePluginRegistry.h](CompilationDatabasePluginRegistry%5F8h%5Fsource.html)"
#include "[clang/Tooling/Tooling.h](Tooling%5F8h%5Fsource.html)"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/StringSaver.h"
#include "llvm/Support/VirtualFileSystem.h"
#include "llvm/Support/YAMLParser.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/TargetParser/Host.h"
#include "llvm/TargetParser/Triple.h"
#include <cassert>
#include <memory>
#include <optional>
#include <string>
#include <system_error>
#include <tuple>
#include <utility>
#include <vector>

Go to the source code of this file.

Namespaces
namespace clang
The JSON file list parser is used to communicate input to InstallAPI.
namespace clang::tooling
Functions
static CompilationDatabasePluginRegistry::Add< JSONCompilationDatabasePlugin > X ("json-compilation-database", "Reads JSON formatted compilation databases")
static llvm::StringRef stripExecutableExtension (llvm::StringRef Name)
static bool unwrapCommand (std::vector< std::string > &Args)
static std::vector< std::string > nodeToCommandLine (JSONCommandLineSyntax Syntax, const std::vector< llvm::yaml::ScalarNode * > &Nodes)

nodeToCommandLine()

static std::vector< std::string > nodeToCommandLine ( JSONCommandLineSyntax Syntax, const std::vector< llvm::yaml::ScalarNode * > & Nodes ) static

stripExecutableExtension()

static llvm::StringRef stripExecutableExtension ( llvm::StringRef Name) static

unwrapCommand()

static bool unwrapCommand ( std::vector< std::string > & Args) static

X()

static CompilationDatabasePluginRegistry::Add< JSONCompilationDatabasePlugin > X ( "json-compilation-database" , "Reads JSON formatted compilation databases" ) static