Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Parse/ParseDecl.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 1,411 Lines • ▼ Show 20 Lines | void Parser::ParseExternalSourceSymbolAttribute( | ||||
if (T.consumeClose()) | if (T.consumeClose()) | ||||
return; | return; | ||||
if (EndLoc) | if (EndLoc) | ||||
*EndLoc = T.getCloseLocation(); | *EndLoc = T.getCloseLocation(); | ||||
ArgsUnion Args[] = {Language.get(), DefinedInExpr.get(), | ArgsUnion Args[] = {Language.get(), DefinedInExpr.get(), | ||||
GeneratedDeclaration}; | GeneratedDeclaration}; | ||||
Attrs.addNew(&ExternalSourceSymbol, SourceRange(Loc, T.getCloseLocation()), | Attrs.addNew(&ExternalSourceSymbol, SourceRange(Loc, T.getCloseLocation()), | ||||
ScopeName, ScopeLoc, Args, llvm::array_lengthof(Args), Syntax); | ScopeName, ScopeLoc, Args, std::size(Args), Syntax); | ||||
} | } | ||||
/// Parse the contents of the "objc_bridge_related" attribute. | /// Parse the contents of the "objc_bridge_related" attribute. | ||||
/// objc_bridge_related '(' related_class ',' opt-class_method ',' opt-instance_method ')' | /// objc_bridge_related '(' related_class ',' opt-class_method ',' opt-instance_method ')' | ||||
/// related_class: | /// related_class: | ||||
/// Identifier | /// Identifier | ||||
/// | /// | ||||
/// opt-class_method: | /// opt-class_method: | ||||
▲ Show 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | void Parser::ParseSwiftNewTypeAttribute( | ||||
// Closing ')' | // Closing ')' | ||||
if (T.consumeClose()) | if (T.consumeClose()) | ||||
return; | return; | ||||
if (EndLoc) | if (EndLoc) | ||||
*EndLoc = T.getCloseLocation(); | *EndLoc = T.getCloseLocation(); | ||||
ArgsUnion Args[] = {SwiftType}; | ArgsUnion Args[] = {SwiftType}; | ||||
Attrs.addNew(&AttrName, SourceRange(AttrNameLoc, T.getCloseLocation()), | Attrs.addNew(&AttrName, SourceRange(AttrNameLoc, T.getCloseLocation()), | ||||
ScopeName, ScopeLoc, Args, llvm::array_lengthof(Args), Syntax); | ScopeName, ScopeLoc, Args, std::size(Args), Syntax); | ||||
} | } | ||||
void Parser::ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName, | void Parser::ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName, | ||||
SourceLocation AttrNameLoc, | SourceLocation AttrNameLoc, | ||||
ParsedAttributes &Attrs, | ParsedAttributes &Attrs, | ||||
SourceLocation *EndLoc, | SourceLocation *EndLoc, | ||||
IdentifierInfo *ScopeName, | IdentifierInfo *ScopeName, | ||||
SourceLocation ScopeLoc, | SourceLocation ScopeLoc, | ||||
▲ Show 20 Lines • Show All 6,093 Lines • Show Last 20 Lines |