RFR: 8311227: Add .editorconfig so IDEs would pick up the common settings automatically: indent, trim trailing whitespace
Erik Joelsson
erikj at openjdk.org
Mon Mar 10 13:01:59 UTC 2025
On Mon, 10 Mar 2025 11:03:30 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> > As for the coding style (indentation), I followed the official style guides to define this.
> > For C++ we have https://github.com/openjdk/jdk/blob/master/doc/hotspot-style.md#whitespace
> > which states:
> > > Indentation levels are two columns.
>
> The HotSpot Style Guide applies to HotSpot native code. It doesn't apply to native code in the rest of the JDK. (For one thing, HotSpot is (almost?) entirely C++, while much of the native code in the rest of the JDK is C. And even a casual perusal will find large swaths of HSG violations in non-HotSpot code.)
We could consider adding a separate .editorconfig file in `src/hotspot` with these C++ rules.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23693#issuecomment-2710518183
More information about the build-dev
mailing list