Skip to content

Commit b52119b

Browse files
committed
Apply formatting
1 parent 8469107 commit b52119b

10 files changed

+1176
-1080
lines changed

.clang-format

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: JUCE (Custom)
4+
AccessModifierOffset: -4
5+
AlignAfterOpenBracket: Align
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveDeclarations: false
8+
AlignEscapedNewlines: Left
9+
AlignOperands: Align
10+
AlignTrailingComments: false
11+
AllowAllParametersOfDeclarationOnNextLine: false
12+
AllowShortBlocksOnASingleLine: Never
13+
AllowShortCaseLabelsOnASingleLine: false
14+
AllowShortFunctionsOnASingleLine: All
15+
AllowShortIfStatementsOnASingleLine: Never
16+
AllowShortLoopsOnASingleLine: false
17+
AlwaysBreakAfterDefinitionReturnType: None
18+
AlwaysBreakAfterReturnType: None
19+
AlwaysBreakBeforeMultilineStrings: false
20+
AlwaysBreakTemplateDeclarations: Yes
21+
BinPackArguments: false
22+
BinPackParameters: false
23+
BreakAfterJavaFieldAnnotations: false
24+
BreakBeforeBinaryOperators: NonAssignment
25+
BreakBeforeBraces: Allman
26+
BreakBeforeTernaryOperators: true
27+
BreakConstructorInitializers: BeforeColon
28+
BreakInheritanceList : BeforeColon
29+
BreakStringLiterals: false
30+
ColumnLimit: 0
31+
# ConstructorInitializerAllOnOneLineOrOnePerLine: true
32+
ConstructorInitializerIndentWidth: 4
33+
ContinuationIndentWidth: 4
34+
Cpp11BracedListStyle: false
35+
DerivePointerAlignment: false
36+
DisableFormat: false
37+
ExperimentalAutoDetectBinPacking: false
38+
IndentCaseLabels: true
39+
IndentWidth: 4
40+
IndentWrappedFunctionNames: true
41+
KeepEmptyLinesAtTheStartOfBlocks: false
42+
MaxEmptyLinesToKeep: 1
43+
NamespaceIndentation: Inner
44+
PackConstructorInitializers: CurrentLine
45+
PointerAlignment: Left
46+
ReflowComments: false
47+
SortIncludes: true
48+
SpaceAfterCStyleCast: true
49+
SpaceAfterLogicalNot: true
50+
SpaceBeforeAssignmentOperators: true
51+
SpaceBeforeCpp11BracedList: true
52+
SpaceBeforeParens: NonEmptyParentheses
53+
SpaceInEmptyParentheses: false
54+
SpaceBeforeInheritanceColon: true
55+
SpacesInAngles: false
56+
SpacesInCStyleCastParentheses: false
57+
SpacesInContainerLiterals: true
58+
SpacesInParentheses: false
59+
SpacesInSquareBrackets: false
60+
Standard: "c++17"
61+
TabWidth: 4
62+
UseTab: Never
63+
---
64+

Source/OpenEphysLib.cpp

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,50 +21,50 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2121
2222
*/
2323

24-
#include <PluginInfo.h>
2524
#include "PulsePalOutput.h"
25+
#include <PluginInfo.h>
2626
#include <string>
2727
#ifdef _WIN32
2828
#include <Windows.h>
29-
#define EXPORT __declspec(dllexport)
29+
#define EXPORT __declspec (dllexport)
3030
#else
31-
#define EXPORT __attribute__((visibility("default")))
31+
#define EXPORT __attribute__ ((visibility ("default")))
3232
#endif
3333

3434
using namespace Plugin;
3535
#define NUM_PLUGINS 1
3636

37-
extern "C" EXPORT void getLibInfo(Plugin::LibraryInfo* info)
37+
extern "C" EXPORT void getLibInfo (Plugin::LibraryInfo* info)
3838
{
39-
info->apiVersion = PLUGIN_API_VER;
39+
info->apiVersion = PLUGIN_API_VER;
4040
info->name = "Pulse Pal Output";
41-
info->libVersion = "0.2.0";
42-
info->numPlugins = NUM_PLUGINS;
41+
info->libVersion = "0.2.0";
42+
info->numPlugins = NUM_PLUGINS;
4343
}
4444

45-
extern "C" EXPORT int getPluginInfo(int index, Plugin::PluginInfo* info)
45+
extern "C" EXPORT int getPluginInfo (int index, Plugin::PluginInfo* info)
4646
{
47-
switch (index)
48-
{
49-
case 0:
50-
info->type = Plugin::Type::PROCESSOR;
51-
info->processor.name = "Pulse Pal";
52-
info->processor.type = Plugin::Processor::SINK;
53-
info->processor.creator = &(Plugin::createProcessor<PulsePalOutput>);
54-
break;
55-
default:
56-
return -1;
57-
break;
58-
}
59-
return 0;
47+
switch (index)
48+
{
49+
case 0:
50+
info->type = Plugin::Type::PROCESSOR;
51+
info->processor.name = "Pulse Pal";
52+
info->processor.type = Plugin::Processor::SINK;
53+
info->processor.creator = &(Plugin::createProcessor<PulsePalOutput>);
54+
break;
55+
default:
56+
return -1;
57+
break;
58+
}
59+
return 0;
6060
}
6161

6262
#ifdef WIN32
63-
BOOL WINAPI DllMain(IN HINSTANCE hDllHandle,
64-
IN DWORD nReason,
65-
IN LPVOID Reserved)
63+
BOOL WINAPI DllMain (IN HINSTANCE hDllHandle,
64+
IN DWORD nReason,
65+
IN LPVOID Reserved)
6666
{
67-
return TRUE;
67+
return TRUE;
6868
}
6969

7070
#endif

0 commit comments

Comments
 (0)