class CurrentSourceLocExprScope::SourceLocExprScopeGuard

Declaration

class CurrentSourceLocExprScope::SourceLocExprScopeGuard { /* full declaration omitted */ };

Description

A RAII style scope guard used for tracking the current source location and context as used by the source location builtins (ex. __builtin_LINE).

Declared at: clang/include/clang/AST/CurrentSourceLocExprScope.h:48

Member Variables

private clang::CurrentSourceLocExprScope& Current
private clang::CurrentSourceLocExprScope OldVal
private bool Enable

Method Overview

Methods

SourceLocExprScopeGuard(
    const clang::Expr* DefaultExpr,
    clang::CurrentSourceLocExprScope& Current)

Declared at: clang/include/clang/AST/CurrentSourceLocExprScope.h:50

Parameters

const clang::Expr* DefaultExpr
clang::CurrentSourceLocExprScope& Current

SourceLocExprScopeGuard(
    const clang::CurrentSourceLocExprScope::
        SourceLocExprScopeGuard&)

Declared at: clang/include/clang/AST/CurrentSourceLocExprScope.h:64

Parameters

const clang::CurrentSourceLocExprScope:: SourceLocExprScopeGuard&

~SourceLocExprScopeGuard()

Declared at: clang/include/clang/AST/CurrentSourceLocExprScope.h:58