clang API Documentation
#include <SourceLocation.h>
Public Member Functions | |
| PresumedLoc () | |
| PresumedLoc (const char *FN, unsigned Ln, unsigned Co, SourceLocation IL) | |
| bool | isInvalid () const |
| bool | isValid () const |
| const char * | getFilename () const |
| unsigned | getLine () const |
| unsigned | getColumn () const |
| SourceLocation | getIncludeLoc () const |
PresumedLoc - This class represents an unpacked "presumed" location which can be presented to the user. A 'presumed' location can be modified by #line and GNU line marker directives and is always the expansion point of a normal location.
You can get a PresumedLoc from a SourceLocation with SourceManager.
Definition at line 349 of file SourceLocation.h.
| clang::PresumedLoc::PresumedLoc | ( | ) | [inline] |
Definition at line 354 of file SourceLocation.h.
| clang::PresumedLoc::PresumedLoc | ( | const char * | FN, |
| unsigned | Ln, | ||
| unsigned | Co, | ||
| SourceLocation | IL | ||
| ) | [inline] |
Definition at line 355 of file SourceLocation.h.
| unsigned clang::PresumedLoc::getColumn | ( | ) | const [inline] |
getColumn - Return the presumed column number of this location. This can not be affected by #line, but is packaged here for convenience.
Definition at line 375 of file SourceLocation.h.
Referenced by clang::TextDiagnostic::emitDiagnosticLoc(), clang::SourceManager::getPresumedColumnNumber(), clang::LogDiagnosticPrinter::HandleDiagnostic(), and clang::SourceLocation::print().
| const char* clang::PresumedLoc::getFilename | ( | ) | const [inline] |
getFilename - Return the presumed filename of this location. This can be affected by #line etc.
Definition at line 367 of file SourceLocation.h.
Referenced by clang::DoPrintPreprocessedInput(), clang::CodeGen::CodeGenModule::EmitAnnotationUnit(), clang::TextDiagnostic::emitDiagnosticLoc(), clang::TextDiagnostic::emitIncludeLocation(), clang::DiagnosticNoteRenderer::emitIncludeLocation(), clang::LogDiagnosticPrinter::HandleDiagnostic(), clang::Preprocessor::HandlePragmaSystemHeader(), clang::SourceLocation::print(), and clang::CodeGen::CGDebugInfo::setLocation().
| SourceLocation clang::PresumedLoc::getIncludeLoc | ( | ) | const [inline] |
getIncludeLoc - Return the presumed include location of this location. This can be affected by GNU linemarker directives.
Definition at line 379 of file SourceLocation.h.
Referenced by clang::DiagnosticRenderer::emitDiagnostic(), and ReadLineMarkerFlags().
| unsigned clang::PresumedLoc::getLine | ( | ) | const [inline] |
getLine - Return the presumed line number of this location. This can be affected by #line etc.
Definition at line 371 of file SourceLocation.h.
Referenced by clang::CodeGen::CodeGenModule::EmitAnnotationLineNo(), clang::TextDiagnostic::emitDiagnosticLoc(), clang::TextDiagnostic::emitIncludeLocation(), clang::DiagnosticNoteRenderer::emitIncludeLocation(), clang::SourceManager::getPresumedLineNumber(), clang::LogDiagnosticPrinter::HandleDiagnostic(), clang::Preprocessor::HandlePragmaSystemHeader(), and clang::SourceLocation::print().
| bool clang::PresumedLoc::isInvalid | ( | ) | const [inline] |
isInvalid - Return true if this object is invalid or uninitialized. This occurs when created with invalid source locations or when walking off the top of a #include stack.
Definition at line 362 of file SourceLocation.h.
Referenced by clang::DoPrintPreprocessedInput(), clang::TextDiagnostic::emitDiagnosticLoc(), clang::LogDiagnosticPrinter::HandleDiagnostic(), clang::Preprocessor::HandlePragmaSystemHeader(), clang::SourceLocation::print(), ReadLineMarkerFlags(), and clang::CodeGen::CGDebugInfo::setLocation().
| bool clang::PresumedLoc::isValid | ( | ) | const [inline] |
Definition at line 363 of file SourceLocation.h.
Referenced by clang::CodeGen::CodeGenModule::EmitAnnotationLineNo(), and clang::CodeGen::CodeGenModule::EmitAnnotationUnit().