[CMake] Emacs cmake-mode indentation flaw
Chuck Atkins
chuck.atkins at kitware.com
Fri Jun 2 15:02:17 EDT 2017
Hi Frank,
It's really a matter of personal style. There's a multitude of different
ways that people format multi-line function calls so no one way is right or
wrong. For instance:
foo(
bar1
bar2)
foo(
bar1
bar2
)
foo(
bar1
bar2
)
foo(bar1
bar2)
foo(bar1
bar2
)
foo(bar1
bar2
)
All of which have their justifications.
----------
Chuck Atkins
Staff R&D Engineer, Scientific Computing
Kitware, Inc.
On Fri, Jun 2, 2017 at 1:57 AM, Frank Roland <theldoria at hotmail.com> wrote:
> There is probably a faulty indentation implemented in cmake-mode for emacs
> regarding closing parens.
>
> If you have the following source code:
>
> foo(
> bar
> )
>
>
> I indents the closing parenwould expect it to be indented like this:
>
> foo(
> bar
> )
>
>
> I would expect the single closing paren to be not indendet.
>
>
> Can anybody confirm that this is an issue worth reporting?
>
>
> I could also create a pull request for a fix if there is interest in doing
> so.
>
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> 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/
> opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170602/5f2f07ed/attachment.html>
More information about the CMake
mailing list