Skip to content

Commit

Permalink
DEV: first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Jevnik committed Apr 26, 2018
0 parents commit 120e2d9
Show file tree
Hide file tree
Showing 20 changed files with 3,212 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
BasedOnStyle: llvm

BreakBeforeBraces: Custom
BraceWrapping:
BeforeElse: true
BeforeCatch: true

AccessModifierOffset: -4
AlignEscapedNewlines: Right
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AlwaysBreakTemplateDeclarations: true
BinPackArguments: false
BinPackParameters: false
BreakConstructorInitializers: BeforeColon
ColumnLimit: 90
ConstructorInitializerAllOnOneLineOrOnePerLine: true
IndentWidth: 4
NamespaceIndentation: None
PointerAlignment: Left
SortIncludes: true
SortUsingDeclarations: true
SpacesBeforeTrailingComments: 2
SpacesInSquareBrackets: false
SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: false

PenaltyBreakAssignment: 60
PenaltyBreakBeforeFirstCallParameter: 175
24 changes: 24 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
((c-mode . ((mode . c++)
(eval . (setq flycheck-gcc-include-path
(list
"../"
"../include"
"../../include"
"../../../include"
(expand-file-name "~/.virtualenvs/fundamentals/include/python3.6m")
(expand-file-name "~/.virtualenvs/fundamentals/lib/python3.6/site-packages/numpy/core/include")
"/usr/include/python3.6m")))
(eval . (set-fill-column 90))
(eval . (c-set-offset 'innamespace 0))))
(c++-mode . ((eval . (setq flycheck-gcc-include-path
(list
"../"
"../include"
"../../include"
"../../../include"
(expand-file-name "~/.virtualenvs/fundamentals/include/python3.6m")
(expand-file-name "~/.virtualenvs/fundamentals/lib/python3.6/site-packages/numpy/core/include")
"/usr/include/python3.6m")))
(eval . (c-set-offset 'innamespace 0))
(eval . (set-fill-column 90))
(flycheck-gcc-language-standard . "gnu++17"))))
46 changes: 46 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
*~

# Mac OSX folder properties
.DS_Store


# test runner built with `make test`
tests/run
bench/run

# doc artifacts
html/*
docs/doxygen-build/*
docs/build/*

# scratch file for testing linking
scratch.cc
a.out

# compiled artifacts
*.o
*.a
*.so*

# gcc header dependencies
*.d

# coverage artifacts
*.gcov
*.gcno
*.gcda

# etags
TAGS

# Local makefile overrides.
Makefile.local

.gdb_history

*.pyc

# make helper
.compiler_flags

testbin
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
``libpy``
=========

Utilities for writing C++ extension modules for CPython.g
Loading

0 comments on commit 120e2d9

Please sign in to comment.