clang 19.0.0git
Public Attributes | List of all members
clang::FileNullability Struct Reference

Describes whether we've seen any nullability information for the given file. More...

#include "clang/Sema/Sema.h"

Public Attributes

SourceLocation PointerLoc
 The first pointer declarator (of any pointer kind) in the file that does not have a corresponding nullability annotation.
 
SourceLocation PointerEndLoc
 The end location for the first pointer declarator in the file.
 
uint8_t PointerKind
 Which kind of pointer declarator we saw.
 
bool SawTypeNullability = false
 Whether we saw any type nullability annotations in the given file.
 

Detailed Description

Describes whether we've seen any nullability information for the given file.

Definition at line 248 of file Sema.h.

Member Data Documentation

◆ PointerEndLoc

SourceLocation clang::FileNullability::PointerEndLoc

The end location for the first pointer declarator in the file.

Used for placing fix-its.

Definition at line 255 of file Sema.h.

Referenced by checkNullabilityConsistency(), and recordNullabilitySeen().

◆ PointerKind

uint8_t clang::FileNullability::PointerKind

Which kind of pointer declarator we saw.

Definition at line 258 of file Sema.h.

Referenced by checkNullabilityConsistency(), and recordNullabilitySeen().

◆ PointerLoc

SourceLocation clang::FileNullability::PointerLoc

The first pointer declarator (of any pointer kind) in the file that does not have a corresponding nullability annotation.

Definition at line 251 of file Sema.h.

Referenced by checkNullabilityConsistency(), and recordNullabilitySeen().

◆ SawTypeNullability

bool clang::FileNullability::SawTypeNullability = false

Whether we saw any type nullability annotations in the given file.

Definition at line 261 of file Sema.h.

Referenced by checkNullabilityConsistency(), and recordNullabilitySeen().


The documentation for this struct was generated from the following file: