|
clang
3.8.0
|
#include "clang/Parse/Parser.h"#include "RAIIObjectsForParser.h"#include "clang/AST/ASTContext.h"#include "clang/Basic/CharInfo.h"#include "clang/Parse/ParseDiagnostic.h"#include "clang/Sema/DeclSpec.h"#include "clang/Sema/PrettyDeclStackTrace.h"#include "clang/Sema/Scope.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/StringExtras.h"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 (ParsedAttributes &attrs, AttributeList *list) |
| 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... | |
|
static |
Add an attribute for a context-sensitive type nullability to the given declarator.
Definition at line 393 of file ParseObjc.cpp.
References clang::DeclSpec::addAttributes(), clang::AttributeList::AS_ContextSensitiveKeyword, clang::AttributePool::create(), clang::Declarator::getAttributePool(), clang::DeclaratorChunk::getAttrListRef(), clang::Declarator::getMutableDeclSpec(), clang::Parser::getNullabilityKeyword(), clang::Declarator::getNumTypeObjects(), and clang::Declarator::getTypeObject().
|
static |
Diagnose redundant or conflicting nullability information.
Definition at line 828 of file ParseObjc.cpp.
|
static |
Take all the decl attributes out of the given list and add them to the given attribute set.
Definition at line 1226 of file ParseObjc.cpp.
References clang::ParsedAttributes::add(), clang::AttributeList::getNext(), clang::AttributeList::isUsedAsTypeAttr(), and clang::AttributeList::setNext().
Referenced by takeDeclAttributes().
|
static |
takeDeclAttributes - Take all the decl attributes from the given declarator and add them to the given list.
Definition at line 1244 of file ParseObjc.cpp.
References clang::DeclSpec::getAttributePool(), clang::Declarator::getAttributePool(), clang::DeclSpec::getAttributes(), clang::Declarator::getAttributes(), clang::DeclaratorChunk::getAttrs(), clang::Declarator::getDeclSpec(), clang::ParsedAttributes::getList(), clang::Declarator::getNumTypeObjects(), clang::ParsedAttributes::getPool(), clang::Declarator::getTypeObject(), clang::AttributePool::takeAllFrom(), and takeDeclAttributes().
1.8.6