Skip to content

Commit

Permalink
Apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed Dec 2, 2024
1 parent 8469107 commit b52119b
Show file tree
Hide file tree
Showing 10 changed files with 1,176 additions and 1,080 deletions.
64 changes: 64 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
Language: Cpp
# BasedOnStyle: JUCE (Custom)
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: Align
AlignTrailingComments: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BreakAfterJavaFieldAnnotations: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList : BeforeColon
BreakStringLiterals: false
ColumnLimit: 0
# ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
IndentCaseLabels: true
IndentWidth: 4
IndentWrappedFunctionNames: true
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
NamespaceIndentation: Inner
PackConstructorInitializers: CurrentLine
PointerAlignment: Left
ReflowComments: false
SortIncludes: true
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: true
SpaceBeforeParens: NonEmptyParentheses
SpaceInEmptyParentheses: false
SpaceBeforeInheritanceColon: true
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: true
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: "c++17"
TabWidth: 4
UseTab: Never
---

50 changes: 25 additions & 25 deletions Source/OpenEphysLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,50 +21,50 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <PluginInfo.h>
#include "PulsePalOutput.h"
#include <PluginInfo.h>
#include <string>
#ifdef _WIN32
#include <Windows.h>
#define EXPORT __declspec(dllexport)
#define EXPORT __declspec (dllexport)
#else
#define EXPORT __attribute__((visibility("default")))
#define EXPORT __attribute__ ((visibility ("default")))
#endif

using namespace Plugin;
#define NUM_PLUGINS 1

extern "C" EXPORT void getLibInfo(Plugin::LibraryInfo* info)
extern "C" EXPORT void getLibInfo (Plugin::LibraryInfo* info)
{
info->apiVersion = PLUGIN_API_VER;
info->apiVersion = PLUGIN_API_VER;
info->name = "Pulse Pal Output";
info->libVersion = "0.2.0";
info->numPlugins = NUM_PLUGINS;
info->libVersion = "0.2.0";
info->numPlugins = NUM_PLUGINS;
}

extern "C" EXPORT int getPluginInfo(int index, Plugin::PluginInfo* info)
extern "C" EXPORT int getPluginInfo (int index, Plugin::PluginInfo* info)
{
switch (index)
{
case 0:
info->type = Plugin::Type::PROCESSOR;
info->processor.name = "Pulse Pal";
info->processor.type = Plugin::Processor::SINK;
info->processor.creator = &(Plugin::createProcessor<PulsePalOutput>);
break;
default:
return -1;
break;
}
return 0;
switch (index)
{
case 0:
info->type = Plugin::Type::PROCESSOR;
info->processor.name = "Pulse Pal";
info->processor.type = Plugin::Processor::SINK;
info->processor.creator = &(Plugin::createProcessor<PulsePalOutput>);
break;
default:
return -1;
break;
}
return 0;
}

#ifdef WIN32
BOOL WINAPI DllMain(IN HINSTANCE hDllHandle,
IN DWORD nReason,
IN LPVOID Reserved)
BOOL WINAPI DllMain (IN HINSTANCE hDllHandle,
IN DWORD nReason,
IN LPVOID Reserved)
{
return TRUE;
return TRUE;
}

#endif
Loading

0 comments on commit b52119b

Please sign in to comment.