Skip to content

Commit

Permalink
Clang-format for new format.
Browse files Browse the repository at this point in the history
  • Loading branch information
joka921 committed Jul 16, 2021
1 parent 5522fbb commit 594baee
Show file tree
Hide file tree
Showing 99 changed files with 225 additions and 71 deletions.
1 change: 1 addition & 0 deletions src/MetaDataConverterMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
//
#include <array>
#include <iostream>

#include "./global/Constants.h"
#include "./index/MetaDataConverter.h"
#include "./util/File.h"
Expand Down
1 change: 1 addition & 0 deletions src/PrefixHeuristicEvaluatorMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Author: Johannes Kalmbach<joka921> (johannes.kalmbach@gmail.com)

#include <iostream>

#include "./global/Constants.h"
#include "./index/PrefixHeuristic.h"

Expand Down
2 changes: 2 additions & 0 deletions src/TurtleParserMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
// Author: Johannes Kalmbach(joka921) <johannes.kalmbach@gmail.com>

#include <getopt.h>

#include <array>
#include <fstream>
#include <iostream>
#include <string>

#include "./parser/NTriplesParser.h"
#include "./parser/TsvParser.h"
#include "./parser/TurtleParser.h"
Expand Down
1 change: 1 addition & 0 deletions src/engine/Comparators.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <utility>
#include <vector>

#include "IdTable.h"

using std::pair;
Expand Down
1 change: 1 addition & 0 deletions src/engine/CountAvailablePredicates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Author: Florian Kramer (florian.kramer@neptun.uni-freiburg.de)

#include "CountAvailablePredicates.h"

#include "CallFixedSize.h"

// _____________________________________________________________________________
Expand Down
2 changes: 2 additions & 0 deletions src/engine/Distinct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "./Distinct.h"

#include <sstream>

#include "./QueryExecutionTree.h"
#include "CallFixedSize.h"

Expand Down
2 changes: 2 additions & 0 deletions src/engine/Filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "Filter.h"

#include <algorithm>
#include <optional>
#include <regex>
#include <sstream>

#include "CallFixedSize.h"
#include "QueryExecutionTree.h"

Expand Down
1 change: 1 addition & 0 deletions src/engine/Filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <list>
#include <utility>
#include <vector>

#include "../parser/ParsedQuery.h"
#include "./Operation.h"
#include "./QueryExecutionTree.h"
Expand Down
1 change: 1 addition & 0 deletions src/engine/HasPredicateScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Author: Florian Kramer (florian.kramer@mail.uni-freiburg.de)

#include "HasPredicateScan.h"

#include "CallFixedSize.h"

template <typename A, typename R>
Expand Down
1 change: 1 addition & 0 deletions src/engine/IndexScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "./IndexScan.h"

#include <sstream>
#include <string>

Expand Down
1 change: 1 addition & 0 deletions src/engine/IndexScan.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#pragma once

#include <string>

#include "../util/Conversions.h"
#include "./Operation.h"

Expand Down
2 changes: 2 additions & 0 deletions src/engine/Join.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "./Join.h"

#include <functional>
#include <sstream>
#include <type_traits>
#include <unordered_set>

#include "./QueryExecutionTree.h"
#include "CallFixedSize.h"

Expand Down
1 change: 1 addition & 0 deletions src/engine/Join.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#pragma once

#include <list>

#include "../util/HashMap.h"
#include "../util/HashSet.h"
#include "./IndexScan.h"
Expand Down
1 change: 1 addition & 0 deletions src/engine/MultiColumnJoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Author: Florian Kramer (florian.kramer@netpun.uni-freiburg.de)

#include "MultiColumnJoin.h"

#include "CallFixedSize.h"

using std::string;
Expand Down
1 change: 1 addition & 0 deletions src/engine/Operation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Author: Johannes Kalmbach (johannes.kalmbach@gmail.com)

#include "Operation.h"

#include "QueryExecutionTree.h"

template <typename F>
Expand Down
1 change: 1 addition & 0 deletions src/engine/OptionalJoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// Florian Kramer (florian.kramer@netpun.uni-freiburg.de)

#include "OptionalJoin.h"

#include "CallFixedSize.h"

using std::string;
Expand Down
3 changes: 2 additions & 1 deletion src/engine/OrderBy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
// Chair of Algorithms and Data Structures.
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "OrderBy.h"

#include <sstream>

#include "CallFixedSize.h"
#include "Comparators.h"
#include "OrderBy.h"
#include "QueryExecutionTree.h"

using std::string;
Expand Down
2 changes: 2 additions & 0 deletions src/engine/QueryExecutionTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "./QueryExecutionTree.h"

#include <algorithm>
#include <sstream>
#include <string>

#include "./Distinct.h"
#include "./Filter.h"
#include "./IndexScan.h"
Expand Down
1 change: 1 addition & 0 deletions src/engine/QueryExecutionTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <string>
#include <unordered_map>
#include <unordered_set>

#include "../util/Conversions.h"
#include "../util/HashSet.h"
#include "./Operation.h"
Expand Down
1 change: 1 addition & 0 deletions src/engine/QueryPlanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <set>
#include <vector>

#include "../parser/ParsedQuery.h"
#include "QueryExecutionTree.h"

Expand Down
2 changes: 2 additions & 0 deletions src/engine/QueryPlanningCostFactors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "./QueryPlanningCostFactors.h"

#include <fstream>

#include "../util/Exception.h"
#include "../util/Log.h"
#include "../util/StringUtils.h"
Expand Down
1 change: 1 addition & 0 deletions src/engine/QueryPlanningCostFactors.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#pragma once

#include <string>

#include "../util/HashMap.h"

