clang  14.0.0git
Classes | Namespaces | Functions
ParseObjc.cpp File Reference
#include "clang/AST/ASTContext.h"
#include "clang/AST/PrettyDeclStackTrace.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/Parser.h"
#include "clang/Parse/RAIIObjectsForParser.h"
#include "clang/Sema/DeclSpec.h"
#include "clang/Sema/Scope.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
Include dependency graph for ParseObjc.cpp:

Go to the source code of this file.

Classes

class  clang::Parser::ObjCTypeParamListScope
 Class to handle popping type parameters when leaving the scope. More...
 

Namespaces

 OBJC2
 objc-class-instance-variables: '{' objc-instance-variable-decl-list[opt] '}'
 

Functions

static void addContextSensitiveTypeNullability (Parser &P, Declarator &D, NullabilityKind nullability, SourceLocation nullabilityLoc, bool &addedToDeclSpec)
 Add an attribute for a context-sensitive type nullability to the given declarator. More...
 
static void diagnoseRedundantPropertyNullability (Parser &P, ObjCDeclSpec &DS, NullabilityKind nullability, SourceLocation nullabilityLoc)
 Diagnose redundant or conflicting nullability information. More...
 
static void takeDeclAttributes (ParsedAttributesView &attrs, ParsedAttributesView &from)
 Take all the decl attributes out of the given list and add them to the given attribute set. More...
 
static void takeDeclAttributes (ParsedAttributes &attrs, Declarator &D)
 takeDeclAttributes - Take all the decl attributes from the given declarator and add them to the given list. More...
 

Function Documentation

◆ addContextSensitiveTypeNullability()

static void addContextSensitiveTypeNullability ( Parser P,
Declarator D,
NullabilityKind  nullability,
SourceLocation  nullabilityLoc,
bool addedToDeclSpec 
)
static

◆ diagnoseRedundantPropertyNullability()

static void diagnoseRedundantPropertyNullability ( Parser P,
ObjCDeclSpec DS,
NullabilityKind  nullability,
SourceLocation  nullabilityLoc 
)
static

Diagnose redundant or conflicting nullability information.

Definition at line 803 of file ParseObjc.cpp.

References clang::ObjCDeclSpec::getNullability(), clang::ObjCDeclSpec::getNullabilityLoc(), and P.

◆ takeDeclAttributes() [1/2]

static void takeDeclAttributes ( ParsedAttributes attrs,
Declarator D 
)
static

◆ takeDeclAttributes() [2/2]

static void takeDeclAttributes ( ParsedAttributesView attrs,
ParsedAttributesView from 
)
static

Take all the decl attributes out of the given list and add them to the given attribute set.

Definition at line 1214 of file ParseObjc.cpp.

References clang::ParsedAttributesView::addAtEnd(), and clang::ParsedAttributesView::remove().

Referenced by takeDeclAttributes().