clang  8.0.0svn
Namespaces | Functions
JSONCompilationDatabase.cpp File Reference
#include "clang/Tooling/JSONCompilationDatabase.h"
#include "clang/Basic/LLVM.h"
#include "clang/Tooling/CompilationDatabase.h"
#include "clang/Tooling/CompilationDatabasePluginRegistry.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/StringSaver.h"
#include "llvm/Support/YAMLParser.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <memory>
#include <string>
#include <system_error>
#include <tuple>
#include <utility>
#include <vector>
Include dependency graph for JSONCompilationDatabase.cpp:

Go to the source code of this file.

Namespaces

 clang
 Dataflow Directional Tag Classes.
 
 clang::tooling
 

Functions

static CompilationDatabasePluginRegistry::Add< JSONCompilationDatabasePlugin > X ("json-compilation-database", "Reads JSON formatted compilation databases")
 
static std::vector< std::string > nodeToCommandLine (JSONCommandLineSyntax Syntax, const std::vector< llvm::yaml::ScalarNode *> &Nodes)
 

Function Documentation

◆ nodeToCommandLine()

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

Definition at line 254 of file JSONCompilationDatabase.cpp.

References Cmd, getValue(), Node, and llvm::str().

◆ X()

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