The method canFileBeReincluded is supposed to return true if including it a second time is supposed to have an effect. For example, if we were #including some data that would go between a "{" and a "}", that would be valid to include multiple times. The method looks for a standard include guard, and returns false, indicating that re-including the file won't accomplish anything. This change adds looking for #pragma once as the first line in the file, in addition for looking for an include guard.
The method canFileBeReincluded is supposed to return true if including it a second time is supposed to have an effect. For example, if we were #including some data that would go between a "{" and a "}", that would be valid to include multiple times. The method looks for a standard include guard, and returns false, indicating that re-including the file won't accomplish anything. This change adds looking for #pragma once as the first line in the file, in addition for looking for an include guard.