chore: enforce InsertNewlineAtEOF in clang-format (#4343)

* style: insert newline at eof

* style: use `InsertNewlineAtEOF` in `clang-format`

* fix: use `clang-format-16`

* chore: update clang-format-lint-action to v0.16.2

---------

Co-authored-by: Debasish Biswas <debasishbsws.dev@gmail.com>
This commit is contained in:
Piotr Idzik
2023-09-01 06:10:46 +02:00
committed by GitHub
parent 78ca465b1e
commit f010a47608
42 changed files with 43 additions and 42 deletions

View File

@ -98,4 +98,4 @@ public class AllPathsFromSourceToTarget {
return nm;
// returns all possible paths from source to destination
}
}
}

View File

@ -26,4 +26,4 @@ public class ArrayCombination {
}
return Combination.combination(arr, length);
}
}
}

View File

@ -25,4 +25,4 @@ public class IndexOfRightMostSetBit {
return index;
}
}
}

View File

@ -9,4 +9,4 @@ public class IsEven {
public static boolean isEven(int number) {
return (number & 1) == 0;
}
}
}

View File

@ -14,4 +14,4 @@ public class NonRepeatingNumberFinder {
}
return result;
}
}
}

View File

@ -10,4 +10,4 @@ public class NumbersDifferentSigns {
public static boolean differentSigns(int num1, int num2) {
return (num1 ^ num2) < 0;
}
}
}

View File

@ -17,4 +17,4 @@ public class ReverseBits {
}
return result;
}
}
}

View File

@ -111,4 +111,4 @@ public class LeftistHeap {
lst.add(n.element);
in_order_aux(n.right, lst);
}
}
}

View File

@ -109,4 +109,4 @@ public class Fibonacci {
int nthTerm = (int) ((Math.pow(phi, n) - Math.pow(-phi, -n)) / squareRootOf5);
return nthTerm;
}
}
}

View File

@ -126,4 +126,4 @@ public class OptimalJobScheduling {
public int getCost(int process, int machine) {
return Cost[process][machine];
}
}
}

View File

@ -17,4 +17,4 @@ public class PowerUsingRecursion {
// Recurse with a smaller exponent and multiply with base
return base * power(base, exponent - 1);
}
}
}

View File

@ -51,4 +51,4 @@ public class PreemptivePriorityScheduling {
return ganttChart;
}
}
}

View File

@ -103,4 +103,4 @@ public class DualPivotQuickSort implements SortAlgorithm {
/*
* References: https://www.geeksforgeeks.org/dual-pivot-quicksort/
*/
}
}

View File

@ -58,4 +58,4 @@ public class StringCompression {
}
return res;
}
}
}