using std::string;
Expand Down
1 change: 1 addition & 0 deletions src/engine/ResultTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "./ResultTable.h"

#include <cassert>

// _____________________________________________________________________________
Expand Down
1 change: 1 addition & 0 deletions src/engine/ResultTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <mutex>
#include <optional>
#include <vector>

#include "../global/Id.h"
#include "../util/Exception.h"
#include "IdTable.h"
Expand Down
3 changes: 2 additions & 1 deletion src/engine/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Chair of Algorithms and Data Structures.
// Author: Björn Buchhold <buchholb>

#include "./Server.h"

#include <algorithm>
#include <cstring>
#include <nlohmann/json.hpp>
Expand All @@ -13,7 +15,6 @@
#include "../parser/ParseException.h"
#include "../util/Log.h"
#include "../util/StringUtils.h"
#include "./Server.h"
#include "QueryPlanner.h"

// _____________________________________________________________________________
Expand Down
2 changes: 2 additions & 0 deletions src/engine/Sort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "./Sort.h"

#include <sstream>

#include "CallFixedSize.h"
#include "QueryExecutionTree.h"

Expand Down
4 changes: 2 additions & 2 deletions src/engine/SortPerformanceEstimator.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class SortPerformanceEstimator {

// Compute and return an Estimate for how long sorting an IdTable with the
// specified number of rows and columns takes.
double estimatedSortTimeInSeconds(size_t numRows, size_t numCols) const
noexcept;
double estimatedSortTimeInSeconds(size_t numRows,
size_t numCols) const noexcept;

// Create an uninitialized SortPerformanceEstimator, which is cheap. Before
// using it, computeEstimatesExpensively has to be called
Expand Down
3 changes: 2 additions & 1 deletion src/engine/TextOperationWithFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
// Chair of Algorithms and Data Structures.
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "TextOperationWithFilter.h"

#include <sstream>

#include "./QueryExecutionTree.h"
#include "TextOperationWithFilter.h"

using std::string;

Expand Down
2 changes: 2 additions & 0 deletions src/engine/TextOperationWithoutFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "TextOperationWithoutFilter.h"

#include <sstream>

#include "./QueryExecutionTree.h"

using std::string;
Expand Down
1 change: 1 addition & 0 deletions src/engine/TwoColumnJoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "TwoColumnJoin.h"

#include "CallFixedSize.h"

using std::string;
Expand Down
1 change: 1 addition & 0 deletions src/engine/Union.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Chair of Algorithms and Data Structures.
// Author: Florian Kramer (florian.kramer@mail.uni-freiburg.de)
#include "Union.h"

#include "CallFixedSize.h"

const size_t Union::NO_COLUMN = std::numeric_limits<size_t>::max();
Expand Down
1 change: 1 addition & 0 deletions src/engine/Values.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "Values.h"

#include <sstream>

#include "../util/Exception.h"
#include "../util/HashSet.h"
#include "CallFixedSize.h"
Expand Down
1 change: 1 addition & 0 deletions src/global/Pattern.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <stdexcept>
#include <string>
#include <vector>

#include "../util/File.h"
#include "Id.h"

Expand Down
1 change: 1 addition & 0 deletions src/index/CreatePatternsMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Chair of Algorithms and Data Structures.
// Author: Florian Kramer (florian.kramer@neptun.uni-freiburg.de)
#include <getopt.h>

#include <cstdio>
#include <cstdlib>
#include <iomanip>
Expand Down
2 changes: 2 additions & 0 deletions src/index/DocsDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "DocsDB.h"

#include <algorithm>

#include "../global/Constants.h"

// _____________________________________________________________________________
Expand Down
1 change: 1 addition & 0 deletions src/index/DocsDB.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <string>
#include <utility>
#include <vector>

#include "../global/Id.h"
#include "../util/File.h"

Expand Down
1 change: 1 addition & 0 deletions src/index/ExternalVocabulary.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <string>
#include <vector>

#include "../global/Id.h"
#include "../util/File.h"
#include "StringSortComparator.h"
Expand Down
2 changes: 2 additions & 0 deletions src/index/FTSAlgorithms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "./FTSAlgorithms.h"

#include <cmath>
#include <map>
#include <set>
#include <utility>

#include "../util/HashMap.h"
#include "../util/HashSet.h"

Expand Down
1 change: 1 addition & 0 deletions src/index/Index.Text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <stxxl/algorithm>
#include <tuple>
#include <utility>

#include "../engine/CallFixedSize.h"
#include "../parser/ContextFileParser.h"
#include "../util/Simple8bCode.h"
Expand Down
5 changes: 3 additions & 2 deletions src/index/Index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Chair of Algorithms and Data Structures.
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)

#include "./Index.h"

#include <algorithm>
#include <cmath>
#include <cstdio>
Expand All @@ -18,7 +20,6 @@
#include "../util/Conversions.h"
#include "../util/HashMap.h"
#include "../util/TupleHelpers.h"
#include "./Index.h"
#include "./PrefixHeuristic.h"
#include "./VocabularyGenerator.h"
#include "MetaDataIterator.h"
Expand Down Expand Up @@ -1540,7 +1541,7 @@ std::future<void> Index::writeNextPartialVocabulary(
vocab = &_vocab, partialFilename, partialCompressionFilename,
vocabPrefixCompressed = _vocabPrefixCompressed]() {
auto vec = vocabMapsToVector(items);
const auto identicalPred = [& c = vocab->getCaseComparator()](
const auto identicalPred = [&c = vocab->getCaseComparator()](
const auto& a, const auto& b) {
return c(a.second.m_splitVal, b.second.m_splitVal,
decltype(_vocab)::SortLevel::TOTAL);
Expand Down

0 comments on commit 594baee

Please sign in to comment.