Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
add parsing of ini files
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Aug 2, 2021
1 parent d8beadd commit 9a6615e
Show file tree
Hide file tree
Showing 4 changed files with 796 additions and 716 deletions.
20 changes: 20 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
AccessModifierOffset: '-4'
AllowShortBlocksOnASingleLine: 'false'
AllowShortCaseLabelsOnASingleLine: 'false'
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: 'false'
AllowShortLoopsOnASingleLine: 'false'
AlwaysBreakTemplateDeclarations: 'true'
BreakBeforeBraces: Allman
ColumnLimit: '160'
IndentCaseLabels: 'true'
IndentWidth: '4'
Language: Cpp
MaxEmptyLinesToKeep: '3'
PenaltyBreakComment: '100000'
PointerAlignment: Left
Standard: Cpp11
UseTab: Never

...
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# (__) \__/(__) \____/

# This file is part of popl (program options parser lib)
# Copyright (C) 2015-2018 Johannes Pohl
# Copyright (C) 2015-2019 Johannes Pohl

# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
Expand All @@ -18,7 +18,7 @@ if (CMAKE_VERSION VERSION_LESS "3.1")
else ()
set (CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)
set(PROJECT_VERSION "1.2.0")
set(PROJECT_VERSION "1.2.90")
endif ()


Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ BIN = popl_example

all: $(TARGET)

reformat:
clang-format -i include/popl.hpp

$(TARGET): $(OBJ)
$(CXX) $(CXXFLAGS) -o $(BIN) $(OBJ) $(LDFLAGS)
strip $(BIN)
Expand Down
Loading

0 comments on commit 9a6615e

Please sign in to comment.