[cmake-developers] Module macros/function names with single leading underscore
jeanmichael.celerier at gmail.com
Wed Aug 2 19:13:33 EDT 2017
> It's probably going to be an uncommon situation
A lot are namespaced but skimming a bit through the result, there is also
stuff like *_*INTERNAL_PARSE_FLAGS_ARGS, *_*fixup_target, *_*LSB_RELEASE,
which may be at risk for the problem you're exposing.
On Tue, Aug 1, 2017 at 10:42 PM, Brad King <brad.king at kitware.com> wrote:
> On 07/23/2017 10:20 AM, Craig Scott wrote:
> > maybe it's worth considering renaming these single underscore
> > internal macros and functions?
> Projects that rely on the undocumented feature depend on being
> able to call the original function by prepending the single
> underscore. We can't change the renaming convention without
> breaking them. Even a policy for this may be tricky due to
> function definitions being visible globally and therefore
> skipping across policy scopes.
> The infinite recursion case you mentioned has long been known
> and may have a few issue tracker entries. We haven't really
> dealt with it because the feature is undocumented and meant
> for debugging. If anyone can come up with a compatible fix
> (e.g. explicit diagnostic) that would be great.
> Side note: One day I'd like to see a policy that changes
> function/macro definition scopes to be directory-based.
> I haven't thought about the correctness or side-effects of
> that in detail though.
> Powered by www.kitware.com
> Please keep messages on-topic and check the CMake FAQ at:
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
> Visit other Kitware open-source projects at http://www.kitware.com/
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cmake-developers