MLIR  20.0.0git
Functions
Protocol.cpp File Reference
#include "Protocol.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/JSON.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"

Go to the source code of this file.

Functions

template<typename T >
static bool mapOptOrNull (const llvm::json::Value &params, llvm::StringLiteral prop, T &out, llvm::json::Path path)
 

Function Documentation

◆ mapOptOrNull()

template<typename T >
static bool mapOptOrNull ( const llvm::json::Value &  params,
llvm::StringLiteral  prop,
T &  out,
llvm::json::Path  path 
)
static

Definition at line 28 of file Protocol.cpp.

References mlir::lsp::fromJSON().