From 29178f29a89cfb4d48e154f7d0bae8f69d52102b Mon Sep 17 00:00:00 2001 From: Sebastian Kreutzer Date: Tue, 28 Jan 2025 15:59:30 +0100 Subject: [PATCH] [NFC] Fix formatting --- cgcollector/lib/include/MetaCollector.h | 2 +- cgcollector/test/input/functionPointers/0201.cpp | 2 +- cgcollector/test/input/singleTU/0235.cpp | 2 +- cgcollector/test/input/singleTUAA/0242.cpp | 2 +- cgcollector/test/input/virtualCalls/0021.cpp | 2 +- pgis/lib/include/PiraMCGProcessor.h | 2 +- pgis/test/unit/CallgraphTest.cpp | 2 +- tools/CMakeLists.txt | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cgcollector/lib/include/MetaCollector.h b/cgcollector/lib/include/MetaCollector.h index c644efe..6f3a139 100644 --- a/cgcollector/lib/include/MetaCollector.h +++ b/cgcollector/lib/include/MetaCollector.h @@ -127,7 +127,7 @@ class MallocVariableCollector : public MetaCollector { std::map& allocs; public: - MallocFinder(clang::ASTContext& ctx, std::map& allocs) : ctx(ctx), allocs(allocs){}; + MallocFinder(clang::ASTContext& ctx, std::map& allocs) : ctx(ctx), allocs(allocs) {}; ~MallocFinder() = default; void VisitStmt(clang::Stmt* stmt) { diff --git a/cgcollector/test/input/functionPointers/0201.cpp b/cgcollector/test/input/functionPointers/0201.cpp index 3fc9884..c6e26aa 100644 --- a/cgcollector/test/input/functionPointers/0201.cpp +++ b/cgcollector/test/input/functionPointers/0201.cpp @@ -1,7 +1,7 @@ using func_t = void (*)(); -void foo(){}; +void foo() {}; func_t get_f(func_t f) { return f; } diff --git a/cgcollector/test/input/singleTU/0235.cpp b/cgcollector/test/input/singleTU/0235.cpp index 394e87b..f59da65 100644 --- a/cgcollector/test/input/singleTU/0235.cpp +++ b/cgcollector/test/input/singleTU/0235.cpp @@ -6,7 +6,7 @@ void foo() {} class C { public: - C(Function F) : member(F){}; + C(Function F) : member(F) {}; Function member; }; diff --git a/cgcollector/test/input/singleTUAA/0242.cpp b/cgcollector/test/input/singleTUAA/0242.cpp index 63052fe..340e7f7 100644 --- a/cgcollector/test/input/singleTUAA/0242.cpp +++ b/cgcollector/test/input/singleTUAA/0242.cpp @@ -1,6 +1,6 @@ // Test for the handling of constructors and destructors when passing arguments struct A { - ~A(){}; + ~A() {}; }; // Should not call destructors diff --git a/cgcollector/test/input/virtualCalls/0021.cpp b/cgcollector/test/input/virtualCalls/0021.cpp index e1f0143..2016276 100644 --- a/cgcollector/test/input/virtualCalls/0021.cpp +++ b/cgcollector/test/input/virtualCalls/0021.cpp @@ -12,7 +12,7 @@ class MyClassDerive : public MyClass { class MyClassDeriveDerive : public MyClassDerive { public: - void foo() override{}; + void foo() override {}; }; void MyClassDerive::foo() {} diff --git a/pgis/lib/include/PiraMCGProcessor.h b/pgis/lib/include/PiraMCGProcessor.h index c6e0c6e..c30c8bf 100644 --- a/pgis/lib/include/PiraMCGProcessor.h +++ b/pgis/lib/include/PiraMCGProcessor.h @@ -56,7 +56,7 @@ class PiraMCGProcessor { } private: - PiraMCGProcessor() : graph(&getEmptyGraph()), configPtr(nullptr), epModelProvider({}){}; + PiraMCGProcessor() : graph(&getEmptyGraph()), configPtr(nullptr), epModelProvider({}) {}; explicit PiraMCGProcessor(Config* config, extrapconnection::ExtrapConfig epCfg = {}); PiraMCGProcessor(const PiraMCGProcessor& other) = default; diff --git a/pgis/test/unit/CallgraphTest.cpp b/pgis/test/unit/CallgraphTest.cpp index 917adfb..fe302a4 100644 --- a/pgis/test/unit/CallgraphTest.cpp +++ b/pgis/test/unit/CallgraphTest.cpp @@ -6,7 +6,7 @@ #include "gtest/gtest.h" -//#include "LoggerUtil.h" +// #include "LoggerUtil.h" #include "../../../graph/include/Callgraph.h" #include "../../../graph/include/LoggerUtil.h" diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 4c62299..1a14240 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1 +1 @@ -# Graph-based tools will be added here \ No newline at end of file +# Graph-based tools will be added here