clang  14.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::ParsedSourceLocation Struct Reference

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

#include "clang/Frontend/CommandLineSourceLoc.h"

Collaboration diagram for clang::ParsedSourceLocation:
Collaboration graph
[legend]

Public Member Functions

std::string ToString () const
 Serialize ParsedSourceLocation back to a string. More...
 

Static Public Member Functions

static ParsedSourceLocation FromString (StringRef Str)
 Construct a parsed source location from a string; the Filename is empty on error. More...
 

Public Attributes

std::string FileName
 
unsigned Line
 
unsigned Column
 

Detailed Description

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

Definition at line 24 of file CommandLineSourceLoc.h.

Member Function Documentation

◆ FromString()

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

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

Definition at line 32 of file CommandLineSourceLoc.h.

References Column, FileName, Line, and string().

Referenced by clang::ParsedSourceRange::fromString(), and ParseFrontendArgs().

◆ ToString()

std::string clang::ParsedSourceLocation::ToString ( ) const
inline

Serialize ParsedSourceLocation back to a string.

Definition at line 53 of file CommandLineSourceLoc.h.

References Column, FileName, and Line.

Referenced by GenerateFrontendArgs().

Member Data Documentation

◆ Column

unsigned clang::ParsedSourceLocation::Column

◆ FileName

std::string clang::ParsedSourceLocation::FileName

◆ Line

unsigned clang::ParsedSourceLocation::Line

The documentation for this struct was generated from the following file: