|
clang 22.0.0git
|
#include "clang/AST/ASTContext.h"#include "clang/AST/ExprObjC.h"#include "clang/AST/ODRDiagsEmitter.h"#include "clang/AST/PrettyDeclStackTrace.h"#include "clang/Basic/CharInfo.h"#include "clang/Basic/DiagnosticParse.h"#include "clang/Basic/TargetInfo.h"#include "clang/Parse/Parser.h"#include "clang/Parse/RAIIObjectsForParser.h"#include "clang/Sema/DeclSpec.h"#include "clang/Sema/Scope.h"#include "clang/Sema/SemaCodeCompletion.h"#include "clang/Sema/SemaObjC.h"#include "llvm/ADT/STLForwardCompat.h"#include "llvm/ADT/SmallVector.h"Go to the source code of this file.
Classes | |
| class | clang::Parser::ObjCTypeParamListScope |
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. | |
| static bool | isTopLevelObjCKeyword (tok::ObjCKeywordKind DirectiveKind) |
| static void | diagnoseRedundantPropertyNullability (Parser &P, ObjCDeclSpec &DS, NullabilityKind nullability, SourceLocation nullabilityLoc) |
| Diagnose redundant or conflicting nullability information. | |
| static void | takeDeclAttributesAppend (ParsedAttributesView &attrs, ParsedAttributesView &from) |
| Take all the decl attributes out of the given list and add them to the given attribute set. | |
| static void | takeDeclAttributes (ParsedAttributes &attrs, Declarator &D) |
| takeDeclAttributes - Take all the decl attributes from the given declarator and add them to the given list. | |
|
static |
Add an attribute for a context-sensitive type nullability to the given declarator.
Definition at line 365 of file ParseObjc.cpp.
References clang::ParsedAttributesView::addAtEnd(), clang::Declarator::getAttributePool(), clang::DeclSpec::getAttributes(), clang::DeclaratorChunk::getAttrs(), clang::Declarator::getMutableDeclSpec(), clang::Parser::getNullabilityKeyword(), clang::Declarator::getNumTypeObjects(), clang::ParsedAttributes::getPool(), and clang::Declarator::getTypeObject().
|
static |
Diagnose redundant or conflicting nullability information.
Definition at line 772 of file ParseObjc.cpp.
References clang::Parser::Diag(), clang::ObjCDeclSpec::getNullability(), and clang::ObjCDeclSpec::getNullabilityLoc().
|
static |
Definition at line 548 of file ParseObjc.cpp.
|
static |
takeDeclAttributes - Take all the decl attributes from the given declarator and add them to the given list.
Definition at line 1080 of file ParseObjc.cpp.
References clang::ParsedAttributesView::empty(), clang::Declarator::getAttributePool(), clang::DeclSpec::getAttributePool(), clang::Declarator::getAttributes(), clang::DeclSpec::getAttributes(), clang::DeclaratorChunk::getAttrs(), clang::Declarator::getDeclarationAttributes(), clang::Declarator::getDeclSpec(), clang::Declarator::getMutableDeclSpec(), clang::Declarator::getNumTypeObjects(), clang::ParsedAttributes::getPool(), clang::Declarator::getTypeObject(), clang::AttributePool::takeAllFrom(), and takeDeclAttributesAppend().
|
static |
Take all the decl attributes out of the given list and add them to the given attribute set.
Definition at line 1068 of file ParseObjc.cpp.
References clang::ParsedAttributesView::addAtEnd(), and clang::ParsedAttributesView::remove().
Referenced by takeDeclAttributes().