Skip to content

(sheldon): crash when trying to reformat a header not in an include/ folder

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 on XXXX\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

Edited by Flavien BRIDAULT

Merge request reports