ClangFormat: apply to source, most of intern

Apply clang format as proposed in T53211.

For details on usage and instructions for migrating branches
without conflicts, see:

https://wiki.blender.org/wiki/Tools/ClangFormat
This commit is contained in:
2019-04-17 06:17:24 +02:00
parent b3dabc200a
commit e12c08e8d1
4481 changed files with 1230080 additions and 1155401 deletions

View File

@@ -26,56 +26,55 @@
#include "StyleModule.h"
#ifdef WITH_CXX_GUARDEDALLOC
#include "MEM_guardedalloc.h"
# include "MEM_guardedalloc.h"
#endif
namespace Freestyle {
class Module
{
public:
static void setAlwaysRefresh(bool b = true)
{
getCurrentStyleModule()->setAlwaysRefresh(b);
}
class Module {
public:
static void setAlwaysRefresh(bool b = true)
{
getCurrentStyleModule()->setAlwaysRefresh(b);
}
static void setCausal(bool b = true)
{
getCurrentStyleModule()->setCausal(b);
}
static void setCausal(bool b = true)
{
getCurrentStyleModule()->setCausal(b);
}
static void setDrawable(bool b = true)
{
getCurrentStyleModule()->setDrawable(b);
}
static void setDrawable(bool b = true)
{
getCurrentStyleModule()->setDrawable(b);
}
static bool getAlwaysRefresh()
{
return getCurrentStyleModule()->getAlwaysRefresh();
}
static bool getAlwaysRefresh()
{
return getCurrentStyleModule()->getAlwaysRefresh();
}
static bool getCausal()
{
return getCurrentStyleModule()->getCausal();
}
static bool getCausal()
{
return getCurrentStyleModule()->getCausal();
}
static bool getDrawable()
{
return getCurrentStyleModule()->getDrawable();
}
static bool getDrawable()
{
return getCurrentStyleModule()->getDrawable();
}
private:
static StyleModule *getCurrentStyleModule()
{
Canvas *canvas = Canvas::getInstance();
return canvas->getCurrentStyleModule();
}
private:
static StyleModule *getCurrentStyleModule()
{
Canvas *canvas = Canvas::getInstance();
return canvas->getCurrentStyleModule();
}
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Module")
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:Module")
#endif
};
} /* namespace Freestyle */
#endif // __FREESTYLE_MODULE_H__
#endif // __FREESTYLE_MODULE_H__