Page MenuHome

Cleanup: More readable Cycles OSL BSDF definition
ClosedPublic

Authored by Sergey Sharybin (sergey) on Oct 19 2021, 11:49 AM.

Details

Summary

A Clang-Format configuration to make the closure definition block to
be properly recognized as such.

Also small wrapper macro to avoid comma in the actual definition code
which was causing unwanted indentation of parameters definition.

Requires Clang-Format 7 or newer. The version we ship in the libs is
12, so for recommended development setup it should all be good.

Diff Detail

Repository
rB Blender
Branch
cycles_osl_clang_format (branched from master)
Build Status
Buildable 17989
Build 17989: arc lint + arc unit

Event Timeline

Sergey Sharybin (sergey) requested review of this revision.Oct 19 2021, 11:49 AM
Sergey Sharybin (sergey) created this revision.

Some part of the patch got missing in the first submisison.

This revision is now accepted and ready to land.Oct 19 2021, 11:56 AM