class PragmaDetectMismatchDecl

Declaration

class PragmaDetectMismatchDecl : public Decl, private TrailingObjects { /* full declaration omitted */ };

Description

Represents a `#pragma detect_mismatch` line. Always a child of TranslationUnitDecl.

Declared at: clang/include/clang/AST/Decl.h:172

Inherits from: Decl, TrailingObjects

Member Variables

private size_t ValueStart

Inherited from Decl:

protected NextInContextAndBits
protected Access
protected FromASTFile
protected IdentifierNamespace
protected CacheValidAndLinkage

Method Overview

  • public static clang::PragmaDetectMismatchDecl * Create(const clang::ASTContext & C, clang::TranslationUnitDecl * DC, clang::SourceLocation Loc, llvm::StringRef Name, llvm::StringRef Value)
  • public static clang::PragmaDetectMismatchDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID, unsigned int NameValueSize)
  • private PragmaDetectMismatchDecl(clang::TranslationUnitDecl * TU, clang::SourceLocation Loc, size_t ValueStart)
  • private virtual void anchor()
  • public static bool classof(const clang::Decl * D)
  • public static bool classofKind(clang::Decl::Kind K)
  • public llvm::StringRef getName() const
  • public llvm::StringRef getValue() const

Inherited from Decl:

Methods

static clang::PragmaDetectMismatchDecl* Create(
    const clang::ASTContext& C,
    clang::TranslationUnitDecl* DC,
    clang::SourceLocation Loc,
    llvm::StringRef Name,
    llvm::StringRef Value)

Declared at: clang/include/clang/AST/Decl.h:188

Parameters

const clang::ASTContext& C
clang::TranslationUnitDecl* DC
clang::SourceLocation Loc
llvm::StringRef Name
llvm::StringRef Value

static clang::PragmaDetectMismatchDecl*
CreateDeserialized(clang::ASTContext& C,
                   unsigned int ID,
                   unsigned int NameValueSize)

Declared at: clang/include/clang/AST/Decl.h:193

Parameters

clang::ASTContext& C
unsigned int ID
unsigned int NameValueSize

PragmaDetectMismatchDecl(
    clang::TranslationUnitDecl* TU,
    clang::SourceLocation Loc,
    size_t ValueStart)

Declared at: clang/include/clang/AST/Decl.h:181

Parameters

clang::TranslationUnitDecl* TU
clang::SourceLocation Loc
size_t ValueStart

virtual void anchor()

Declared at: clang/include/clang/AST/Decl.h:185

static bool classof(const clang::Decl* D)

Declared at: clang/include/clang/AST/Decl.h:199

Parameters

const clang::Decl* D

static bool classofKind(clang::Decl::Kind K)

Declared at: clang/include/clang/AST/Decl.h:200

Parameters

clang::Decl::Kind K

llvm::StringRef getName() const

Declared at: clang/include/clang/AST/Decl.h:195

llvm::StringRef getValue() const

Declared at: clang/include/clang/AST/Decl.h:196