Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Warnings Modernize Use of auto #96

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
6 changes: 3 additions & 3 deletions tests/DataStructures/Graphs/TestGraph.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*

Check notice on line 1 in tests/DataStructures/Graphs/TestGraph.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (ubuntu-latest, Debug, gcc, g++)

Run clang-format on tests/DataStructures/Graphs/TestGraph.cpp

File tests/DataStructures/Graphs/TestGraph.cpp does not conform to Custom style guidelines. (lines 15, 18, 23, 28, 33, 38, 44, 49, 54, 59, 64, 70, 75, 80, 85, 90, 96, 102, 108, 109, 113, 114, 120, 121, 125, 126, 132, 133, 137, 145, 151, 158, 165, 167, 171, 172, 178, 188, 190, 200, 206, 212, 218, 224, 234, 240, 246, 252, 258, 268, 271, 279, 282, 293, 298, 312, 317, 334, 345, 359, 378, 383, 401, 404, 405, 406, 414, 416, 420, 421, 422, 433, 438, 439, 442, 443, 444, 455, 458, 463, 464, 467, 468, 482, 486, 488, 489, 490, 497, 502, 503, 504, 514, 519, 522, 523, 524, 534, 537, 542, 545, 546, 547, 558, 566, 571, 576, 581, 586, 592, 597, 602, 607, 613, 620, 632, 635, 643, 646, 654, 675, 680, 697, 700, 708, 711, 719, 722, 730, 750, 755, 771, 775, 785, 789, 799, 803, 813, 819, 824, 834, 837, 843, 848, 858, 862, 866, 875, 878, 887, 890, 899, 904, 908, 918, 921, 926, 930, 940, 945, 946, 947, 948, 949, 950, 953, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 983, 984, 986, 987, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1017, 1018, 1019, 1020, 1021, 1022, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1050, 1053, 1055, 1056, 1058, 1069, 1070, 1071, 1072, 1073, 1074, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1104, 1105, 1106, 1107, 1108, 1109, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1120, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1139, 1140, 1141, 1142, 1143, 1144, 1147, 1148, 1149, 1150, 1151, 1152, 1153, 1154, 1155, 1156, 1157, 1158, 1159, 1160, 1161, 1162, 1163, 1164, 1165, 1166, 1167, 1168, 1169, 1174, 1182, 1185, 1193, 1206, 1209, 1212, 1223, 1238, 1246, 1249, 1256, 1260, 1279, 1285, 1286, 1293, 1295, 1302, 1306, 1316, 1322, 1323, 1330, 1332, 1339, 1343, 1355, 1361, 1362, 1369, 1371, 1378, 1382, 1386, 1455, 1457, 1458, 1459, 1467, 1469, 1470, 1471, 1479, 1481, 1482, 1483, 1491, 1493, 1494, 1497, 1501, 1508, 1510, 1511, 1512, 1513, 1521, 1523, 1524, 1531, 1541, 1543, 1564, 1565, 1573, 1580, 1581, 1588, 1605, 1606, 1607, 1618, 1619, 1634, 1657, 1658, 1681, 1689, 1693, 1694, 1695, 1701, 1702, 1703, 1705, 1708, 1709, 1716, 1717, 1718, 1719, 1723, 1727, 1728, 1729, 1730, 1731, 1737, 1741, 1742, 1743, 1744, 1746, 1747, 1748, 1749, 1750, 1751, 1757, 1761, 1762, 1763, 1764, 1771, 1778, 1779, 1780, 1781, 1785, 1790, 1798, 1802, 1810, 1815, 1823, 1827, 1836, 1837, 1838, 1839, 1843, 1844, 1845, 1846, 1850, 1854, 1855, 1856, 1857, 1858, 1859, 1865, 1868, 1869, 1870, 1871, 1872, 1873, 1879, 1883, 1884, 1885, 1886, 1887, 1893, 1896, 1897, 1898, 1899, 1900, 1907, 1908, 1909, 1910, 1914, 1915, 1916, 1917, 1921, 1922, 1923, 1924, 1928, 1932, 1933, 1934, 1935, 1937, 1938, 1939, 1940, 1941, 1942, 1948, 1952, 1953, 1954, 1955, 1962, 1964, 1969, 1971, 1976, 1978, 1983, 1985, 1990, 1995, 2003, 2008, 2016, 2021, 2029, 2034, 2043, 2044, 2045, 2046, 2050, 2051, 2052, 2053, 2057, 2058, 2059, 2060, 2064, 2065, 2066, 2067, 2071, 2075, 2076, 2077, 2078, 2080, 2081, 2082, 2083, 2085, 2086, 2087, 2088, 2095, 2099, 2100, 2101, 2102, 2104, 2105, 2106, 2107, 2109, 2110, 2111, 2112, 2119, 2123, 2124, 2125, 2126, 2128, 2134, 2138, 2139, 2140, 2141, 2143, 2151, 2152, 2155, 2156, 2157, 2158, 2164, 2165, 2166, 2167, 2168, 2169, 2170, 2171, 2172, 2173, 2174, 2177, 2178, 2179, 2180, 2181, 2182, 2183, 2184, 2190, 2191, 2194, 2195, 2196, 2197, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2215, 2216, 2217, 2218, 2219, 2220, 2221, 2222, 2227, 2228, 2229, 2230, 2231, 2232, 2237, 2238, 2239, 2240, 2241, 2242)
* TestGraph.cpp
*
* Created on: Feb 12, 2019
Expand Down Expand Up @@ -1612,7 +1612,7 @@
}

