Skip to content

Commit

Permalink
Remove deprecated predicate cxx1.DeclarationLocation.
Browse files Browse the repository at this point in the history
Summary: Found one use in `www` and migrated it: D48023009

Reviewed By: lazamar

Differential Revision: D48023032

fbshipit-source-id: 2396a583cf898f17ebbd32fbc577b0a665fca236
  • Loading branch information
mpark authored and facebook-github-bot committed Aug 3, 2023
1 parent 3480d93 commit a045502
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions glean/schema/source/cxx.angle
Original file line number Diff line number Diff line change
Expand Up @@ -1119,44 +1119,6 @@ predicate ObjContainerIdName :
( { implementation = Name } = Id) |
( { categoryImplementation = { categoryName = Name } } = Id)

# DEPRECATED: this doesn't work for operators and a few other
# things. Use DeclarationLocationName instead.
predicate DeclarationLocation :
{
decl : Declaration,
source : src.Range,
name : Name,
}
{ Decl, Range, Name } where
( { namespace_ = X } = Decl;
X = NamespaceDeclaration { source = Range, name = QName };
NamespaceDeclarationName { QName, Name }) |
( { usingDeclaration = X } = Decl;
X = UsingDeclaration { source = Range, name = QName };
QName = FunctionQName { name = { name = Name }}) |
( { usingDirective = X } = Decl;
X = UsingDirective { source = Range, name = { name = Name }}) |
( { record_ = X } = Decl;
X = RecordDeclaration { source = Range, name = { name = Name }}) |
( { enum_ = X } = Decl;
X = EnumDeclaration { source = Range, name = { name = Name }}) |
( { function_ = X } = Decl;
FunctionDeclaration { source = Range, name = { FName, _ } } = X;
FunctionDeclarationName { FName, Name }) |
( { variable = X } = Decl;
X = VariableDeclaration { source = Range, name = { name = Name }}) |
( { objcContainer = X } = Decl;
X = ObjcContainerDeclaration { source = Range, id = Id };
ObjContainerIdName { Id, Name }) |
( { objcMethod = X } = Decl;
X = ObjcMethodDeclaration { source = Range, selector = S };
S = ObjcSelector [Str];
Name = Name Str) |
( { objcProperty = X } = Decl;
X = ObjcPropertyDeclaration { source = Range, name = Name }) |
( { typeAlias = X } = Decl;
X = TypeAliasDeclaration { source = Range, name = { name = Name }})

# General purpose Declaration to shortname Name
predicate DeclarationLocationName :
{
Expand Down

0 comments on commit a045502

Please sign in to comment.