MLIR  20.0.0git
Functions
SourceMgrUtils.cpp File Reference
#include "mlir/Tools/lsp-server-support/SourceMgrUtils.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/Path.h"
#include <optional>

Go to the source code of this file.

Functions

static const char * lexLocStringTok (const char *curPtr)
 Find the end of a string whose contents start at the given curPtr. More...
 

Function Documentation

◆ lexLocStringTok()

static const char* lexLocStringTok ( const char *  curPtr)
static

Find the end of a string whose contents start at the given curPtr.

Returns the position at the end of the string, after a terminal or invalid character (e.g. " or \0).

Definition at line 24 of file SourceMgrUtils.cpp.

References mlir::lsp::contains().

Referenced by mlir::lsp::convertTokenLocToRange().