Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions clang/lib/Parse/ParseDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,8 @@ TypeResult Parser::ParseTypeName(SourceRange *Range, DeclaratorContext Context,
}

/// Normalizes an attribute name by dropping prefixed and suffixed __.
static StringRef normalizeAttrName(StringRef Name) {
if (Name.size() >= 4 && Name.starts_with("__") && Name.ends_with("__"))
return Name.drop_front(2).drop_back(2);
return Name;
}
static StringRef normalizeAttrName( StringRef Name ) { if(Name.size()>=4&&Name.starts_with("__")&&Name.ends_with("__"))return Name.drop_front(2).drop_back(2);return Name;}


/// returns true iff attribute is annotated with `LateAttrParseExperimentalExt`
/// in `Attr.td`.
Expand Down