Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Checks: >

WarningsAsErrors: '*'

HeaderFilterRegex: '(include/.*|source/.*)'
HeaderFilterRegex: '(include/.*|src/.*)'

CheckOptions:
# Private member variables
Expand All @@ -12,9 +12,15 @@ CheckOptions:
- key: readability-identifier-naming.PrivateMemberCase
value: camelBack

# Member function (non-static, non-const, non-virtual)
# Private member methods
- key: readability-identifier-naming.PrivateMethodPrefix
value: _
- key: readability-identifier-naming.PrivateMethodCase
value: camelBack

# Public/Protected member methods
- key: readability-identifier-naming.MethodCase
value: CamelCase
value: camelBack

# Class names
- key: readability-identifier-naming.ClassCase
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ jobs:
clang-tidy --version
$files = Get-ChildItem -Recurse -Path src -Include *.cpp,*.cc,*.cxx -File
$failed = $false
# These source/.* files would be checked using .clang-tidy maintained at projectroot
foreach ($file in $files) {
Write-Host "Checking $($file.FullName)"
clang-tidy -p build "$($file.FullName)" --warnings-as-errors=*
clang-tidy -p build --header-filter=".*" "$($file.FullName)" --warnings-as-errors=*
if ($LASTEXITCODE -ne 0) { $failed = $true }
}
if ($failed) { Write-Error "Clang-tidy failed."; exit 1 }
Expand Down
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required (VERSION 3.10)
project ("datastructures-algorithms")

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

Expand All @@ -19,9 +19,6 @@ if(CLANG_TIDY_EXE)
)
endif()

include_directories(${CMAKE_SOURCE_DIR}/include)

add_subdirectory(include)
add_subdirectory(src)

cmake_policy(SET CMP0135 NEW)
Expand Down
49 changes: 0 additions & 49 deletions include/0002_Tree/0001_BinarySearchTree.h

This file was deleted.

43 changes: 0 additions & 43 deletions include/0003_Graph/0006_EulerianPathAndCircuit.h

This file was deleted.

24 changes: 0 additions & 24 deletions include/0003_Graph/0013_AllPairsShortestPathsFloydWarshall.h

This file was deleted.

23 changes: 0 additions & 23 deletions include/0005_DynamicProgramming/0001_FibonacciNumber.h

This file was deleted.

23 changes: 0 additions & 23 deletions include/0005_DynamicProgramming/0002_TribonacciNumber.h

This file was deleted.

24 changes: 0 additions & 24 deletions include/0005_DynamicProgramming/0003_ClimbingStairs.h

This file was deleted.

25 changes: 0 additions & 25 deletions include/0005_DynamicProgramming/0004_MinimumCostClimbingStairs.h

This file was deleted.

25 changes: 0 additions & 25 deletions include/0005_DynamicProgramming/0005_HouseRobber1.h

This file was deleted.

28 changes: 0 additions & 28 deletions include/0005_DynamicProgramming/0006_HouseRobber2.h

This file was deleted.

32 changes: 0 additions & 32 deletions include/0005_DynamicProgramming/0007_DecodeWays.h

This file was deleted.

Loading
Loading