// Add edge (0,1)
TEdgeProperties edgeProperties01 = TEdgeProperties(0);
auto edgeProperties01 = TEdgeProperties(0);
Types::edgeId source = 0;
Types::edgeId target = 1;
Types::edgeId id01 = this->graph_.AddEdge(source, target, edgeProperties01);
Expand All @@ -1635,7 +1635,7 @@


// Add edge (1,2)
TEdgeProperties edgeProperties12 = TEdgeProperties(1);
auto edgeProperties12 = TEdgeProperties(1);
source = 1;
target = 2;
Types::edgeId id12 = this->graph_.AddEdge(source, target, edgeProperties12);
Expand All @@ -1659,7 +1659,7 @@


// Add edge (0,3)
TEdgeProperties edgeProperties03 = TEdgeProperties(2);
auto edgeProperties03 = TEdgeProperties(2);
source = 0;
target = 3;
Types::edgeId id03 = this->graph_.AddEdge(source, target, edgeProperties03);
Expand Down
8 changes: 4 additions & 4 deletions tests/DataStructures/Graphs/TestPowerGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3223,7 +3223,7 @@ TEST_F ( TestPowerGridAcm2018MtsfFigure4a
TEST_F ( TestPowerGridAcm2018MtsfFigure4a
, AddLoadAtUsingVertexId )
{
Types::vertexId vertexId = static_cast<Types::vertexId>(2);
auto vertexId = static_cast<Types::vertexId>(2);
EXPECT_EQ ( 1, network_.NumberOfLoads() );
EXPECT_FALSE ( network_.HasLoadAt ( vertexId ) );
// Add load at vertex 2
Expand All @@ -3241,7 +3241,7 @@ TEST_F ( TestPowerGridAcm2018MtsfFigure4a
TEST_F ( TestPowerGridAcm2018MtsfFigure4b
, AddLoadAtUsingVertexId )
{
Types::vertexId vertexId = static_cast<Types::vertexId>(1);
auto vertexId = static_cast<Types::vertexId>(1);
EXPECT_EQ ( 1, network_.NumberOfLoads() );
EXPECT_FALSE ( network_.HasLoadAt ( vertexId ) );
// Add load at vertex 2
Expand Down Expand Up @@ -4774,7 +4774,7 @@ TEST_F ( TestNetworkEmpty
<< assertionString;
}

Types::generatorId generatorId = static_cast<Types::generatorId>(0);
auto generatorId = static_cast<Types::generatorId>(0);
assertionString = buildAssertionString ( "PowerGrid.hpp"
, "PowerGrid"
, "AddGeneratorRealPowerSnapshotAt"
Expand Down Expand Up @@ -4966,7 +4966,7 @@ TEST_F ( TestNetworkEmpty
<< assertionString;
}

Types::loadId loadId = static_cast<Types::loadId>(0);
auto loadId = static_cast<Types::loadId>(0);
assertionString = buildAssertionString ( "PowerGrid.hpp"
, "PowerGrid"
, "AddLoadSnapshotAt"
Expand Down
Loading