(sheldon): crash when trying to reformat a header not in an include/ folder
requested to merge 15-sheldon-crash-when-trying-to-reformat-a-header-not-in-an-include-folder into dev
What does this MR do?
Sheldon no longer looks for the old expected header guard, but only checks for a very generic regex. This way we avoid relying on the file path to guess the expected header guard, and this implicitly solves the crash got when this file path does not include the string include
.
How to test it?
- Run
sheldon -f
onXXXX\Utilities\breathing\bulletVolumeMeshConverter\src\helpers\helpers.hpp
- Run
sheldon -f
on a header with a#pragma once
- Run
sheldon -f
on a header with a header guard and check that it is replaced by a#pragma once
Associated Issues/Merge Requests
- Issues
- Closes #15 (closed)
Edited by Flavien BRIDAULT