Skip to content

Commit a448097

Browse files
committed
[NFC] Rename OpenGraph to OpenAttributeGraph
See: developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Conventions/Conventions.html#//apple_ref/doc/uid/TP40011210-CH10-SW2 Your own classes should use three letter prefixes
1 parent 43739e6 commit a448097

File tree

250 files changed

+4810
-4810
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+4810
-4810
lines changed

.github/copilot-instructions.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# OpenGraph Copilot Instructions
1+
# OpenAttributeGraph Copilot Instructions
22

3-
This file contains coding guidelines and conventions for AI assistants working on the OpenGraph project.
3+
This file contains coding guidelines and conventions for AI assistants working on the OpenAttributeGraph project.
44

55
## Quick Reference
66

77
### Key Principles
88
- Use `swift-testing` framework with `#expect` macro (not XCTest)
9-
- Follow OpenGraph C++ and Swift interop patterns
9+
- Follow OpenAttributeGraph C++ and Swift interop patterns
1010
- Trim trailing whitespaces automatically
1111
- Use 4-space indentation consistently
1212

@@ -23,7 +23,7 @@ This file contains coding guidelines and conventions for AI assistants working o
2323
```swift
2424
import Testing
2525

26-
struct OpenGraphTests {
26+
struct OpenAttributeGraphTests {
2727
@Test
2828
func functionality() {
2929
let value = SomeType()
@@ -100,40 +100,40 @@ struct OpenGraphTests {
100100

101101
## C++ Coding Style
102102

103-
### OpenGraphCxx Guidelines
103+
### OpenAttributeGraphCxx Guidelines
104104

105-
- Follow existing OpenGraph C++ patterns and conventions
106-
- Use `OG_INLINE` and `OG_CONSTEXPR` macros for inline and constexpr functions
107-
- Use `OG_NOEXCEPT` for exception specifications
108-
- Maintain compatibility with existing OpenGraph APIs
105+
- Follow existing OpenAttributeGraph C++ patterns and conventions
106+
- Use `OAG_INLINE` and `OAG_CONSTEXPR` macros for inline and constexpr functions
107+
- Use `OAG_NOEXCEPT` for exception specifications
108+
- Maintain compatibility with existing OpenAttributeGraph APIs
109109
- Use proper header guards with project-specific naming
110110

111111
### Memory Management
112112

113113
- Use RAII principles for resource management
114114
- Prefer smart pointers and custom deleters for automatic cleanup
115-
- Use `ptr<T>` template for OpenGraph-specific pointer management
115+
- Use `ptr<T>` template for OpenAttributeGraph-specific pointer management
116116
- Implement proper validation and assertion mechanisms
117117

118118
### Template Usage
119119

120120
```cpp
121121
template <typename T>
122122
class ptr {
123-
// Implementation following OpenGraph patterns
123+
// Implementation following OpenAttributeGraph patterns
124124
};
125125
```
126126
127127
## Architecture Patterns
128128
129-
### OpenGraph Compatibility
130-
- Maintain API compatibility with existing OpenGraph functionality
129+
### OpenAttributeGraph Compatibility
130+
- Maintain API compatibility with existing OpenAttributeGraph functionality
131131
- Use similar naming conventions and parameter patterns
132-
- Implement protocols and extensions that mirror OpenGraph's design
132+
- Implement protocols and extensions that mirror OpenAttributeGraph's design
133133
134134
### Module Organization
135135
- Keep related functionality in appropriate modules
136-
- Use clear module boundaries between OpenGraphCxx and Swift layers
136+
- Use clear module boundaries between OpenAttributeGraphCxx and Swift layers
137137
- Avoid circular dependencies between modules
138138
139139
### C++/Swift Interop
@@ -163,7 +163,7 @@ func someFunction(value: String) throws -> Int {
163163

164164
## Performance Considerations
165165

166-
- Optimize memory allocation patterns using OpenGraph's table/page system
166+
- Optimize memory allocation patterns using OpenAttributeGraph's table/page system
167167
- Use lazy initialization for expensive computations
168168
- Consider memory management and avoid retain cycles
169169
- Optimize for common use cases while maintaining flexibility
@@ -179,7 +179,7 @@ func someFunction(value: String) throws -> Int {
179179

180180
### C++ Files
181181
- Use proper header inclusion guards
182-
- Include OpenGraph base headers first
182+
- Include OpenAttributeGraph base headers first
183183
- Follow dependency order in include statements
184184
- Use forward declarations when possible
185185

@@ -193,16 +193,16 @@ func someFunction(value: String) throws -> Int {
193193

194194
## Memory and Data Management
195195

196-
### OpenGraph Patterns
196+
### OpenAttributeGraph Patterns
197197
- Use `data::table` for memory region management
198198
- Implement proper page allocation and deallocation
199199
- Use `ptr<T>` for type-safe offset-based pointers
200-
- Follow OpenGraph's zone-based memory organization
200+
- Follow OpenAttributeGraph's zone-based memory organization
201201

202202
### Validation and Assertions
203203
- Use `assert_valid` methods for pointer validation
204204
- Implement proper precondition checking
205-
- Use OpenGraph's assertion macros consistently
205+
- Use OpenAttributeGraph's assertion macros consistently
206206
- Handle edge cases gracefully
207207

208208
---

.github/workflows/compatibility_tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
xcode-version: "16.4" # Swift 6.1.2
1818
runs-on: ${{ matrix.os }}
1919
env:
20-
OPENGRAPH_WERROR: 1
21-
OPENGRAPH_ATTRIBUTEGRAPH: 1
22-
OPENGRAPH_COMPATIBILITY_TEST: 1
23-
OPENGRAPH_USE_LOCAL_DEPS: 1
24-
OPENGRAPH_TARGET_RELEASE: 2024
20+
OPENATTRIBUTEGRAPH_WERROR: 1
21+
OPENATTRIBUTEGRAPH_ATTRIBUTEGRAPH: 1
22+
OPENATTRIBUTEGRAPH_COMPATIBILITY_TEST: 1
23+
OPENATTRIBUTEGRAPH_USE_LOCAL_DEPS: 1
24+
OPENATTRIBUTEGRAPH_TARGET_RELEASE: 2024
2525
DARWIN_PRIVATE_FRAMEWORKS_TARGET_RELEASE: 2024
2626
GH_TOKEN: ${{ github.token }}
2727
steps:
@@ -42,7 +42,7 @@ jobs:
4242
- name: Run tests against Apple's AttributeGraph on macOS via Xcode
4343
run: |
4444
xcodebuild test \
45-
-scheme OpenGraph-Package \
45+
-scheme OpenAttributeGraph-Package \
4646
-sdk macosx \
4747
-destination "platform=macOS" \
4848
-skipPackagePluginValidation \

.github/workflows/ios.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
ios-simulator-name: "iPhone 16 Pro"
2121
runs-on: ${{ matrix.os }}
2222
env:
23-
OPENGRAPH_WERROR: 1
24-
OPENGRAPH_ATTRIBUTEGRAPH: 0
25-
OPENGRAPH_COMPATIBILITY_TEST: 0
26-
OPENGRAPH_USE_LOCAL_DEPS: 1
27-
OPENGRAPH_TARGET_RELEASE: 2024
23+
OPENATTRIBUTEGRAPH_WERROR: 1
24+
OPENATTRIBUTEGRAPH_ATTRIBUTEGRAPH: 0
25+
OPENATTRIBUTEGRAPH_COMPATIBILITY_TEST: 0
26+
OPENATTRIBUTEGRAPH_USE_LOCAL_DEPS: 1
27+
OPENATTRIBUTEGRAPH_TARGET_RELEASE: 2024
2828
DARWIN_PRIVATE_FRAMEWORKS_TARGET_RELEASE: 2024
2929
GH_TOKEN: ${{ github.token }}
3030
steps:
@@ -41,7 +41,7 @@ jobs:
4141
- name: Build in debug mode on iOS
4242
run: |
4343
xcodebuild build \
44-
-scheme OpenGraph-Package \
44+
-scheme OpenAttributeGraph-Package \
4545
-configuration Debug \
4646
-destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \
4747
-derivedDataPath .build-debug \
@@ -51,7 +51,7 @@ jobs:
5151
- name: Build and run tests in debug mode with coverage on iOS Simulator
5252
run: |
5353
xcodebuild test \
54-
-scheme OpenGraph-Package \
54+
-scheme OpenAttributeGraph-Package \
5555
-configuration Debug \
5656
-destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \
5757
-enableCodeCoverage=YES \

.github/workflows/macos.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
xcode-version: ["16.4"] # Swift 6.1.2
1717
runs-on: ${{ matrix.os }}
1818
env:
19-
OPENGRAPH_WERROR: 1
20-
OPENGRAPH_ATTRIBUTEGRAPH: 0
21-
OPENGRAPH_COMPATIBILITY_TEST: 0
22-
OPENGRAPH_USE_LOCAL_DEPS: 1
23-
OPENGRAPH_TARGET_RELEASE: 2024
19+
OPENATTRIBUTEGRAPH_WERROR: 1
20+
OPENATTRIBUTEGRAPH_ATTRIBUTEGRAPH: 0
21+
OPENATTRIBUTEGRAPH_COMPATIBILITY_TEST: 0
22+
OPENATTRIBUTEGRAPH_USE_LOCAL_DEPS: 1
23+
OPENATTRIBUTEGRAPH_TARGET_RELEASE: 2024
2424
DARWIN_PRIVATE_FRAMEWORKS_TARGET_RELEASE: 2024
2525
GH_TOKEN: ${{ github.token }}
2626
steps:
@@ -42,7 +42,7 @@ jobs:
4242
--build-path .build-test-debug
4343
xcrun llvm-cov show \
4444
-instr-profile=.build-test-debug/debug/codecov/default.profdata \
45-
.build-test-debug/debug/OpenGraphPackageTests.xctest/Contents/MacOS/OpenGraphPackageTests \
45+
.build-test-debug/debug/OpenAttributeGraphPackageTests.xctest/Contents/MacOS/OpenAttributeGraphPackageTests \
4646
> coverage.txt
4747
- name: Build and run tests in release mode
4848
run: |

.github/workflows/ubuntu.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
swift_version: ["6.1.2"]
1616
runs-on: ubuntu-22.04
1717
env:
18-
OPENGRAPH_WERROR: 1
19-
OPENGRAPH_ATTRIBUTEGRAPH: 0
20-
OPENGRAPH_COMPATIBILITY_TEST: 0
18+
OPENATTRIBUTEGRAPH_WERROR: 1
19+
OPENATTRIBUTEGRAPH_ATTRIBUTEGRAPH: 0
20+
OPENATTRIBUTEGRAPH_COMPATIBILITY_TEST: 0
2121
container: swift:${{ matrix.swift_version }}-jammy
2222
steps:
2323
- uses: actions/checkout@v4
@@ -32,7 +32,7 @@ jobs:
3232
--build-path .build-test-debug
3333
llvm-cov show \
3434
-instr-profile=.build-test-debug/debug/codecov/default.profdata \
35-
.build-test-debug/debug/OpenGraphPackageTests.xctest \
35+
.build-test-debug/debug/OpenAttributeGraphPackageTests.xctest \
3636
> coverage.txt
3737
- name: Building and running tests in release mode
3838
run: |

.spi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ version: 1
22
builder:
33
configs:
44
- swift_version: 6.0
5-
documentation_targets: [OpenGraph]
5+
documentation_targets: [OpenAttributeGraph]

CREDITS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This project uses third-party libraries and code. Their licenses and acknowledge
66

77
## Compute
88

9-
OpenGraphCxx's Data, Graph, Vector and more is modified based on [Compute](https://github.com/jcmosc/Compute)'s implementations.
9+
OpenAttributeGraphCxx's Data, Graph, Vector and more is modified based on [Compute](https://github.com/jcmosc/Compute)'s implementations.
1010

1111
Compute is licensed as follows:
1212

0 commit comments

Comments
 (0)