Skip to content

Conversation

mabruzzo
Copy link
Collaborator

Overview

This lays the ground work for changing the suffix of C++ files from .C to .cpp

This may seem stupid, but it's annoyingly important

Context and Motivation

For context, the historic convention in Grackle project was to use .C as the suffix for C++ source files. Thus, when we began transcribing files, we used the .C suffix (even though it is a less common choice than .cpp)

However, it turns out that converting a file named <prefix>.c to <prefix>.C causes lots of issues performing Git operations when your machine has a case-insensitive file-system (common on macOS). This comes up in operations as simple as changing between 2 branches (Example: if you have initialize_chemistry_data.c in one branch you simply cannot change to a branch with initialize_chemistry_data.C)

Consequently, we will be transitioning to the .cpp suffix

For context, the historic convention in Grackle project was to use .C as
the suffix for C++ source files. Thus, when we began transcribing files,
we used the .C suffix (even though it is a less common choice than .cpp)

However, it turns out that converting a file named `<prefix>.c` to
`<prefix>.C` causes lots of issues performing Git operations when your
machine has a case-insensitive file-system (common on macOS). This comes
up in operations as simple as changing between 2 branches

Consequently, we will be transitioning to the .cpp suffix
@mabruzzo mabruzzo changed the title [newchem-cpp] change C++ source file suffix [newchem-cpp] support C++ files with .cpp suffix Aug 28, 2025
@mabruzzo mabruzzo moved this to Awaiting Review in New Chemistry and C++ Transcription Aug 29, 2025
@brittonsmith brittonsmith merged commit a93f6c9 into grackle-project:newchem-cpp Sep 24, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting Review to Done in New Chemistry and C++ Transcription Sep 24, 2025
@mabruzzo mabruzzo deleted the ncc-cpp_file_suffix branch September 26, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants