struct Preprocessor::MacroAnnotations

Declaration

struct Preprocessor::MacroAnnotations { /* full declaration omitted */ };

Declared at: clang/include/clang/Lex/Preprocessor.h:898

Member Variables

public llvm::Optional<MacroAnnotationInfo> DeprecationInfo
public llvm::Optional<MacroAnnotationInfo> RestrictExpansionInfo
public llvm::Optional<SourceLocation> FinalAnnotationLoc

Method Overview

  • public static clang::Preprocessor::MacroAnnotations makeDeprecation(clang::SourceLocation Loc, std::string Msg)
  • public static clang::Preprocessor::MacroAnnotations makeFinal(clang::SourceLocation Loc)
  • public static clang::Preprocessor::MacroAnnotations makeRestrictExpansion(clang::SourceLocation Loc, std::string Msg)

Methods

static clang::Preprocessor::MacroAnnotations
makeDeprecation(clang::SourceLocation Loc,
                std::string Msg)

Declared at: clang/include/clang/Lex/Preprocessor.h:903

Parameters

clang::SourceLocation Loc
std::string Msg

static clang::Preprocessor::MacroAnnotations
makeFinal(clang::SourceLocation Loc)

Declared at: clang/include/clang/Lex/Preprocessor.h:915

Parameters

clang::SourceLocation Loc

static clang::Preprocessor::MacroAnnotations
makeRestrictExpansion(clang::SourceLocation Loc,
                      std::string Msg)

Declared at: clang/include/clang/Lex/Preprocessor.h:909

Parameters

clang::SourceLocation Loc
std::string Msg