kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/cxx/common/schema/edges.cc (about) 1 /* 2 * Copyright 2017 The Kythe Authors. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #include "kythe/cxx/common/schema/edges.h" 18 19 namespace kythe { 20 namespace common { 21 namespace schema { 22 23 // Constants for Kythe edges, similar to kythe/go/util/schema/edges/edges.go. 24 25 // Edge kind labels 26 const char kChildOf[] = "/kythe/edge/childof"; 27 const char kExtends[] = "/kythe/edge/extends"; 28 const char kExtendsPrivate[] = "/kythe/edge/extends/private"; 29 const char kExtendsPrivateVirtual[] = "/kythe/edge/extends/private/virtual"; 30 const char kExtendsProtected[] = "/kythe/edge/extends/protected"; 31 const char kExtendsProtectedVirtual[] = "/kythe/edge/extends/protected/virtual"; 32 const char kExtendsPublic[] = "/kythe/edge/extends/public"; 33 const char kExtendsPublicVirtual[] = "/kythe/edge/extends/public/virtual"; 34 const char kExtendsVirtual[] = "/kythe/edge/extends/virtual"; 35 const char kGenerates[] = "/kythe/edge/generates"; 36 const char kNamed[] = "/kythe/edge/named"; 37 const char kOverrides[] = "/kythe/edge/overrides"; 38 const char kParam[] = "/kythe/edge/param"; 39 const char kSatisfies[] = "/kythe/edge/satisfies"; 40 const char kTyped[] = "/kythe/edge/typed"; 41 42 // Edge kinds associated with anchors 43 const char kDefines[] = "/kythe/edge/defines"; 44 const char kDefinesBinding[] = "/kythe/edge/defines/binding"; 45 const char kDocuments[] = "/kythe/edge/documents"; 46 const char kRef[] = "/kythe/edge/ref"; 47 const char kRefCall[] = "/kythe/edge/ref/call"; 48 const char kRefImports[] = "/kythe/edge/ref/imports"; 49 const char kRefInit[] = "/kythe/edge/ref/init"; 50 const char kTagged[] = "/kythe/edge/tagged"; 51 52 } // namespace schema 53 } // namespace common 54 } // namespace kythe