struct ParsedSourceLocation

Declaration

struct ParsedSourceLocation { /* full declaration omitted */ };

Description

A source location that has been parsed on the command line.

Declared at: clang/include/clang/Frontend/CommandLineSourceLoc.h:24

Member Variables

public std::string FileName
public unsigned int Line
public unsigned int Column

Method Overview

  • public static clang::ParsedSourceLocation FromString(llvm::StringRef Str)
  • public std::string ToString() const

Methods

static clang::ParsedSourceLocation FromString(
    llvm::StringRef Str)

Description

Construct a parsed source location from a string; the Filename is empty on error.

Declared at: clang/include/clang/Frontend/CommandLineSourceLoc.h:32

Parameters

llvm::StringRef Str

std::string ToString() const

Description

Serialize ParsedSourceLocation back to a string.

Declared at: clang/include/clang/Frontend/CommandLineSourceLoc.h:53