Struct clang::source::SourceLocation [] [src]

pub struct SourceLocation<'tu> { /* fields omitted */ }

A location in a source file.

Methods

impl<'tu> SourceLocation<'tu>
[src]

Returns the file, line, column and character offset of this source location.

If this source location is inside a macro expansion, the location of the macro expansion is returned instead.

Returns the file, line, column and character offset of this source location.

If this source location is inside a macro expansion, the location of the macro expansion is returned instead unless this source location is inside a macro argument. In that case, the location of the macro argument is returned.

Returns the file path, line, and column of this source location taking line directives into account.

Returns the file, line, column and character offset of this source location.

Returns the AST entity at this source location, if any.

Returns whether this source location is in the main file of its translation unit.

Returns whether this source location is in a system header.

Trait Implementations

impl<'tu> Copy for SourceLocation<'tu>
[src]

impl<'tu> Clone for SourceLocation<'tu>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'tu> Debug for SourceLocation<'tu>
[src]

Formats the value using the given formatter.

impl<'tu> PartialEq for SourceLocation<'tu>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'tu> Eq for SourceLocation<'tu>
[src]

impl<'tu> Hash for SourceLocation<'tu>
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.